-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
5.13.1 Incorrect pulsetime when it was triggered by rule #2613
Comments
Edit: remove question about sleep, it's already in Status output above |
Yes, i am aware that 5 is 0.5 second.
|
Pls provide an overview of your configured GPIOs as a dual normally has just two relays, not four. I expect you are using GPIO0 to control a relay which might fail as your last restart status is a Hardware Watchdog... |
This is my Sonoff Dual R2 configurations
08:23:41 RUL: POWER1#STATE=OFF performs "Power3 ON" Thanks |
Hi Arendst, For easy to imaging the issue, i have configure my Sonoff Dual R2 to a very simple. Below is my console info FYR: 09:31:41 CMD: status 0 |
Thnx for explanation! I see rule rule state does not recognize on or off but only numbers (0 = off, 1 = on) so please try again using a rule like |
Dear Arendst, I've just tried to use this rule "on power1#state=0 do power2 on endon" to test, the issue is still persist. Regards |
Ah, I see. It fails on me too. A workaround that works for me is a rule like Or even this rule works fine |
Hi Arends, Your advice is working for my case. Thanks 21:09:13 RSL: POWER1 = ON |
Ah, right that's because I didn't want to make delay to small for backlog commands.... I suggest in your case just leave the delay out as I suggested in the (updated) previous answer. |
Ok, i use this workaround for my case now. |
Hi Fortunately, I also can still use Power1#State=OFF intead of number 0, for me it is a benefit due to it is easy to read and remember. Thanks 21:26:21 RSL: RESULT = {"Rule":"ON","Once":"OFF","Rules":"on power1#state=OFF do backlog power2 ON endon"} |
But be careful as Power1#State=ON will do the same as Power1#State=OFF as in both cases it is not a number and therefore is substituted by 0. |
Yay! I get your point. I go with number now. I understand the difference. Thanks |
With the just released fixes the need for backlog is gone. It also adds tests for state=On and/or state=Off |
Thanks Arends I’ve just flashed a new released fw to try.
|
Hi Arends, My final confirmation, the new released fw can fix all my Sonoff issue. No problem at all. Thank you very much. |
5.13.1a * Fix rule power trigger when no backlog command is used (arendst#2613) * Add rule state test for On/Off in addition to 0/1 (arendst#2613)
Make sure these boxes are checked before submitting your issue - Thank you!
I am using Sonoff Dual R2 with Tasmota firmware version 5.13.1
status 0
07:58:36 CMD: status 0
07:58:36 MQT: stat/livingroom/STATUS = {"Status":{"Module":39,"FriendlyName":["Living Room Fan","Living Room Light 1","Buzzer","For Test"],"Topic":"livingroom","ButtonTopic":"0","Power":0,"PowerOnState":3,"LedState":1,"SaveData":1,"SaveState":1,"ButtonRetain":0,"PowerRetain":0}}
07:58:36 MQT: stat/livingroom/STATUS1 = {"StatusPRM":{"Baudrate":115200,"GroupTopic":"sonoffs","OtaUrl":"http://sonoff.maddox.co.uk/tasmota/sonoff.ino.bin","RestartReason":"Hardware Watchdog","Uptime":"0T00:41:18","StartupUTC":"2018-05-03T00:17:18","Sleep":0,"BootCount":18,"SaveCount":830,"SaveAddress":"FA000"}}
07:58:36 MQT: stat/livingroom/STATUS2 = {"StatusFWR":{"Version":"5.13.1","BuildDateTime":"2018-05-02T21:05:24","Boot":31,"Core":"2_3_0","SDK":"1.5.3(aec24ac9)"}}
07:58:36 MQT: stat/livingroom/STATUS3 = {"StatusLOG":{"SerialLog":0,"WebLog":2,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["Multimedia Wi-Fi Network","Wongnam"],"TelePeriod":300,"SetOption":["00808009","55C18000"]}}
07:58:36 MQT: stat/livingroom/STATUS4 = {"StatusMEM":{"ProgramSize":523,"Free":480,"Heap":16,"ProgramFlashSize":1024,"FlashSize":1024,"FlashMode":3}}
07:58:36 MQT: stat/livingroom/STATUS5 = {"StatusNET":{"Hostname":"livingroom-2739","IPAddress":"192.168.12.133","Gateway":"192.168.12.1","Subnetmask":"255.255.255.0","DNSServer":"192.168.12.1","Mac":"60:01:94:98:0A:B3","Webserver":2,"WifiConfig":3}}
07:58:36 MQT: stat/livingroom/STATUS6 = {"StatusMQT":{"MqttHost":"192.168.12.126","MqttPort":1883,"MqttClientMask":"DVES_%06X","MqttClient":"DVES_980AB3","MqttUser":"admin","MqttType":2,"MAX_PACKET_SIZE":1000,"KEEPALIVE":15}}
07:58:36 MQT: stat/livingroom/STATUS7 = {"StatusTIM":{"UTC":"Thu May 03 00:58:36 2018","Local":"Thu May 03 07:58:36 2018","StartDST":"Sun Mar 25 02:00:00 2018","EndDST":"Sun Oct 28 03:00:00 2018","Timezone":7,"Sunrise":"05:33","Sunset":"18:05"}}
07:58:36 MQT: stat/livingroom/STATUS10 = {"StatusSNS":{"Time":"2018-05-03T07:58:36","Switch1":"ON","Switch2":"ON"}}
07:58:36 MQT: stat/livingroom/STATUS11 = {"StatusSTS":{"Time":"2018-05-03T07:58:36","Uptime":"0T00:41:18","Vcc":3.160,"POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","POWER4":"OFF","Wifi":{"AP":1,"SSId":"Multimedia Wi-Fi Network","RSSI":80,"APMac":"6C:70:9F:E4:88:20"}}}
I am using Sonoff Dual R2 with Tasmota firmware version 5.13.1
the issue i am facing is PulseTime for Power3 incorrect pulsetime when it was triggered by "rule on Power1#State=OFF do Power3 ON endon", it only turn the relay on a very short timing.
if i directly press the button named "Toggle3" on webpage it will have the correct Pulsetime.
Thanks.
The text was updated successfully, but these errors were encountered: