Good evening community!
I have an electric meter that I’m bringing over using rtl_sdr
and importing via MQTT to HA. However, I’m getting an “unknown” on the state of the sensor after creating it. Here is the information… what am I doing wrong?
- platform: mqtt state_topic: "metermon/28301694" name: "Electric Meter Reading" value_template: "{{ value_json.Consumption }}" qos: 0 unit_of_measurement: "kWh" device_class: "energy"
Here is the raw JSON from MQTT.
{"Protocol": "SCM", "Type": "Electric", "ID": "28301694", "Consumption": 24166.45, "Unit": "kWh"}
Any help would be appreciated!