The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 895 - File: showthread.php PHP 7.3.14-1~deb10u1 (Linux)
File Line Function
/showthread.php 895 errorHandler->error



  • 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Incompatibility in handling of rules:
#1
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:
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"
        },
 
Reply
  


Messages In This Thread
Incompatibility in handling of rules: - by wo_rasp - 03-05-2016, 05:35 PM

Forum Jump:


Browsing: 1 Guest(s)