Notification for smoke alarms

Hi,

I would like to share here my first blueprint that will monitor all smoke sensors in the system and send notification with definable title and text via notify service.

It assumes that notify service has been configured properly and that there are smoke sensors in the system already

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.
Source Code

2 Likes

Dangerous first contrib. :stuck_out_tongue:
Hope you haven’t died in a fire, but your script looks buggy.

I’m no expert in templating

But this line

  value_template: "{{ states.binary_sensor | selectattr('attributes.device_class', 'eq', 'smoke') | map(attribute='state') | list | join(',') == 'on' }}"

is what caught my eye

If I have four smoke detectors and a big fire I would have the string value “on,on,on,on” at the end… That does NOT equal “on”
The only case your script works is with ONE smoke detector

This would probably work

"{{ "on" in states.binary_sensor | selectattr('attributes.device_class', 'eq', 'smoke') | map(attribute='state') | list }}"

But I urge everyone to try their script out for themselves, fires are dangerous :frowning:

2 Likes