Updated to 0.86.4 and notice an odd MQTT problem when I added a new switch so tried a few tests
My MQTT setup is normally location/topic/cmnd/
SO using a sonoff basic (V6.3.0) I have test/light/(cmnd/stat/tele) - pressing the sonoff button gives the correct test/light/cmnd/power = on, turning off works fine.
Using the web interface I get the same results
Now using HASSIO Switch I get the relay come on BUT an new stat/test/POWER = ON gets created in the MQTT server !!
I can’t find where the stat publishing is being created but HASSIO now shows the switch on and you cannot turn it off as its looking to test/light/stat which never gets called !!
Not sure if this is when I changed to lovelace ??
Any thoughts please
Status 0 for info
17:33:43 MQT: test/light/stat/STATUS = {“Status”:{“Module”:1,“FriendlyName”:[“test”],“Topic”:“light”,“ButtonTopic”:“0”,“Power”:0,“PowerOnState”:3,“LedState”:1,“SaveData”:1,“SaveState”:1,“SwitchTopic”:“0”,“SwitchMode”:[0,0,0,0,0,0,0,0],“ButtonRetain”:0,“SwitchRetain”:0,“SensorRetain”:0,“PowerRetain”:0}}
17:33:43 MQT: test/light/stat/STATUS1 = {“StatusPRM”:{“Baudrate”:115200,“GroupTopic”:“sonoffs”,“OtaUrl”:“http://thehackbox.org/tasmota/release/sonoff.bin",“RestartReason”:"Software/System restart”,“Uptime”:“0T00:01:05”,“StartupUTC”:“2019-02-04T16:32:38”,“Sleep”:0,“BootCount”:19,“SaveCount”:63,“SaveAddress”:“F5000”}}
17:33:43 MQT: test/light/stat/STATUS2 = {“StatusFWR”:{“Version”:“6.3.0”,“BuildDateTime”:“2018-10-30T17:33:53”,“Boot”:31,“Core”:“2_3_0”,“SDK”:“1.5.3(aec24ac9)”}}
17:33:43 MQT: test/light/stat/STATUS3 = {“StatusLOG”:{“SerialLog”:2,“WebLog”:2,“SysLog”:0,“LogHost”:"",“LogPort”:514,“SSId”:[“WIFI_FR1”,“WIFI_FR3”],“TelePeriod”:300,“SetOption”:[“00008009”,“55818000”,“00000000”]}}
17:33:43 MQT: test/light/stat/STATUS4 = {“StatusMEM”:{“ProgramSize”:489,“Free”:512,“Heap”:15,“ProgramFlashSize”:1024,“FlashSize”:1024,“FlashMode”:3,“Features”:[“00000809”,“0FDAE794”,“000183A0”,“23B617CE”,“00003BC0”]}}
17:33:43 MQT: test/light/stat/STATUS5 = {“StatusNET”:{“Hostname”:“garden”,“IPAddress”:“192.168.1.171”,“Gateway”:“192.168.1.1”,“Subnetmask”:“255.255.255.0”,“DNSServer”:“192.168.1.1”,“Mac”:“80:7D:3A:18:67:C5”,“Webserver”:2,“WifiConfig”:5}}
17:33:43 MQT: test/light/stat/STATUS6 = {“StatusMQT”:{“MqttHost”:“192.168.1.170”,“MqttPort”:1883,“MqttClientMask”:“test”,“MqttClient”:“test”,“MqttUser”:“mqtt”,“MqttType”:1,“MAX_PACKET_SIZE”:1000,“KEEPALIVE”:15}}
17:33:43 MQT: test/light/stat/STATUS7 = {“StatusTIM”:{“UTC”:“Mon Feb 04 16:33:43 2019”,“Local”:“Mon Feb 04 17:33:43 2019”,“StartDST”:“Sun Mar 31 02:00:00 2019”,“EndDST”:“Sun Oct 27 03:00:00 2019”,“Timezone”:1,“Sunrise”:“08:16”,“Sunset”:“17:51”}}
17:33:43 MQT: test/light/stat/STATUS10 = {“StatusSNS”:{“Time”:“2019-02-04T17:33:43”}}
17:33:43 MQT: test/light/stat/STATUS11 = {“StatusSTS”:{“Time”:“2019-02-04T17:33:43”,“Uptime”:“0T00:01:05”,“Vcc”:3.153,“POWER”:“OFF”,“Wifi”:{“AP”:1,“SSId”:“WIFI_FR1”,“BSSId”:“00:1D:6A:65:42:2C”,“Channel”:3,“RSSI”:82}}}
This is HASSIO truning the relay on WHY stat ???
17:37:18 MQT: stat/test/RESULT = {“POWER”:“ON”}
17:37:18 MQT: stat/test/POWER = ON
This is HASSIO turning the relay OFF !!!
17:37:30 MQT: stat/test/RESULT = {“POWER”:“ON”}
17:37:30 MQT: stat/test/POWER = ON
17:37:57 MQT: test/light/tele/STATE = {“Time”:“2019-02-04T17:37:57”,“Uptime”:“0T00:05:19”,“Vcc”:3.152,“POWER”:“ON”,“Wifi”:{“AP”:1,“SSId”:“WIFI_FR1”,“BSSId”:“00:1D:6A:65:42:2C”,“Channel”:3,“RSSI”:88}}