Sonoff TH16 with SI7021 - humidity not displaying

I have a Sonoff TH16 running tasmota with a SI7021 sensor. The temperature is displaying on the frontend, but not humidity.

Sensor entry:
- platform: mqtt
name: “Garage Temperature”
state_topic: “tele/garagepowertemp/SENSOR”
qos: 1
value_template: “{{ value_json.SI7021.Temperature }}”
unit_of_measurement : “°C”
- platform: mqtt
name: “Garage Humidity”
state_topic: “tele/garagepowertemp/SENSOR”
qos: 1
value_template: “{{ value_json.SO7021.Humidity }}”

Module state:
09:55:44 MQT: tele/garagepowertemp/SENSOR = {“Time”:“2019-03-13T09:55:44”,“SI7021”:{“Temperature”:19.3,“Humidity”:73.9},“TempUnit”:“C”}

1 Like

Please use the code block for code, this makes it easier to read the code.
Above is missing an ‘I’. In your config is an ‘O’.

Try this:

- platform: mqtt
  name: “Garage Humidity”
  state_topic: “tele/garagepowertemp/SENSOR”
  qos: 1
  value_template: “{{ value_json.SI7021.Humidity }}”

Oh my goodness! Happens when you stare at a problem too long. Thanks so much. Working now.

Tried using the code block button but it didn’t seem to work (this was my first post)…

I followed your config for temperature but my display looks like this instead of just showing 21.9°C.

- platform: mqtt
  name: "aqua temp"
  state_topic: "tele/sonoff_th1/SENSOR"
  qos: 1
  value_template: “{{ value_json.DS18B20.Temperature }}”
  unit_of_measurement : “°C”

image

Sorted. Changing double-quote to single-quote corrected it.
image