Hello, i would like to get my last hour energy used of my sensor (Shelly EM) who is recording the power used from my house. reason of that is well setup the custom:tesla-style-solar-power-card.
with following code i get the total value from the beginning of the recording… how to get the last hours?
thak you all in advance
template:
- sensor:
- name: 'Daily Energy Total'
device_class: energy
unit_of_measurement: kWh
state: >
{{ states('sensor.monit_casa_e_fotovoltaico_channel_1_energy') | float }}