Hi Friends!
I am trying to display readins from current sensors in HA.
Data are sent from from ESP8266 with Tasmota over MQTT to HA.
I can read the data in HA using MQTT listening:
{
"SSerialReceived": {
"I1": 0.07,
"I2": 0.02,
"I3": 0.01,
"I4": 0.03
}
}
Auto discovery did not wor so I created sensor entities manualy:
sensor:
- platform: mqtt
name: I1
unique_id: "I1"
state_topic: "tryskac/zatizeni/RESULT"
unit_of_measurement: 'Amp'
value_template: "{{ value_json.I1 }}"
- platform: mqtt
name: I2
unique_id: "I2"
state_topic: "tryskac/zatizeni/RESULT"
unit_of_measurement: 'Amp'
value_template: "{{ value_json.I2 }}"
- platform: mqtt
name: I3
unique_id: "I3"
state_topic: "tryskac/zatizeni/RESULT"
unit_of_measurement: 'Amp'
value_template: "{{ value_json.I3 }}"
- platform: mqtt
name: I4
unique_id: "I4"
state_topic: "tryskac/zatizeni/RESULT"
unit_of_measurement: 'Amp'
value_template: "{{ value_json.I4 }}"
Sensor entities have been created
I created lovelace sensor cards:
But no any values are displayed.
I am playing with it couple of days and became desperate.
Any idea what could be wrong?