01-18-2018, 05:20 PM
The latest commit in both development and rewrite throws an error when using == in a rule.
config.json
Code:
[Jan 18 16:09:38:505556] pilight-daemon: ERROR: rule #1 invalid: operator "==" does not exist
[Jan 18 16:09:38:505644] pilight-daemon: INFO: rule #1 was parsed until: ... THEN switch DEVICE gen_switch.state TO off
[Jan 18 16:09:38:505679] pilight-daemon: INFO: rule #1 rule_1 was parsed in 0.000198 seconds
config.json
Code:
"rules": {
"rule_1": {
"rule": "IF 1 == 1 THEN switch DEVICE gen_switch.state TO off",
"active": 1
}
},