@Molot
Below is a quick and dirty way to notify via telegram.
blueprint:
name: Telegram Notification All Zones
description: Telegram Notification All Zones
domain: automation
input:
# Person/Device that will be tracked
person_entity:
name: Person
description: Person/Device that will be tracked ? .
selector:
entity:
domain: person
# Service to call for device that will be notified - have to type manually as can't select from a dropdown yet
notify_device_1_1:
name: Media Player Notification Service
description: "HOW TO NOTIFY"
# Media device that will be notified
notify_device_1_2:
name: Media Device To Notify
description: Telegram Bot to receive audio/tts notifications.
selector:
entity:
domain: media_player
trigger:
platform: state
entity_id: !input person_entity
variables:
# This is the state of the person when it's in this zone
person_entity: !input person_entity
person_name: "{{ states[person_entity].name }}"
condition:
# Check that the old and new states(zones) are different
condition: template
value_template: "{{ trigger.from_state.state != trigger.to_state.state }}"
action:
# Send the message to the notification device with the chosen settings using notify
- service: notify.notifier_telegram
data:
message: "{{ person_name }} has entered {{ trigger.to_state.state }}"
Hello, I am a bit confused as to what to put in replace of notify.alexa_media_living_room_echo_dot
I dont have any aleax devies in my house only google speakers but I dont understant what serive the notify.alexa is and if it is combatible with google
Another noob here would like to use this blueprint, can someone please let us know the correct syntax to use for google tts.
Specifically, I am asking about:
I have tried a bunch of different variations when creating the automation from this blueprint, but I’m just guessing and they are not working.
blueprint:
name: 1 Person Multi-Zone Change - Audio Notification
description: Send a notification to a device when a person enters a different zone.
domain: automation
input:
# Person/Device that will be tracked
person_entity:
name: Person
description: Person/Device that will be tracked.
selector:
entity:
domain: person
# Service to call for device that will be notified - have to type manually as can't select from a dropdown yet
notify_device_1_1:
name: Media Player Notification Service
description: "Notifier service for Media Player to receive audio/tts notifications. Example: tts.cloud_say"
# Media device that will be notified
notify_device_1_2:
name: Media Player to notify
description: Media Player to receive audio/tts notifications.
selector:
entity:
domain: media_player
trigger:
platform: state
entity_id: !input person_entity
variables:
# This is the state of the person when it's in this zone
person_entity: !input person_entity
person_name: "{{ states[person_entity].name }}"
condition:
# Check that the old and new states(zones) are different
condition: template
value_template: "{{ trigger.from_state.state != trigger.to_state.state }}"
action:
# Send the message to the media device with the chosen settings using tts
- service: !input notify_device_1_1
data:
entity_id: !input notify_device_1_2
message: "{{ person_name }} has entered {{ states.zone[trigger.to_state.state].name }}"
One ‘problem’ I am having is the automation doesn’t like zones that are two words.
Moved from {{ states.zone[trigger.from_state.state].name }} to {{ states.zone[trigger.to_state.state].name }}
Does not work for me when the state is equal to not_home. All zones look nice, home is displayed as Home, but instead of not_home I get just nothing. So my notifications then look like "Moved from Home to " and “Moved from to Work”.
Moved from {{ trigger.from_state.state }} to {{ trigger.to_state.state }}
Works, but it is ugly - “Moved from home to not_home” and “Moved from not_home to Work”. Is there any simple way to make it nicer?