Hi All
I have a Sonoff pow2 connected to my soak away pump. I had an issue last year with a blockage which burnt out the pump as it was running 24/7 for I dont know how long. Id like to set the following
if running for > 15 mins at a time or
10 times a day
turn off the power to the pump and notify
notifications id like are email or an alexa message that can be played when home. I dont see the need for a push notifcation because if im not home there isnt anything to worry about till i do get home etc.
trigger:
platform: state
entity_id: switch.your_pump
to: 'on'
for:
minutes: 15
action:
service: switch.turn_off
entity_id: switch.your_pump
is based on the switch status, but that is always on else the pump cant run. What i need is to turn a status switch to show the pump is running if there is more than 200 watts being drawn?
However i cant work out how to get it use the value of greater than, ie > 300 watts. It reports the value in developer tools.
Im assuming its the ‘is_state’ as im assuming thats a string value, i need to read the integer so i can check if its greater than less than etc.