03-05-2016, 05:35 PM
The following rule (e.q. the complete config.json) is working with the development branch, but on the rewrite branch i get the following error:
I am getting the following error message in the log:
My definitions in the "devices" section:
Code:
"Rule_TH_Anbau": {
"rule": "IF tfa.id == 67 THEN label DEVICE LBL_TH_Anbau TO DATE_FORMAT(zeit, %d.%m.%Y %H:%M)",
"active": 1
},
I am getting the following error message in the log:
Code:
[Mar 05 16:27:51:598003] pilight-daemon: ERROR: rule #19 invalid: variable "id" of device "tfa" cannot be used in event rules
[Mar 05 16:27:51:598045] pilight-daemon: INFO: rule #19 was parsed until: ... tfa.id == 67 THEN label DEVICE LBL_TH_Anbau TO DATE_FORMAT(zeit, %d.%m.%Y %H:%M)
[Mar 05 16:27:51:598085] pilight-daemon: INFO: rule #19 Rule_TH_Anbau was parsed in 0.000120 seconds
My definitions in the "devices" section:
Code:
"TH_Anbau": {
"protocol": [ "tfa" ],
"id": [{
"id": 67,
"channel": 1
}],
"temperature": 11.50,
"humidity": 73.00,
"battery": 1
},
.....
"LBL_TH_Anbau": {
"protocol": [ "generic_label" ],
"id": [{
"id": 100
}],
"label": "05.03.2016 16:58",
"color": "black"
},