Time power on

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
hans65
Normal user
Posts: 38
Joined: 19 Mar 2018, 17:01

Time power on

#1 Post by hans65 » 19 Mar 2018, 21:42

Sorry I have an other question. I'm trying to power on a switch and turn it off on a specific time. I've created a device and a rule but it is not working. Is it only possible to change it by using a webbrowser?

If I use this command: http://<Dev IP>/control?cmd=GPIO,12,1

it works fine

Thanks for the help

Hans
Attachments
Device
Device
pict1.jpg (74.24 KiB) Viewed 4138 times
Rule
Rule
pict2.jpg (57.29 KiB) Viewed 4138 times

sentinel
Normal user
Posts: 55
Joined: 02 Dec 2017, 17:40

Re: Time power on

#2 Post by sentinel » 20 Mar 2018, 13:37

Hi,
have you configured NTP (in the Advanced page) and are you getting the time correctly?

Micha_he
Normal user
Posts: 369
Joined: 07 Feb 2018, 19:14
Location: Helmstedt, Germany

Re: Time power on

#3 Post by Micha_he » 20 Mar 2018, 13:48

In your rule you wrote "if [relay#switch]=0".
But none of your devices has a name "relay" !? [devicename#valuename] e.g. [GPIO12#Sw12]

grhhm
Normal user
Posts: 29
Joined: 23 Oct 2016, 20:15

Re: Time power on

#4 Post by grhhm » 21 Mar 2018, 09:06

Hi Hans,

For GPIO toggle, you might find helpful this thread: viewtopic.php?f=6&t=2039&start=40 (messages 41-43).

Since you try to control GPIO12 it should not be defined as "Switch input".

And per NTP: in EspEasy 2.0 the NTP does not work quite well, explained as failing ping to the NTP server. This thread viewtopic.php?f=6&t=3884 proposes establishing NTP server @your premises. I did that on Raspberry PI and it works with EspEasy 2.0.Good guide for NTP is: http://raspberrypi.tomasgreno.cz/ntp-cl ... erver.html -> Just remember to add 'sudo' to commands ;)

hans65
Normal user
Posts: 38
Joined: 19 Mar 2018, 17:01

Re: Time power on

#5 Post by hans65 » 22 Mar 2018, 09:29

Thanks for the help, works fine now

Hans

Post Reply

Who is online

Users browsing this forum: No registered users and 21 guests