SergeyT
September 4, 2026, 11:28am
1
Dear Collegues,
Could You advise with folow situation, please?
I have integrated by MQTT electrical measuring parameters. The configuration.yaml add follow (see screen)
In HA on the dachboard history grapfic and value are missing (see screen)
In the same moment i can see that MQTT sensors are active (see screen)
What do I wrong?
Your sensors need a unit_of_measurement to display numeric graphs.
If you add a state_class they will also store long term statistics.
A device_class is useful too.
SergeyT
September 6, 2026, 11:23am
3
Dear Tom,
Thank You for advice. I am just starting work with HA and i can’t easy write code in yaml. Can i ask for You write, please, here additional what You mean
mqtt:
sensor:
name: “HNPM_U1”
state_topic: “#”
value_template: “{{ value_json.U1 }}”
SergeyT
September 6, 2026, 11:46am
4
anon11644107:
unit_of_measurement
…i tried do it (see screen)
but systems is fault information (see screen)
Am i wrong?
device_class: voltage
state_class: measurement
unit_of_measurement: "V"
The list of valid device classes is here: Sensor - Home Assistant
SergeyT
September 6, 2026, 11:57am
6
Tom, thank You!!! I will try do it. I will inform You about result.
SergeyT
September 6, 2026, 3:19pm
7
…Tom, thank You very much!!! It’s work!