09-14-2018, 02:41 PM
Hi,
Can you please explain why this rule does not work any more since upgrade to 8.1.2 nightly?
Rule:
This rule let me start the service no more and pilight-daemon shows this:
Error:
Device:
GUI:
Can you please explain why this rule does not work any more since upgrade to 8.1.2 nightly?
Rule:
Code:
"Luftheber_ein": {
"rule": "IF ap2.state == off AND s1.state == off AND vtimeluftheber.state == on AND (DATE_FORMAT(zeit, %H.%M) >= tagnacht.sunrise) AND zeit.second == 0 THEN switch DEVICE ap2 TO on FOR 'vtimeluftheber.dimlevel HOUR'",
"active": 0
},
This rule let me start the service no more and pilight-daemon shows this:
Error:
Code:
[Sep 14 13:20:22:327173] pilight-daemon: ERROR: rule #3 invalid: device "vtimeluftheber" has no variable "dimlevel HOUR"
[Sep 14 13:20:22:329230] pilight-daemon: INFO: rule #3 Luftheber_ein was parsed in 0.060266 seconds
Device:
Code:
"vtimeluftheber": {
"protocol": [ "generic_dimmer" ],
"id": [{
"id": 100
}],
"state": "on",
"dimlevel": 6
},
GUI:
Code:
"vtimeluftheber": {
"name": "Luftheberlaufzeit (h)",
"group": [ "Aquarium" ],
"media": [ "all" ],
"dimlevel-minimum": 2,
"dimlevel-maximum": 8
},
Terrarium: RPi Model B Rev 2 / pilight 8.1.2 / stretch
Aquarium: RPi Model B Plus Rev 1.2 / pilight 8.0.6 / jessie