I just update my SonOFF DUAL because regularly, they disconnected from the wifi and I had to reboot via the power supply (because difficult to access).
So I installed the version of March 5th. I'm having trouble with the Rules in this version. Everything works fine except the event call from button event.
Code: Select all
on System#Boot do gpio,12,0 // Relay 1 gpio,5,0 // Relay 2 endon on Bouton#Bouton do // normal switch (not push) DoAction=25 endon on DoAction do if [RelaisUP#RelaisUP]=1 or [RelaisDOWN#RelaisDOWN]=1 //2 switch on the gpio to get output state event DoStop else event StartVolet=%eventvalue% endif endon on StartVolet do if [Volet#VersLeBas]=1 // Dummy(4-1) last up or down event DoUp=%eventvalue% else event DoDown=%eventvalue% endif endon On DoStop do gpio,12,0 gpio,5,0 timerset,2,0 endon On DoUp do gpio,12,0 gpio,5,1 TaskValueSetAndRun 4,1,0 // Last action is going up timerset,2,%eventvalue% endon On DoDown do gpio,5,0 gpio,12,1 TaskValueSetAndRun 4,1,1 // Last action is going down timerset,2,%eventvalue% endon on Rules#Timer=2 do gpio,12,0 gpio,5,0 endon
On the build from 20180305, when I use the button, my sonoff reboot.
The event DoAction, DoStop, DoUP and DoDown can be called via http without any problems, all is working good but via button event, I get a reboot.
I don't understand what's happening.
Thanks for your help and any suggestion.