I need help regarding water level sensor. The problem is that sometimes measurement is flipping between two values and then sensor is showing UP and DOWN values, which then makes problem if I want to use this sensor as energy meter because values of flipping up and down is reflected as consumption.
And values are completly wrong on consumption energy meter…
So the goal is to create new sensor which would made measurement based on some event (I can use water pump energy).
So when water pump stop to work (consumption below 10 Watt) then measurement of consumption would be made, otherwise not.
You should learn this and it will take time … in the meantime there is plenty to copy/paste from what you can find in this forum…a lot of searching but then you move forward too
Something like this… when power below 10 then update sensor with that value
EDIT: I missed the pump…PUMP should be below 10
# Example configuration entry
template:
- trigger:
- platform: numeric_state
entity_id: sensor.YOURPUMPENTITY
below: 10
sensor:
- name: "YOURNAMEFOR THIS NEW SENSOR"
state: '{{ states('sensor.YOURPOWERENTITY') | float(0)}}'