joba-1 / Tasmoticz

Domoticz MQTT autodiscovery plugin for Tasmota devices
MIT License
25 stars 18 forks source link

Switches/buttons not detected #50

Open derfz opened 4 months ago

derfz commented 4 months ago

I seem to have an issue with switches/buttons configured on the tasmota device not being detected in domoticz. If I configure a temp prob DS18x20 it works as expected. Relays also show in domoticz

Unfortunately my very limited knowledge is a significant barrier here.

Tasmota: Program Version | 14.1.0 (release-tasmota) 2024-06-03T11:53:14 2_7_6/2.2.2-dev(38a443e) 0T00:12:04 30 at 0xF6000   192.168.1.30 1883 mqtt_remote DVES_1461D8 HydroRoom cmnd/tasmotas/ cmnd/HydroRoom/ cmnd/DVES_1461D8_fb/ Disabled   None   1335768 (ESP8266EX) 0x1640EF (DOUT) 4096 KB 1024 KB 647 KB 356 KB 25.2 KB

Payload. 20:57:50.277 MQT: tele/HydroRoom/STATE = {"Time":"2024-07-20T20:57:50","Uptime":"0T00:21:51","UptimeSec":1311,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":2,"Wifi":{"AP":1,"SSId":"SilverFox","BSSId":"B2:42:A1:67:F4:6C","Channel":2,"Mode":"11n","RSSI":94,"Signal":-53,"LinkCount":1,"Downtime":"0T00:00:05"}} 20:57:50.283 MQT: tele/HydroRoom/SENSOR = {"Time":"2024-07-20T20:57:50","Switch1":"OFF","Switch2":"OFF"} 20:58:00.259 MQT: tele/HydroRoom/STATE = {"Time":"2024-07-20T20:58:00","Uptime":"0T00:22:01","UptimeSec":1321,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":23,"MqttCount":2,"Wifi":{"AP":1,"SSId":"SilverFox","BSSId":"B2:42:A1:67:F4:6C","Channel":2,"Mode":"11n","RSSI":100,"Signal":-50,"LinkCount":1,"Downtime":"0T00:00:05"}} 20:58:00.265 MQT: tele/HydroRoom/SENSOR = {"Time":"2024-07-20T20:58:00","Switch1":"OFF","Switch2":"OFF"} 20:58:10.257 MQT: tele/HydroRoom/STATE = {"Time":"2024-07-20T20:58:10","Uptime":"0T00:22:11","UptimeSec":1331,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":2,"Wifi":{"AP":1,"SSId":"SilverFox","BSSId":"B2:42:A1:67:F4:6C","Channel":2,"Mode":"11n","RSSI":100,"Signal":-50,"LinkCount":1,"Downtime":"0T00:00:05"}} 20:58:10.263 MQT: tele/HydroRoom/SENSOR = {"Time":"2024-07-20T20:58:10","Switch1":"OFF","Switch2":"OFF"} 20:58:20.284 MQT: tele/HydroRoom/STATE = {"Time":"2024-07-20T20:58:20","Uptime":"0T00:22:21","UptimeSec":1341,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":2,"Wifi":{"AP":1,"SSId":"SilverFox","BSSId":"B2:42:A1:67:F4:6C","Channel":2,"Mode":"11n","RSSI":98,"Signal":-51,"LinkCount":1,"Downtime":"0T00:00:05"}} 20:58:20.292 MQT: tele/HydroRoom/SENSOR = {"Time":"2024-07-20T20:58:20","Switch1":"OFF","Switch2":"OFF"} 20:58:30.289 MQT: tele/HydroRoom/STATE = {"Time":"2024-07-20T20:58:30","Uptime":"0T00:22:31","UptimeSec":1351,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":2,"Wifi":{"AP":1,"SSId":"SilverFox","BSSId":"B2:42:A1:67:F4:6C","Channel":2,"Mode":"11n","RSSI":98,"Signal":-51,"LinkCount":1,"Downtime":"0T00:00:05"}} 20:58:30.296 MQT: tele/HydroRoom/SENSOR = {"Time":"2024-07-20T20:58:30","Switch1":"OFF","Switch2":"OFF"} 20:58:40.286 MQT: tele/HydroRoom/STATE = {"Time":"2024-07-20T20:58:40","Uptime":"0T00:22:41","UptimeSec":1361,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":2,"Wifi":{"AP":1,"SSId":"SilverFox","BSSId":"B2:42:A1:67:F4:6C","Channel":2,"Mode":"11n","RSSI":98,"Signal":-51,"LinkCount":1,"Downtime":"0T00:00:05"}} 20:58:40.292 MQT: tele/HydroRoom/SENSOR = {"Time":"2024-07-20T20:58:40","Switch1":"OFF","Switch2":"OFF"} 20:58:50.261 MQT: tele/HydroRoom/STATE = {"Time":"2024-07-20T20:58:50","Uptime":"0T00:22:51","UptimeSec":1371,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":2,"Wifi":{"AP":1,"SSId":"SilverFox","BSSId":"B2:42:A1:67:F4:6C","Channel":2,"Mode":"11n","RSSI":98,"Signal":-51,"LinkCount":1,"Downtime":"0T00:00:05"}} 20:58:50.267 MQT: tele/HydroRoom/SENSOR = {"Time":"2024-07-20T20:58:50","Switch1":"OFF","Switch2":"OFF"} 20:59:00.263 MQT: tele/HydroRoom/STATE = {"Time":"2024-07-20T20:59:00","Uptime":"0T00:23:01","UptimeSec":1381,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":27,"MqttCount":2,"Wifi":{"AP":1,"SSId":"SilverFox","BSSId":"B2:42:A1:67:F4:6C","Channel":2,"Mode":"11n","RSSI":98,"Signal":-51,"LinkCount":1,"Downtime":"0T00:00:05"}} 20:59:00.270 MQT: tele/HydroRoom/SENSOR = {"Time":"2024-07-20T20:59:00","Switch1":"OFF","Switch2":"OFF"} 20:59:10.275 MQT: tele/HydroRoom/STATE = {"Time":"2024-07-20T20:59:10","Uptime":"0T00:23:11","UptimeSec":1391,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":2,"Wifi":{"AP":1,"SSId":"SilverFox","BSSId":"B2:42:A1:67:F4:6C","Channel":2,"Mode":"11n","RSSI":98,"Signal":-51,"LinkCount":1,"Downtime":"0T00:00:05"}} 20:59:10.281 MQT: tele/HydroRoom/SENSOR = {"Time":"2024-07-20T20:59:10","Switch1":"OFF","Switch2":"OFF"} 20:59:20.249 MQT: tele/HydroRoom/STATE = {"Time":"2024-07-20T20:59:20","Uptime":"0T00:23:21","UptimeSec":1401,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":2,"Wifi":{"AP":1,"SSId":"SilverFox","BSSId":"B2:42:A1:67:F4:6C","Channel":2,"Mode":"11n","RSSI":98,"Signal":-51,"LinkCount":1,"Downtime":"0T00:00:05"}} 20:59:20.257 MQT: tele/HydroRoom/SENSOR = {"Time":"2024-07-20T20:59:20","Switch1":"OFF","Switch2":"OFF"} 20:59:30.257 MQT: tele/HydroRoom/STATE = {"Time":"2024-07-20T20:59:30","Uptime":"0T00:23:31","UptimeSec":1411,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":22,"MqttCount":2,"Wifi":{"AP":1,"SSId":"SilverFox","BSSId":"B2:42:A1:67:F4:6C","Channel":2,"Mode":"11n","RSSI":98,"Signal":-51,"LinkCount":1,"Downtime":"0T00:00:05"}} 20:59:30.265 MQT: tele/HydroRoom/SENSOR = {"Time":"2024-07-20T20:59:30","Switch1":"OFF","Switch2":"OFF"} 20:59:40.241 MQT: tele/HydroRoom/STATE = {"Time":"2024-07-20T20:59:40","Uptime":"0T00:23:41","UptimeSec":1421,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":2,"Wifi":{"AP":1,"SSId":"SilverFox","BSSId":"B2:42:A1:67:F4:6C","Channel":2,"Mode":"11n","RSSI":98,"Signal":-51,"LinkCount":1,"Downtime":"0T00:00:05"}} 20:59:40.247 MQT: tele/HydroRoom/SENSOR = {"Time":"2024-07-20T20:59:40","Switch1":"OFF","Switch2":"OFF"} 20:59:50.283 MQT: tele/HydroRoom/STATE = {"Time":"2024-07-20T20:59:50","Uptime":"0T00:23:51","UptimeSec":1431,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":2,"Wifi":{"AP":1,"SSId":"SilverFox","BSSId":"B2:42:A1:67:F4:6C","Channel":2,"Mode":"11n","RSSI":100,"Signal":-49,"LinkCount":1,"Downtime":"0T00:00:05"}} 20:59:50.289 MQT: tele/HydroRoom/SENSOR = {"Time":"2024-07-20T20:59:50","Switch1":"OFF","Switch2":"OFF"} 21:00:00.283 MQT: tele/HydroRoom/STATE = {"Time":"2024-07-20T21:00:00","Uptime":"0T00:24:01","UptimeSec":1441,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":36,"MqttCount":2,"Wifi":{"AP":1,"SSId":"SilverFox","BSSId":"B2:42:A1:67:F4:6C","Channel":2,"Mode":"11n","RSSI":98,"Signal":-51,"LinkCount":1,"Downtime":"0T00:00:05"}} 21:00:00.288 MQT: tele/HydroRoom/SENSOR = {"Time":"2024-07-20T21:00:00","Switch1":"OFF","Switch2":"OFF"} 21:00:10.285 MQT: tele/HydroRoom/STATE = {"Time":"2024-07-20T21:00:10","Uptime":"0T00:24:11","UptimeSec":1451,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":2,"Wifi":{"AP":1,"SSId":"SilverFox","BSSId":"B2:42:A1:67:F4:6C","Channel":2,"Mode":"11n","RSSI":100,"Signal":-50,"LinkCount":1,"Downtime":"0T00:00:05"}} 21:00:10.291 MQT: tele/HydroRoom/SENSOR = {"Time":"2024-07-20T21:00:10","Switch1":"OFF","Switch2":"OFF"}

Domoticz: Version: 2024.7 Build Hash: b317cfab1 Compile Date: 2024-07-14 02:59:31 dzVents Version: 3.1.8 Python Version: 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110]

mosquitto: {"ip":"192.168.1.100","dn":"HydroRoom","fn":["HydroRoom",null,null,null,null,null,null,null],"hn":"HydroRoom","mac":"4C75251461D8","md":"Generic","ty":0,"if":0,"ofln":"Offline","onln":"Online","state":["OFF","ON","TOGGLE","HOLD"],"sw":"14.1.0","t":"HydroRoom","ft":"%prefix%/%topic%/","tp":["cmnd","stat","tele"],"rl":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"swc":[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],"swn":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"btn":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"so":{"4":0,"11":0,"13":0,"17":0,"20":0,"30":0,"68":0,"73":0,"82":0,"114":0,"117":0},"lk":0,"lt_st":0,"bat":0,"dslp":0,"sho":[],"sht":[],"ver":1}

{"sn":{"Time":"2024-07-20T20:36:28","Switch1":"OFF","Switch2":"OFF"},"ver":1}

Tasmoticz: Latest I have not adjusted any settings in the tasmoticz plugin except for setting the IP and user details.

Your thoughts would be most helpfull.

Regards

Fred

joba-1 commented 4 months ago

Switches are not (yet?) supported by tasmoticz. So far I had no use for them.

Am I understanding you right? You have some on/off state that you cannot control via tasmota or domoticz, just look at the status?