Skip to content
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

Buggy timers #2597

Closed
2 tasks
WereCatf opened this issue May 1, 2018 · 0 comments
Closed
2 tasks

Buggy timers #2597

WereCatf opened this issue May 1, 2018 · 0 comments
Labels
bug Type - Confirmated Bug fixed Result - The work on the issue has ended

Comments

@WereCatf
Copy link

WereCatf commented May 1, 2018

Make sure these boxes are checked before submitting your issue - Thank you!

Hardware: Sonoff S20, latest release (not self-built)

When issuing timer-commands with action = 3, the device interprets it as action = 2, ie.
mosquitto_pub -t tasmota/Sonoff_114E23/cmnd/Timer1 -m '{"Arm":1,"Time":"17:56","Days":"0010000","Output":1,"Action":3}' gives an output of tasmota/Sonoff_114E23/stat/RESULT {"Timer1":{"Arm":1,"Mode":0,"Time":"17:56","Window":0,"Days":"0010000","Repeat":0,"Output":1,"Action":2}}
Similarly, all the other valid values given to action are interpreted wrong.

On another note, setting the days when to activate the timer is also bugged: when you don't give out all 7 days, Tasmota inserts one random 'on'-day, like e.g.
mosquitto_pub -t tasmota/Sonoff_114E23/cmnd/Timer1 -m '{"Arm":1,"Time":"17:56","Days":"001","Output":1,"Action":3}' results in
tasmota/Sonoff_114E23/stat/RESULT {"Timer1":{"Arm":1,"Mode":0,"Time":"17:56","Window":0,"Days":"0011000","Repeat":0,"Output":1,"Action":2}}

Output of status 0:

tasmota/Sonoff_114E23/cmnd/status 0
tasmota/Sonoff_114E23/stat/STATUS {"Status":{"Module":8,"FriendlyName":["Sonoff_114E23"],"Topic":"Sonoff_114E23","ButtonTopic":"0","Power":1,"PowerOnState":3,"LedState":0,"SaveData":1,"SaveState":0,"ButtonRetain":0,"PowerRetain":0}}
tasmota/Sonoff_114E23/stat/STATUS1 {"StatusPRM":{"Baudrate":115200,"GroupTopic":"sonoffs","OtaUrl":"http://192.168.178.149/firmware.bin","RestartReason":"Software/System restart","Uptime":"0T23:07:21","StartupUTC":"2018-04-30T17:43:37","Sleep":50,"BootCount":32,"SaveCount":117,"SaveAddress":"F5000"}}
tasmota/Sonoff_114E23/stat/STATUS2 {"StatusFWR":{"Version":"5.13.0","BuildDateTime":"2018-04-30T15:26:39","Boot":31,"Core":"2_4_0","SDK":"2.1.0(deb1901)"}}
tasmota/Sonoff_114E23/stat/STATUS3 {"StatusLOG":{"SerialLog":2,"WebLog":0,"SysLog":0,"LogHost":"domus1","LogPort":514,"SSId":["REDACTED",""],"TelePeriod":300,"SetOption":["00000008","55818000"]}}
tasmota/Sonoff_114E23/stat/STATUS4 {"StatusMEM":{"ProgramSize":529,"Free":472,"Heap":17,"ProgramFlashSize":1024,"FlashSize":1024,"FlashMode":3}}
tasmota/Sonoff_114E23/stat/STATUS5 {"StatusNET":{"Hostname":"SonoffS20","IPAddress":"192.168.178.153","Gateway":"192.168.178.4","Subnetmask":"255.255.255.0","DNSServer":"192.168.178.4","Mac":"DC:4F:22:11:4E:23","Webserver":2,"WifiConfig":2}}
tasmota/Sonoff_114E23/stat/STATUS6 {"StatusMQT":{"MqttHost":"habibi.lan","MqttPort":1883,"MqttClientMask":"DVES_%06X","MqttClient":"DVES_114E23","MqttUser":"DVES_USER","MqttType":1,"MAX_PACKET_SIZE":1000,"KEEPALIVE":15}}
tasmota/Sonoff_114E23/stat/STATUS7 {"StatusTIM":{"UTC":"Tue May 01 16:50:58 2018","Local":"Tue May 01 17:50:58 2018","StartDST":"Sun Mar 25 02:00:00 2018","EndDST":"Sun Oct 28 03:00:00 2018","Timezone":1,"Sunrise":"05:29","Sunset":"20:05"}}
tasmota/Sonoff_114E23/stat/STATUS10 {"StatusSNS":{"Time":"2018-05-01T17:50:58"}}
tasmota/Sonoff_114E23/stat/STATUS11 {"StatusSTS":{"Time":"2018-05-01T17:50:58","Uptime":"0T23:07:21","Vcc":3.476,"POWER":"ON","Wifi":{"AP":1,"SSId":"REDACTED","RSSI":90,"APMac":"90:EF:68:7E:75:E0"}}}

@arendst arendst added the bug Type - Confirmated Bug label May 4, 2018
arendst added a commit that referenced this issue May 4, 2018
5.13.1a
 * Fix several timer data input and output errors (#2597, #2620)
@arendst arendst added the fixed Result - The work on the issue has ended label May 4, 2018
curzon01 pushed a commit to curzon01/Tasmota that referenced this issue Sep 6, 2018
5.13.1a
 * Fix several timer data input and output errors (arendst#2597, arendst#2620)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Type - Confirmated Bug fixed Result - The work on the issue has ended
Projects
None yet
Development

No branches or pull requests

3 participants