Hey guys,
I had issues with the temperature mqtt sensor provided on the blackadder template for the Kogan kettle. Not sure if it’s due to updates to hass or maybe with tasmota? To get this working I used the following code, I thought I’d share in case anyone else runs into this.
- platform: mqtt
name: "Kogan Temperature"
state_topic: kogan/tele/RESULT
value_template: >
{% if value_json.TuyaReceived['5'].DpIdData %}
{{ value_json.TuyaReceived['5'].DpIdData | int(base=16) }}
{% else %}
{{ states('sensor.kogan_temperature') }}
{% endif %}
unit_of_measurement: '°C'