• 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:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ERROR: rule #21 invalid: variable "label" of device "WindMax" cannot be used in even
#1
Hey

I have a rule to send me a pushbullet when the windspeed is to high,
i also want to send the value in the message.

since i store the value in a lable i simply added WindMax.lable in the rule.

Code:
ERROR: rule #21 invalid: variable "label" of device "WindMax" cannot be used in event rules

the device
Code:
        "WindMax": {
            "protocol": [ "generic_label" ],
            "id": [{
                "id": 127
            }],
            "label": "2",
            "color": "black"
        },

the rule

Code:
        "WindOn": {
            "rule": "IF Storm.state IS on AND PushBullet.state IS on THEN pushbullet TITLE \"Het Waait te hard\" BODY \"Windkracht is WindMax.label \" TOKEN ****** TYPE note",
            "active": 1
        },

Is this not (yet) possible or can i get this result in another way?
 
Reply
#2
Indeed, at this moment you can't use the xxx.label values in rules.
 
Reply
#3
Oke
Any plans to support this in a upcoming version?
Would be a nice to have function
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  Rule triggers twice Thorben653 13 936 02-05-2020, 01:06 PM
Last Post: VicktorKopf
  Exclude Weekend from a rule PT-Biker 1 433 12-08-2019, 10:22 AM
Last Post: curlymo
  [Solved] On and Off for one device in one rule Oliver 3 449 10-28-2019, 06:55 PM
Last Post: Oliver
  [solved] sunset rule doesn't work fleisch 4 445 10-26-2019, 07:05 AM
Last Post: fleisch
  Sunset state check parse error dennisvo 6 480 09-27-2019, 08:34 PM
Last Post: curlymo
  [8.1.2] variables in rules -> error terrar 1 561 09-14-2018, 05:28 PM
Last Post: curlymo
  Can't switch Relay device by rules: Error switch.lua:77 wobbi 6 1,103 07-31-2018, 06:25 AM
Last Post: curlymo
  Rule with&without device. One working not the other... Tamadite 9 1,398 07-24-2018, 08:55 AM
Last Post: curlymo
  rule executed once at start up segalion 3 755 07-12-2018, 05:28 PM
Last Post: curlymo
  Error in Actions with 8.1.0 tomk 1 782 05-30-2018, 06:20 AM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)