When I restart zui, this automation kicks off. I am using it to send me a notification for when my sump pump turns off. The on notification works fine.
How do I add a condition to prevent it from going off when zui restarts or any other system issue?
alias: Pump is Off
description: ""
triggers:
- trigger: numeric_state
entity_id:
- sensor.well_pump_1_electric_a
below: 2
conditions: []
actions:
- action: notify.mobile_app_paddy_iphone
metadata: {}
data:
message: The Pump Turned Off
- action: notify.persistent_notification
metadata: {}
data:
message: The pump turned off at {{now()}}
mode: single