Skip to content

Instantly share code, notes, and snippets.

@rokam
Created July 16, 2021 16:31
Show Gist options
  • Save rokam/270df2d32c5c611faec96772640a87fc to your computer and use it in GitHub Desktop.
Save rokam/270df2d32c5c611faec96772640a87fc to your computer and use it in GitHub Desktop.
blueprint:
name: TTS on door opening with persons at home
description: Sends notification on low battery for DW2-Wifi
domain: automation
input:
door_sensors:
name: Door sensors
selector:
entity:
domain: binary_sensor
device_class: door
persons:
name: Persons
selector:
entity: {}
domain: person
minutes:
name: Minutes
description: Minutes between person at home and door trigged
default: '12:00:00'
selector:
time: {}
message-single:
name: Message single person
description: >
Message to salute single person.
Use <person> tag to be replaced by person name.
selector:
text: {}
message-multiple:
name: Message multiple persons
description: >
Message multiple persons.
Use <persons> tag to be replaced by person name.
selector:
text: {}
persons-concat:
name: Text to concatenate the persons name
description: String to be used as concatenate between names
default: and
selector:
text:
target:
name: Target devices
description: Target devices to play the TTS message
selector:
target:
entity:
domain: media_player
trigger:
- platform: state
entity_id: !input 'door_sensors'
to: 'on'
condition:
- condition: numeric_state
entity_id: !input 'door_sensor'
attribute: battery_level
below: !input 'threshold'
action:
- choose: []
default: !input 'actions'
mode: single
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment