Sonoff Basic + Tasmota 5.8.0 + DS18B20

Hi

I’ve succesfully installed sonoff basic + tasmota in home assistant and it works fine. But i’ve connected also ds18b20, and i don’t know how to run the temperature sensor in HA.
My Topic is “pompa_co” and mu configuration.yaml is:

sensor:

  • platform: mqtt
    name: “Temperature”
    state_topic: “tele/pompa_co/SENSOR”
    value_template: “{{ value_json.StatusSNS.DS18B20.Temperature }}”
    unit_of_measurement: “°C”

What is wrong?
Regards
Woj

Got this in my config and it’s working like a charm (topic is sonoff12).

sensor:
  - platform: mqtt
    state_topic: 'tele/sonoff12/SENSOR'
    name: 'T-Ext'
    unit_of_measurement: '°C'
    value_template: '{{ value_json["DS18B20"]["Temperature"] }}'

Try to copy my value_template :slight_smile:

3 Likes

thank you - it works

1 Like