Is there something changed in the rule system? [SOLVED]

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
ManS-H
Normal user
Posts: 279
Joined: 27 Dec 2015, 11:26
Location: the Netherlands

Is there something changed in the rule system? [SOLVED]

#1 Post by ManS-H » 06 Oct 2022, 13:06

Is there something changed in the rule system?
Now that it is getting fresh I have made the automatic open closing of the toilet window active again.
I am working with this version: Build: ESP_Easy_mega_20220427_normal_ESP8266_4M1M Apr 27 2022
This is the rule,
on wcraam-open do
gpio,15,1 // relay on
timerSet 1,2 // 2 seconds timer
endon

on rules#Timer=1 do
gpio,15,0 // relay off
endon

on wcraam-close do
gpio,13,1 // relay on
timerSet 2,2 // 2 seconds timer
endon

on Rules#Timer=2 do
gpio,13,0 // relay off
endon

on wcraam-open/stop do
gpio,12,1 // relay on
timerSet 3,2 // 2 seconds timer
endon

on Rules#Timer=3 do
gpio,12,0 // relay off
endon

on wcraam-stop do
asyncevent,wcraam-open
timerSet 4,26 // 26 seconds timer

on Rules#Timer=4 do
asyncevent,wcraam-open/stop
endon

But I am now getting an error message on this

1039505: HTTP: event,wcraam-stop
1039521: EVENT: wcraam-stop
1039528: ACT : asyncevent,wcraam-open
1039534: ACT : timerSet 4,26
1039538: ACT : on Rules#Timer=4 do
1039541: Command unknown : on Rules#Timer=4 do
1039543: ACT : asyncevent,wcraam-open/stop
1039549: EVENT: wcraam-open
1039555: ACT : gpio,15,1
1039557: GPIO : port#15: set to 1
1039560: ACT : timerSet 1,2
1039566: EVENT : wcraam-open/stop
1039571: ACT : gpio,12,1
1039574: GPIO : port#12: set to 1
1039576: ACT : timerSet 3,10
1049562: EVENT : rules#Timer=1,1
1049569: ACT : gpio,15,0
1049571: GPIO : port#15: set to 0
1049579: EVENT: Rules#Timer=3,1
1049586: ACT : gpio,12,0
1049588: GPIO : port#12: set to 0

How can I fix this?

User avatar
ManS-H
Normal user
Posts: 279
Joined: 27 Dec 2015, 11:26
Location: the Netherlands

Re: Is there something changed in the rule system? [SOLVED]

#2 Post by ManS-H » 06 Oct 2022, 13:25

Forget the whole story, a BIG mistake from myself. I missed a "endon" in my rule.

User avatar
Ath
Normal user
Posts: 3417
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Is there something changed in the rule system? [SOLVED]

#3 Post by Ath » 06 Oct 2022, 13:39

I would have expected the dashes (-) in the eventnames to be possibly causing issues, as they can be seen as operators. You can safely use underscores (_) instead of dashes though.
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 31 guests