Horus
February 26, 2026, 7:36pm
1
Hello,
I have created a helper to sum up two entities:
If works perfectly and the sum is correct. What suprises me, that it is not shown alongside with the operands, albeit it has the same unit:
both are of unit kWh. Why are they not shown in the same graph.
Furthermore, in the statistics card, the sum sensor is not shown at all.
Can anyone explain this behavior to me?
Thanks!
Likely because the sum sensor has not been assigned a matching device or state class.
Horus:
Furthermore, in the statistics card, the sum sensor is not shown at all.
Can anyone explain this behavior to me?
Did you check the link given in the Statistics Cards docs that mentions sensors not working ?
Unless something has changed recently, the product of a Min/Max (aka “Combine the state of several sensors” Helper) does not have an assigned state class which is required for inclusion in LTS. You can add the necessary attributes through Manual Customization of the entity.
Horus
February 28, 2026, 7:48am
3
Likely because the sum sensor has not been assigned a matching device or state class.
I assume that cannot be done in the UI. I will have a look at Manual Customization . Thanks!
Did you check the link given in the Statistics Cards docs that mentions sensors not working ?
The sensor is available in the data source selection of the stats card, but not shown in the graph.
Horus
March 5, 2026, 8:39pm
4
I tried to set an appropriate state_class:
customize:
sensor.energieverbrauch_quooker_total:
state_class: "total_increasing"
in my configuration.yaml, but still the sensor shows:
state_class: measurement
entity_id:
- sensor.janus_1_energy_total
- sensor.janus_2_energy_total
unit_of_measurement: kWh
device_class: energy
icon: mdi:calculator
friendly_name: Energieverbrauch Quooker
of entity sensor.energieverbrauch_quooker_total.
Can you give a hint what could be missing?
Best Thanks!