Hello,
I am new to GEA today - I want the light to turn on at sunset, if sunset is before 7pm and secondly, I then want the light to turn off at 7:30pm.
Below is what I am thinking will work -- is this correct?
GEA.add (96, 60, "The Kitchen Lamp has been turned on at sunset", {{"Time", "Sunset< 19:00", "19:05"}, {"turnOn"}})
GEA.add (96, 60, "The Kitchen Lamp has been turned off", {{"Time", "19:30"}, {"turnOff"}})
I keep getting the error below?
Also, if I want to have a separate light turned off 10 minutes after it has been turned on, what would the code be?
Using this:
GEA.add (96, 10*60, "The Kitchen Lamp has been on for more than 10 minutes", {{ "turnOff", 96}})
The lamp turns off after 10 minutes, from the start of the scene -- the 10 minutes does not start from the lamp being turned on -- how do I add something like the LUA code:
if (( tonumber(fibaro:getValue(96, "value")) > 0 )) then?
Thank you,