Closed mikep1998 closed 3 years ago
tasmota documentation tasmota source (message by IssueLinks)
Hey there @emontnemery, mind taking a look at this issue as it has been labeled with an integration (tasmota
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
Update I noticed that the relay are off by 1. The first relay is not defined, switch.tasmota_246f289ea6ec_switch_relay_1 is actually relay 2. Only physical relays 2-5 are defined and relay 1 is not defined. Why is that?
Are you using the Tasmota integration (setoption19 0) or MQTT (setoption19 1)?
stat/jacuzzi_Tub_Down/RESULT = {"SetOption19":"OFF"}
OK. Can you share the discovery message sent by the device?
You can get it from command line by doing:
mosquitto_sub -v -h <mqtt_broker> -t "tasmota/#"
The output will be something like this:
tasmota/discovery/D8F15BD87693/config {"ip":"192.168.0.176","dn":"Tasmota","fn":["Tasmota","Tasmota2",null,null,null,null,null,null],"hn":"tasmota_D87693","mac":"D8F15BD87693","md":"MS-104B Light ESP-M3","ty":0,"if":0,"ofln":"Offline","onln":"Online","state":["OFF","ON","TOGGLE","HOLD"],"sw":"9.2.0.3","t":"tasmota_D87693","ft":"%topic%/%prefix%/","tp":["cmnd","stat","tele"],"rl":[1,1,0,0,0,0,0,0],"swc":[-1,-1,-1,-1,-1,-1,-1,-1],"swn":[null,null,null,null,null,null,null,null],"btn":[0,0,0,0],"so":{"4":0,"11":0,"13":0,"17":0,"20":0,"30":1,"68":0,"73":0,"82":0,"114":0,"117":0},"lk":1,"lt_st":0,"sho":[0,0,0,0],"ver":1}
tasmota/discovery/D8F15BD87693/sensors {"sn":{"Time":"2021-10-03T16:01:43","Switch1":"ON","Switch2":"ON"},"ver":1}
Please also share the output of commands module
and template
in the Tasmota console.
{"sn":{"Time":"2021-10-11T23:44:44","Switch1":"ON","Switch2":"OFF","Switch3":"OFF","Switch4":"OFF","Switch5":"OFF","COUNTER":{"C1":0},"ANALOG":{"A1":1087,"Temperature2":64.3},"DS18B20-1":{"Id":"3C01D6074A0D","Temperature":61.0},"DS18B20-2":{"Id":"01131C1E0C73","Temperature":61.7},"Jacuzzi":{"Drain":"Open","Level":95,"Target_Temp":0,"HotWaterTemp":61,"TubWaterTemp":62,"StateNum":"1","FillStateNum":"1","State":"Idle","FillState":"Idle","Depth":0.000000},"ESP32":{"Temperature":103.0},"TempUnit":"F"},"ver":1}
{"sn":{"Time":"2021-10-11T23:44:44","Switch1":"ON","Switch2":"OFF","Switch3":"OFF","Switch4":"OFF","Switch5":"OFF","COUNTER":{"C1":0},"ANALOG":{"A1":1087,"Temperature2":64.3},"DS18B20-1":{"Id":"3C01D6074A0D","Temperature":61.0},"DS18B20-2":{"Id":"01131C1E0C73","Temperature":61.7},"Jacuzzi":{"Drain":"Open","Level":95,"Target_Temp":0,"HotWaterTemp":61,"TubWaterTemp":62,"StateNum":"1","FillStateNum":"1","State":"Idle","FillState":"Idle","Depth":0.000000},"ESP32":{"Temperature":103.0},"TempUnit":"F"},"ver":1}
23:50:22.496 CMD: module
23:50:22.514 MQT: stat/jacuzzi_Tub_Down/RESULT = {"Module":{"0":"Jacuzzi_Tub_Down"}}
23:50:33.800 CMD: template
23:50:33.827 MQT: stat/jacuzzi_Tub_Down/RESULT = {"NAME":"Jacuzzi_Tub_Down","GPIO":[1,1,1,1,193,196,0,0,1,160,416,1,194,1,352,195,0,1312,1856,1888,0,258,259,260,0,0,0,0,256,257,4704,1,4737,0,0,1],"FLAG":0,"BASE":1}
Please share the discovery messages sent by the device, you shared only the sensor configuration twice.
You can get it from command line by doing:
mosquitto_sub -v -h <mqtt_broker> -t "tasmota/#"
The output will be something like this:
tasmota/discovery/D8F15BD87693/config {"ip":"192.168.0.176","dn":"Tasmota","fn":["Tasmota","Tasmota2",null,null,null,null,null,null],"hn":"tasmota_D87693","mac":"D8F15BD87693","md":"MS-104B Light ESP-M3","ty":0,"if":0,"ofln":"Offline","onln":"Online","state":["OFF","ON","TOGGLE","HOLD"],"sw":"9.2.0.3","t":"tasmota_D87693","ft":"%topic%/%prefix%/","tp":["cmnd","stat","tele"],"rl":[1,1,0,0,0,0,0,0],"swc":[-1,-1,-1,-1,-1,-1,-1,-1],"swn":[null,null,null,null,null,null,null,null],"btn":[0,0,0,0],"so":{"4":0,"11":0,"13":0,"17":0,"20":0,"30":1,"68":0,"73":0,"82":0,"114":0,"117":0},"lk":1,"lt_st":0,"sho":[0,0,0,0],"ver":1}
tasmota/discovery/D8F15BD87693/sensors {"sn":{"Time":"2021-10-03T16:01:43","Switch1":"ON","Switch2":"ON"},"ver":1}
{"ip":"192.168.1.105","dn":"jacuzzi_Tub_Down","fn":["jacuzzi_Tub_Down","jacuzzi_Tub_Down2","jacuzzi_Tub_Down3","jacuzzi_Tub_Down4","",null,null,null],"hn":"jacuzzi-Tub-Down","mac":"246F289EA6EC","md":"Jacuzzi_Tub_Down","ty":0,"if":0,"ofln":"Offline","onln":"Online","state":["OFF","ON","TOGGLE","HOLD"],"sw":"9.5.0.9","t":"jacuzzi_Tub_Down","ft":"%prefix%/%topic%/","tp":["cmnd","stat","tele"],"rl":[1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"swc":[2,15,15,15,15,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],"swn":["Switch1","Switch2","Switch3","Switch4","Switch5",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],"so":{"4":0,"11":0,"13":0,"17":0,"20":0,"30":0,"68":0,"73":0,"82":0,"114":1,"117":0},"lk":0,"lt_st":0,"sho":[0,0,0,0],"ver":1}
Thanks!
Is the issue that tasmota did not configure 'Friendly Name 5'?
All 5 switches and all 5 relays are configured by Home Assistant:
So yes, the problem here is the strange "friendly name" configuration in Tasmota.
I found the 5th relay in entities it generated. I was misled by the names and the relay numbered 1-4
entities:
- binary_sensor.switch1
- binary_sensor.switch2
- binary_sensor.switch3
- binary_sensor.switch4
- binary_sensor.switch5
-
- switch.jacuzzi_tub_down
- switch.tasmota_246f289ea6ec_switch_relay_1
- switch.tasmota_246f289ea6ec_switch_relay_2
- switch.tasmota_246f289ea6ec_switch_relay_3
- switch.tasmota_246f289ea6ec_switch_relay_4
The problem
I have tasmota binary 9.0.5.9 configured with 5 relays only 4 relays are shown in tasmota integration. the first 4 relays are show as
Where is the 5 relay?
From tasmota log
19:16:19.927 MQT: tele/jacuzzi_Tub_Down/STATE = {"Time":"2021-10-11T19:16:19","Uptime":"0T00:28:18","UptimeSec":1698,"Heap":148,"SleepMode":"Dynamic","Sleep":250,"LoadAvg":27,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","POWER4":"OFF","POWER5":"OFF","PWM":{"PWM1":0},"Wifi":{"AP":1,"SSId":"mike1.1.1","BSSId":"C4:04:15:44:CA:82","Channel":9,"Mode":"11n","RSSI":84,"Signal":-58,"LinkCount":1,"Downtime":"0T00:00:11"}} 19:16:20.034 MQT: tele/jacuzzi_Tub_Down/SENSOR = {"Time":"2021-10-11T19:16:19","Switch1":"OFF","Switch2":"OFF","Switch3":"OFF","Switch4":"OFF","Switch5":"OFF","COUNTER":{"C1":0},"ANALOG":{"A1":1119,"Temperature2":66.5},"DS18B20-1":{"Id":"3C01D6074A0D","Temperature":66.5},"DS18B20-2":{"Id":"01131C1E0C73","Temperature":62.5},"Jacuzzi":{"Drain":"Open","Level":95,"Target_Temp":0,"HotWaterTemp":67,"TubWaterTemp":62,"StateNum":"1","FillStateNum":"1","State":"Idle","FillState":"Idle","Depth":0.000000},"ESP32":{"Temperature":128.0},"TempUnit":"F"}
What is version of Home Assistant Core has the issue?
core-2021.10.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
tasmota
Link to integration documentation on our website
https://www.home-assistant.io/integrations/tasmota/
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response