This rule will not work, but will be parsed without failure.
What its wrong here:
The sunset was today 16:07 and the device "elro" should become a on-signal 16:17.
The device will work manually correct. (Turn off and on in web-gui)
Thx.
Ralf[/align]
What its wrong here:
Code:
"sunset": {
"rule": "IF sun.sunset == DATE_FORMAT(DATE_ADD(date_time, -10 MINUTE), \"%Y-%m-%d %H:%M:%S\", %H.%M) AND elro.state IS off AND date_time.second == 0 THEN switch DEVICE elro TO on",
"active": 1
},
The sunset was today 16:07 and the device "elro" should become a on-signal 16:17.
The device will work manually correct. (Turn off and on in web-gui)
Thx.
Ralf[/align]