I need to know if my sump pump has failed. It should run several times within 30 minutes of rainfall. Maybe I am overthinking how to do this. I think it's too complex for the 'new automation' tool.
So within the past 30 minutes, if it rained and the pump hasn't run, send a pump failure notification.
Approach:
- Automation 1: every minute, check openweathermap_condition for any of the words rain, shower, thunderstorm and if found set an input boolean to true for 30 minutes.
- Automation 2:
a. every 30 minutes, if that rain Boolean is true and the pump did not run in the past 30 minutes** send a notification of pump failure.
b. mute the notifier for 8 hours after a notification
** I would need help to scan the pump run history in HA's database.
Maybe there is a simpler approach to accomplish this. Thx in advance!