Hi I have four pumps to drain my house and drainage system.
I need an alarm if one of them runs too long because it ran dray or the sensor got stuck.
I tested this Automation:
alias: Überwachung der Tauchpumpen
description: >-
Automatisierung zur Überwachung der Tauchpumpen und Benachrichtigung bei zu
langem Betrieb.
triggers:
- type: power
device_id: cba380e5b6ebbefc07d1431c4e09abc9
entity_id: 6aba3c4a669619a20f4e4aaf2ccee1f0
domain: sensor
trigger: device
above: 100
for:
hours: 0
minutes: 5
seconds: 0
conditions: []
actions:
- action: script.benachrichtigung_je_nach_standort
metadata: {}
data:
message: Achtung Pumpe Läuft zu lange.
mode: single
I have twoe issues with them:
- Timer is not persistant, however it would restart if HA reboots for whatever reason?
- I would have to write 4 automations in the end, is there a more elegant way?
If I would use a timer I would additionally need four timer helpers right?
Kidn regards Nils