Use this simple Blueprint to add smoke detectors and Areas for generating a alarm on your Alexa or WhattsApp (using Greenapi). Alexa and greenapi are useing the Area input as a variable.
blueprint:
name: Smoke Detected Alarm
description: Give a Alexa and Whattsapp alarm when Smoke Detected
domain: automation
author: Michelle Asjes
input:
binary_sensor:
name: Smoke Sensor
description: This sensor will be synchronized with the alarm.
selector:
entity:
filter:
- domain: binary_sensor
device_class: smoke
area:
name: Area
description: Area of the alarm.
selector:
area:
variables:
text: !input area
triggers:
- trigger: state
entity_id: !input binary_sensor
from: "off"
to: "on"
conditions: []
actions:
- action: switch.turn_on
metadata: {}
data: {}
target:
entity_id: switch.alarm
- action: notify.alexa_media_bedroom
metadata: {}
data:
message: "Alarm Alarm Smoke detected in {{ text }} Alarm Alarm"
- action: notify.alexa_media_living
metadata: {}
data:
message: "Alarm Alarm Smoke detected in {{ text }} Alarm Alarm"
- action: notify.greenapi
metadata: {}
data:
message: "Alarm Alarm Smoke detected in {{ text }} Alarm Alarm"
mode: single