Good Morning,
How can I activate the html5 push notifications for turning on the lights?
I would like to activate the notification for every light in the room, I have two separate ones.
I can not figure out how to create the automation that activates the notification, I tried with the page in the settings but I could not.
automation:
trigger:
platform: state
entity_id:
- light.YOUR _LIGHT_1
- light.YOUR _LIGHT_2
to: 'on'
action:
service: notify.YOUR _HTML_SERVICE
data_template:
message: "{{ trigger.to_state.attributes.friendly_name }} has been switched on."
3 Likes
thanks I try it now
I did not understand home I have to put here: trigger.to_state.attributes.friendly_name
You only need to replace the bits in capital letters.