It is not working anyway.
I’ve created this new sensor:
template:
- sensor:
- name: "power_all_new"
unit_of_measurement: "Вт"
state_class: measurement
state: >
{% set room = states('sensor.load_04cf8cdf3c867ea8') | float %}
{% set fridge = states('sensor.load_00158d00039c0362') | float %}
{{ (room + fridge) | round(1) }}
Also I’ve customized it like this (see Energy: Not showing the expected entities for consumption - #12 by francisp):
sensor.power_all_new:
last_reset: '1970-01-01T00:00:00+00:00'
device_class: energy
state_class: measurement
But this new sensor power_all_new
still is not showing on the new energy consumption page.
New sensor indeed has the measurement
option: