Dear team,
I want to make new entity in my home assistant.
- sensor:
- name: Remaining energy
device_class: energy
state_class: total_increasing
unit_of_measurement: kWh
state: "{{ states('125')|float(0) - states('sensor.sonoff_energy')|float(0) }}"
availability: "{{ has value('125') and has_value('sensor.sonoff_energy') }}"
125 value is my quota energy.
still not Woking.
Somebody please help…
big thanks for everyone…