Hello everyone
I have a problem with the configuration of a role.
I want to turn on a device in a role and turn it off after a while in the same rule. Turning it on works, but does not turn off unfortunately. I have created three different rules (see examples). pilight runs with all examples. But all three examples do not turn off the device.
Thanks for help.
Oliver
I have a problem with the configuration of a role.
I want to turn on a device in a role and turn it off after a while in the same rule. Turning it on works, but does not turn off unfortunately. I have created three different rules (see examples). pilight runs with all examples. But all three examples do not turn off the device.
Code:
example 1
"Wasserzirkulation": {
"rule": "IF Zeit.second == 00 AND Zeit.minute == 15 AND (Zeit.hour == 07 OR Zeit.hour == 13) THEN switch DEVICE coac344 TO on FOR 15 . ' MINUTE'",
"active": 1
},
example 2
"Wasserzirkulation": {
"rule": "IF Zeit.second == 00 AND Zeit.minute == 15 AND (Zeit.hour == 07 OR Zeit.hour == 13) THEN switch DEVICE coac344 TO on AND switch DEVICE coac344 TO off AFTER '15 Minute'",
"active": 1
},
example 3
"Wasserzirkulation": {
"rule": "IF Zeit.second == 00 AND Zeit.minute == 15 AND (Zeit.hour == 07 OR Zeit.hour == 13) THEN switch DEVICE coac344 TO on AND switch DEVICE coac344 TO off AFTER 15 . ' Minute'",
"active": 1
},
Oliver