Hi All
Have a strange one and i presume i am doing something wrong here.
Rule 1 - This is working as i can see the event in the log file - EVENT: GPIO#4=0, EVENT: GPIO#4=1
on System#Boot do
Monitor GPIO,04
endon
Rule 2 - This rule is not triggering even though i see the GPIO=0 event in the logs
on GPIO#04=0 do
Let,2,0 // Set Var 2 to zero
Let,2,([var#2]+1) // add 1 pulse to Var 2
Let,2,([Var#2]/1000) // Divide by 1000 - 1000 pulses per kWh
Let,1,([var#1]-[var#2]) // Subtract Var 2 from Var 1 - Var 1 is kWh from WEB interface
endon
Any idea what i am doing wrong?
(Resolved) Rule not triggering - "on GPIO#04 do"
Moderators: grovkillen, Stuntteam, TD-er
(Resolved) Rule not triggering - "on GPIO#04 do"
Last edited by Zodiac69 on 14 Aug 2022, 15:58, edited 1 time in total.
Re: Rule not triggering - "on GPIO#04 do"
Here the numeric value 04 is parsed to 4, so the monitor is installed
Here, the generated event (GPIO#4=0) and the rule (GPIO#04) don't match. (Anything from the = and further is left out of the rule-match process)
And then there is also this reported issue: #4198
/Ton (PayPal.me)
Re: Rule not triggering - "on GPIO#04 do"
Hi Ath
Thank you.
I presumed that "on GPIO#04=0 do" must be the same format as "Monitor GPIO,04" with leading zero.
Changed "on GPIO#04=0 do" to "on GPIO#4=0 do" and it is now working.
Thank you.
I presumed that "on GPIO#04=0 do" must be the same format as "Monitor GPIO,04" with leading zero.
Changed "on GPIO#04=0 do" to "on GPIO#4=0 do" and it is now working.
Re: (Resolved) Rule not triggering - "on GPIO#04 do"
Hi Ath
Just a FYI
This was the 1st time i used a GPIO that is lower than GPIO10.
Just a FYI
This was the 1st time i used a GPIO that is lower than GPIO10.
Re: (Resolved) Rule not triggering - "on GPIO#04 do"
Then you haven't used an ESP01 unit, as that exposes only GPIO 0 to GPIO 3
/Ton (PayPal.me)
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Majestic-12 [Bot] and 100 guests