Hi, congratulations, nice project, Iām starting to use it now, I wanted to ask you, would it be possible to insert notifications on Telegram, if so, how can I do it? Thank you
notify_group:
name: Notification Group
description: The name of the notification group to call.
default: ""
variables:
group_target: !input notify_group
action:
- conditions: "{{ group_target is defined }}"
sequence:
- service: "notify.{{ group_target }}"
data:
message: !input notify_message
@Blacky
Can this blueprint be used to notify me when a device becomes unavaible?
Do I need to include all my devices one by one or is there a group name like you have with battery operated devices?
I have smart plugs, sensors for door/window, smart bulbs, push buttons etcā¦
And can it be used as a alarm system when smoke detector or door is opened when not at home?
Yes but unlike the battery blueprint you will not know what one has become unavailable so once notified you will have to search for it. You have to add every entity you would like to monitor. Please make sure you spell āunavailableā correctly.
Have a look at āAlarmoā, I donāt use this integration but I know a lot of people use it and looks to be well supported with good reviews so you may want to take a look at it.
Iām trying to see if I can use this to notify my wife and my phone upon completion of a timer. If possible to clear the notification from each otherās phone if either of us dismiss it.
I have a timer helper setup. Must I use the event bus and āfinishedā as the trigger, or is there another good way to accomplish this.
In this blueprint it allows you to send a āConfirmation Messageā that confirms the action has been done. Then ether you or your wife will know that it has been done and you can clear the message.
Thanks for checking in and for this idea. I will keep it in mind for the future.
For this case I figured out the Alert function that is configured inside configuration.yaml. I was able to incorporate a couple of my goals including repeating notification, as well as making the notification disappear on all notified devices.
Iām a total HA newbie and I feel like I should be able to make use of this blueprint, but Iām having trouble specifically with setting up an action when the automation fires to be able to turn things off that trigger my automation.
Context: I have a number of lights and switch entities that I have all configured to trigger my automation (Iām thinking I may need to create helpers to make these all lights or switches to make this simpler?) and my desired end state is that the notification that fires gives me the ability in the notification to turn off the lights / switches of those that specifically turned on. I donāt want to just turn off everything, just those that are turned on.
My issue is Iām trying to latch onto the triggering light / switch entity id. When I specify one of my entities it looks like the YAML below. However I donāt want this to be static I want this to be dynamic based on the triggering entity id. Iāve tried supplying {{trigger.entity_id}} for the entity_id in start_action_1 but this produces an error.
Any ideas for how I can make this work? Thanks in advance!
alias: "LIGHTS TEST: Lights on While Away"
description: Notify when lights are turned on at the house when I'm away
use_blueprint:
path: Blackshome/state-notifications-and-actions.yaml
input:
entity_a_trigger:
- light.dimmer_switch_2
- light.dimmer_switch
- light.master_bedroom_dimmer_1
- light.master_bedroom_dimmer_2
- light.master_closet_light_switch
- light.3rd_floor_office_light_dimmer
- switch.s2_on_off_switch
entity_a_state: "on"
time_delay_a_state: 0.5
global_conditions:
- condition: not
conditions:
- condition: zone
entity_id: person.me
zone: zone.home
include_start_notify: enable_start_notify_options
start_notify_device:
- <notify_device_id>
start_title: Home Lights Turned On
start_message: While you're away from the house, lights were turned on
include_start_action_buttons: []
start_action_button_1: Turn Off Lights
start_action_button_stop: Ack
start_time_delay:
hours: 0
minutes: 10
seconds: 0
start_action_1:
- service: switch.turn_off
metadata: {}
data: {}
target:
## vv THIS IS WHERE I NEED HELP vv
entity_id: switch.s2_on_off_switch
## ^^ THIS IS WHERE I NEED HELP ^^
include_start_auto_actions:
- enable_start_action_1
Hi AP, well this is a bit tricky but because you have switch and lights you are best to use a āHome Assistant Core Integration: Generic turn offā and then you will need to edit in YAML and your YAML will be as shown below.
or here is your full YAML but you will need to select your device in āStart Notify - Devices To Notifyā as it was also not selected. I also āEnable action button 1ā in āStart Notify - Action Buttons Options (Optional)ā. Copy Paste this YAML and add your device and it should work.
alias: "LIGHTS TEST: Lights on While Away"
description: Notify when lights are turned on at the house when I'm away
use_blueprint:
path: Blackshome/state-notifications-and-actions.yaml
input:
entity_a_trigger:
- light.dimmer_switch_2
- light.dimmer_switch
- light.master_bedroom_dimmer_1
- light.master_bedroom_dimmer_2
- light.master_closet_light_switch
- light.3rd_floor_office_light_dimmer
- switch.s2_on_off_switch
entity_a_state: "on"
time_delay_a_state: 0.5
global_conditions:
- condition: not
conditions:
- condition: zone
entity_id: person.me
zone: zone.home
include_start_notify: enable_start_notify_options
start_notify_device: []
start_title: Home Lights Turned On
start_message: While you're away from the house, lights were turned on
include_start_action_buttons:
- enable_start_action_button_1
start_action_button_1: Turn Off Lights
start_action_button_stop: Ack
start_time_delay:
hours: 0
minutes: 10
seconds: 0
start_action_1:
- service: homeassistant.turn_off
data:
entity_id: "{{ trigger.entity_id }}"
include_start_auto_actions:
- enable_start_action_1
Also note you have āEnable start auto action 1ā and your time delay is 10 min so if you donāt action the notification in 10 min then it will do it for you.
Now I would like to get opened and closed messages with the individual name of the window that has been opened or closed. May you give me a hint how to realize that?
Amazingā¦ thanks very much for the response and glad to know I was so close to the solution can confirm this is looking good and my notification options are working. Love when a plan comes together, thanks again