Hello
I tried to create a new sensor for energy
- platform: template
sensors:
shelly_energy:
friendly_name: "Shelly total Energy KWH"
unit_of_measurement: 'kWh'
# state_class: total_increasing
value_template: "{{ states('sensor.shellyem3_bcff4dfd1d62_channel_a_energy') |float + states('sensor.shellyem3_bcff4dfd1d62_channel_b_energy') }}"
device_class: "energy"
but I am not able to choose the state_class: total increasing in order to include it in the energy board
Do you have any idea how to create such sensor ?
Thank you