Hi all,
i have implemented a script to open or close my garage using the mobileapp/carplay.
And i have to come to a point/issue where i dont know how to solve it if even possible.
I wanted to send a notification to only the person/user/mobileapp that triggert the script, that does not seem to be possible as script do not seem to work with:
- service: notify.mobile_app_{{ trigger.actor }}
Is there a way to achieve this ?
Here is my script so far:
alias: Garagentor Steuern und Benachrichtigen
sequence:
- choose:
- conditions:
- condition: state
entity_id: cover.garagentor
state: closed
sequence:
- action: cover.open_cover
target:
entity_id:
- cover.garagentor
data: {}
- delay: "00:00:05"
- condition: state
entity_id: cover.garagentor
state: open
- data:
message: Das Garagentor wurde geöffnet.
action: notify.notify
- conditions:
- condition: state
entity_id: cover.garagentor
state: open
sequence:
- action: cover.close_cover
target:
entity_id:
- cover.garagentor
data: {}
- delay: "00:00:05"
- condition: state
entity_id: cover.garagentor
state: closed
- data:
message: Das Garagentor wurde geschlossen.
action: notify.notify
- choose:
- conditions:
- condition: state
entity_id: cover.garagentor
state: unavailable
sequence:
- data:
message: >-
Fehler: Das Garagentor ist nicht erreichbar oder in einem
ungültigen Zustand.
action: notify.notify
BR
Felix