home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
70.46k stars 29.39k forks source link

Tasmota autodetect DS18B20 sensor does not show temperature #98699

Closed soulid closed 8 months ago

soulid commented 12 months ago

The problem

DS18B20 sensor connected through "Tasmota sensor" (13.1.0(sensors)) show the sensor serial number (3CE10457A8F9) instead of temperatur in device information screen

What version of Home Assistant Core has the issue?

core-2023.8.2

What was the last working version of Home Assistant Core?

core-2023.8.2

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Tasmota

Link to integration documentation on our website

https://github.com/home-assistant/core/tree/dev/homeassistant/components/tasmota

Diagnostics information

MQTT data send: 11:09:47.121 MQT: tele/Wetterstation2023/STATE = {"Time":"2023-08-20T11:09:47","Uptime":"0T00:20:10","UptimeSec":1210,"Heap":19,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER":"ON","Wifi":{"AP":1,"SSId":"WLS1924","BSSId":"7C:FF:4D:18:FB:54","Channel":11,"Mode":"11n","RSSI":28,"Signal":-86,"LinkCount":1,"Downtime":"0T00:00:04"}} 11:09:47.132 MQT: tele/Wetterstation2023/SENSOR = {"Time":"2023-08-20T11:09:47","DS18B20":{"Id":"3CE10457A8F9","Temperature":27.9},"BME280":{"Temperature":27.8,"Humidity":54.5,"DewPoint":17.8,"Pressure":1018.0},"BH1750":{"Illuminance":171},"PressureUnit":"hPa","TempUnit":"C"}

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 12 months ago

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!

Code owner commands Code owners of `tasmota` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign tasmota` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


tasmota documentation tasmota source (message by IssueLinks)

jbouwh commented 11 months ago

Can you share a screenshot?

emontnemery commented 11 months ago

@soulid to solve this, MQTT messages from the device is needed, could you please share that? This can be done from command line or via some UI tool, whichever you prefer.

From the command line, first get all tasmota discovery messages:

$ mosquitto_sub -h <mqtt_broker> -v -t "tasmota/#"
tasmota/discovery/D8F15BD8762B/config {"ip":"192.168.0.175","dn":"Guest toilet","fn":["Guest toilet",null,null,null,null,null,null,null],"hn":"tasmota_D8762B","mac":"D8F15BD8762B","md":"MS-104 Light ESP-M3","ty":0,"if":0,"ofln":"Offline","onln":"Online","state":["OFF","ON","TOGGLE","HOLD"],"sw":"9.2.0.3","t":"tasmota_D8762B","ft":"%topic%/%prefix%/","tp":["cmnd","stat","tele"],"rl":[1,0,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/D8F15BD8762B/sensors {"sn":{"Time":"2023-08-03T13:24:13","Switch1":"ON"},"ver":1}
tasmota/discovery/A020A61D81CE/config {"ip":"192.168.0.106","dn":"Aquarium","fn":["Aquarium",null,null,null,null,null,null,null],"hn":"tasmota_1D81CE","mac":"A020A61D81CE","md":"MagicHome","ty":0,"if":0,"ofln":"Offline","onln":"Online","state":["OFF","ON","TOGGLE","HOLD"],"sw":"9.4.0.4","t":"tasmota_1D81CE","ft":"%topic%/%prefix%/","tp":["cmnd","stat","tele"],"rl":[2,0,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,0,0,0,0],"so":{"4":0,"11":0,"13":0,"17":1,"20":0,"30":0,"68":0,"73":0,"82":0,"114":0,"117":0},"lk":1,"lt_st":4,"sho":[0,0,0,0],"ver":1}
tasmota/discovery/A020A61D81CE/sensors {"sn":{"Time":"2023-08-05T08:29:47"},"ver":1}

Then subscribe to all topics from the device with the sensor for one teleperiod (usually 10 minutes):

$ mosquitto_sub -h <mqtt_broker> -v -t "tasmota_1D81CE/#"
tasmota_1D81CE/tele/LWT Online
tasmota_1D81CE/tele/STATE {"Time":"2023-09-11T07:40:13","Uptime":"36T23:10:43","UptimeSec":3193843,"Heap":30,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":63,"MqttCount":12,"POWER":"ON","Dimmer":97,"Color":"0,0,0,247","HSBColor":"360,100,0","White":97,"Channel":[0,0,0,97],"Scheme":0,"Fade":"OFF","Speed":1,"LedTable":"ON","Wifi":{"AP":1,"SSId":"MyWLAN","BSSId":"D0:21:F9:37:D1:75","Channel":1,"RSSI":86,"Signal":-57,"LinkCount":12,"Downtime":"0T00:00:22"}}
issue-triage-workflows[bot] commented 8 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.