• 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
  [8.1.2] variables in rules -> error terrar 1 354 09-14-2018, 05:28 PM
Last Post: curlymo
  Can't switch Relay device by rules: Error switch.lua:77 wobbi 6 764 07-31-2018, 06:25 AM
Last Post: curlymo
  Strange behavior of rules currock 4 763 06-28-2018, 05:57 PM
Last Post: currock
  feature request: switching rules terrar 7 1,129 05-05-2018, 09:23 PM
Last Post: trader23
  variable "label" not allowed in rules Niek 4 2,358 09-30-2017, 06:39 PM
Last Post: curlymo
  Rule with datetime will not work PT-Biker 4 2,448 09-24-2016, 11:57 AM
Last Post: PT-Biker
  option "all" not sent in rules muecke 5 1,914 07-01-2016, 11:37 AM
Last Post: Niek
  Rules make pilight freeze koos147 5 1,903 05-04-2016, 08:11 PM
Last Post: curlymo
  rules time interval kniazio 8 3,149 03-12-2016, 04:49 PM
Last Post: kniazio
  pilight eventing rules terrar 94 37,669 02-18-2016, 10:21 PM
Last Post: brombeerwilli

Forum Jump:


Browsing: 1 Guest(s)