Hi
I’m searching for a solution to update my electric meter.
I have a shelly EM which is reading the energy consumption. (sensor.energy_total
= 34.54Kwh)
and i have the index from the energy meter 12345 (input_number.energy
).
I would like to have a sensor which calculates the index of meter. Curent index + consumption (12345+34.54)
I tried with this automation:
alias: Update Energy Meter
description: ''
trigger:
- platform: time_pattern
minutes: '*'
condition: []
action:
- service: input_number.set_value
data_template:
entity_id: input_number.energy
value: >-
{{ states('input_enenrgy.energy')|float +
states('sensor.total_energy')|float }}
mode: single
but it always get the value of shelly sensor.