garage_temp_sensor:
name: Garage Low Temperature
entity_id: binary_sensor.garage_temp_low
state: "on"
repeat: 5
skip_first: False
message: The garage temperature is low
done_message: The garage temperature has returned to normal
notifiers:
- mobile_app_RK_12
- gmail
How would one make some code based on a boolean button to pause/stop the notifications ?
Thank you for the reply, I couldn’t get the second option to work for some reason?, below in my input boolean, the original alert was left alone as you mentioned. Note that the alarm doesn’t work either without the pause?.
You’re kind of reinventing the wheel here. One of the nice things about the alert entity is it actually supports 3 states. idle, on, off.
Why don’t you just display the alert in the front end instead of the input boolean you have created? Turning off the alert boolean will stop the notifications with the added advantage that the “off” state of the alert entity still indicates that the alert is active.
Here is a card in my config that displays all active alerts. As you can see you can toggle them on or off which will stop the notifications, but they remain visible on the card even though the alert has been turned “off” so you can turn them back on if necessary.
You would need the custom auto-entities card to implement this exactly as is. You could also probably achieve the same effect using the built in entities filter card but you would need to manually list your alert entities.
Ah. Well in that case I’d probably do exactly what the post title asks for so you don’t have to edit the trigger sensor for every alert, plus you’re not disabling the alerts when you really only want to stop the notifications. Also, with the boolean solution you’ll have to remember to turn the boolean back on at some point if you want the alert to work again.
garage_temp_sensor:
name: Garage Low Temperature
entity_id: binary_sensor.garage_temp_low
state: "on"
repeat: 5
skip_first: False
message: The garage temperature is low
done_message: The garage temperature has returned to normal
notifiers:
- mobile_app_RK_12
- gmail