Hi again,
Can someone help me make an actionable notification that when i receive a notification when i leave the house i can push on “which one are left open” i get a response which windows/doors are left open?
The part of leaving the house and get a notification is clear to me, but not how i can get a button to and how to show me which windows/doors are left open.
Thanks in advance!
Have you looked Here
Edit your automation in yaml with the 3 dots and copy and paste it in then edit to suit.
I gave it another try.
Here`s how:
Firstly i have created a group with all the window/door sensors. I did this in yaml because in helpers when creating a group of window/door sensors it becomes a binary sensor and you get this when the actionable notification is redirecting you:
So you don`t actually see which door/window is left open
In groups.yaml:
name: Deur/Raam Sensoren
icon: mdi:door
entities:
- binary_sensor.deursensor_schuifpui_contact
- binary_sensor.deursensor_keuken_tuin_contact
- binary_sensor.deursensor_salon_tuin_contact
- binary_sensor.keukenraam_rechts_contact
- binary_sensor.keukenraam_links_contact
In automation:
domain: mobile_app
type: notify
message: Controleren?
data:
actions:
- action: "URI"
title: "Welke?"
uri: "entityId:group.deur_raam_sensors"
data:
channel:
importance: high
title: Er staat nog een raam of deur open!
And looks like this:
Only thing i want to change is the device_class
but that is not possible in groups???
I did that for each sensor in customize.yaml