MacWyznawca / homebridge-mqtt-switch-tasmota

Plugin to HomeBridge optimized to work with firmware Sonoff-Tasmota, MQTT.
MIT License
57 stars 18 forks source link

"stateGet" is sending out a POWER command and resetting pulsetime timer #64

Open chriskmn opened 3 years ago

chriskmn commented 3 years ago

Hello together,

if I do configure the stateGet parameter the module seems to send out a POWER command with the cyclic telemetry information, what causes a reset of the Pulsetime timer of the tasmota firmware.

22:31:23.874 MQT: stat/sonoff-3/POWER = ON 22:31:28.355 CMD: Pulsetime 22:31:28.358 SRC: WebConsole from 192.168.0.110 22:31:28.362 CMD: Group 0, Index 1, Command "PULSETIME", Data "" 22:31:28.369 MQT: stat/sonoff-3/RESULT = {"PulseTime1":{"Set":300,"Remaining":295},"PulseTime2":{"Set":0,"Remaining":0},"PulseTime3":{"Set":0,"Remaining":0},"PulseTime4":{"Set":0,"Remaining":0},"PulseTime5":{"Set":0,"Remaining":0},"PulseTime6":{"Set":0,"Remaining":0},"PulseTime7":{"Set":0,"Remaining":0},"PulseTime8":{"Set":0,"Remaining":0}} 22:31:36.107 WIF: Checking connection... 22:31:46.114 CMD: Pulsetime 22:31:46.117 SRC: WebConsole from 192.168.0.110 22:31:46.121 CMD: Group 0, Index 1, Command "PULSETIME", Data "" 22:31:46.127 MQT: stat/sonoff-3/RESULT = {"PulseTime1":{"Set":300,"Remaining":277},"PulseTime2":{"Set":0,"Remaining":0},"PulseTime3":{"Set":0,"Remaining":0},"PulseTime4":{"Set":0,"Remaining":0},"PulseTime5":{"Set":0,"Remaining":0},"PulseTime6":{"Set":0,"Remaining":0},"PulseTime7":{"Set":0,"Remaining":0},"PulseTime8":{"Set":0,"Remaining":0}} 22:31:56.141 WIF: Checking connection... 22:32:16.148 WIF: Checking connection... 22:32:36.144 WIF: Checking connection... 22:32:51.913 MQT: tele/sonoff-3/STATE = {"Time":"2021-06-08T22:32:51","Uptime":"3T07:34:51","UptimeSec":286491,"Heap":26,"SleepMode":"Dynamic","Sleep":250,"LoadAvg":4,"MqttCount":3,"POWER":"ON","Wifi":{"AP":1,"SSId":"malibu","BSSId":"44:4E:6D:4C:E4:37","Channel":11,"RSSI":98,"Signal":-51,"LinkCount":2,"Downtime":"0T00:01:24"}} 22:32:52.161 SRC: MQTT 22:32:52.164 CMD: Group 0, Index 1, Command "POWER", Data "ON" 22:32:52.170 MQT: stat/sonoff-3/RESULT = {"POWER":"ON"} 22:32:52.174 MQT: stat/sonoff-3/POWER = ON 22:32:57.419 CMD: Pulsetime 22:32:57.422 SRC: WebConsole from 192.168.0.110 22:32:57.425 CMD: Group 0, Index 1, Command "PULSETIME", Data "" 22:32:57.430 MQT: stat/sonoff-3/RESULT = {"PulseTime1":{"Set":300,"Remaining":294},"PulseTime2":{"Set":0,"Remaining":0},"PulseTime3":{"Set":0,"Remaining":0},"PulseTime4":{"Set":0,"Remaining":0},"PulseTime5":{"Set":0,"Remaining":0},"PulseTime6":{"Set":0,"Remaining":0},"PulseTime7":{"Set":0,"Remaining":0},"PulseTime8":{"Set":0,"Remaining":0}} 22:32:57.914 WIF: Checking connection...

Is this a bug or is it intended ?