• 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
Rules wont work
#1
Hello

First:
Sorry for my bad english, the last time i've spoken english was 35 years ago at school.

I've searched in the forum, the manual, the wiki and the www and found nothing that helps.

My Problem is, rules are not working.
When i clear the rules section pilight works.

The pilight.err shows this
Code:
[Aug 12 17:53:19:370029] pilight-daemon: ERROR:
IF MASTER.state IS on THEN switch DEVICE Switch1 ...
                   ^ unexpected symbol, expected a condition
[Aug 12 17:53:19:376470] pilight-daemon: INFO: rule #1 Alles_einschalten was parsed in 0.006782 seconds

The rules are this
Code:
"rules": {
                "Alles_einschalten": {
                        "rule": "IF MASTER.state IS on THEN switch DEVICE Switch1 AND Switch2 AND elro5 TO on",
                        "active": 1
                },
                "Alles_ausschalten": {
                        "rule": "IF MASTER.state IS off THEN switch DEVICE Switch1 AND Switch2 AND elro5 TO off",
                        "active": 1
                        }
                },

Can anyone say, what's going wrong?

Bernd
 
Reply
#2
The error is due to some changes in the pilight v8.0 rule parsing. All is documented in the manual. I would advice you to read that first.
 
Reply
#3
(08-12-2018, 06:04 PM)curlymo Wrote: The error is due to some changes in the pilight v8.0 rule parsing. All is documented in the manual. I would advice you to read that first.

Thanks.

Then i read the manual again.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  [solved] sunset rule doesn't work fleisch 4 722 10-26-2019, 07:05 AM
Last Post: fleisch
  [8.1.2] variables in rules -> error terrar 1 739 09-14-2018, 05:28 PM
Last Post: curlymo
  Can't switch Relay device by rules: Error switch.lua:77 wobbi 6 1,471 07-31-2018, 06:25 AM
Last Post: curlymo
  Strange behavior of rules currock 4 1,291 06-28-2018, 05:57 PM
Last Post: currock
  feature request: switching rules terrar 7 1,823 05-05-2018, 09:23 PM
Last Post: trader23
  variable "label" not allowed in rules Niek 4 2,921 09-30-2017, 06:39 PM
Last Post: curlymo
  Rule with datetime will not work PT-Biker 4 3,072 09-24-2016, 11:57 AM
Last Post: PT-Biker
  option "all" not sent in rules muecke 5 2,453 07-01-2016, 11:37 AM
Last Post: Niek
  Rules make pilight freeze koos147 5 2,481 05-04-2016, 08:11 PM
Last Post: curlymo
  rules time interval kniazio 8 4,117 03-12-2016, 04:49 PM
Last Post: kniazio

Forum Jump:


Browsing: 1 Guest(s)