Hello together,
i have two garage doors which i want to close via mobile notification due to several conditions.
I want to get a message with sunset or at 7:30 pm when one of my garage doors are open and then i want to close the one which is open (or both) via button on my smartphone.
At the moment i have two running and working automations for this.
The first checks if the left door is open while the right is closed. If so i get a message on my phone and a button to close the left one. This works like i want to. The second is nearly the same just with the right door. Works also fine.
The third automation is the one causing problems. This automation should send a message if both doors are open and then i need 3 buttos for either clos the left door or the right door or both together. The triggers works fine and also the mobile notification. I get the message and also the three different buttons. But the three buttons are not working well. In my automation i wrote 3 different “actions” in the data part of the notification.
Then i used “wait for event” and “mobile_app_notification” three times in a row. Every time the other action (close left, close right, close both). Now what happens:
I see all three buttons in the notification message in my phone. But only the one leads to a physiscal reaction on my doors → the one which ist first in my row of this three “wait for event” and “mobile_app_notofication” chain. I’ve tested this and changed the positions of these three actions nd every time only the button which is first in the row leads to a real action… So maybe someone has a hint for me, whats wrong with my small automation?
Here is the code for you…
alias: TEST_Garagentor beide Schließabfrage mobile Push Basti
description: ""
triggers:
- trigger: time
at: "19:30:00"
- trigger: sun
event: sunset
offset: 0
conditions:
- condition: numeric_state
entity_id: sensor.garagentor_links_neu_garage_door_position
above: 0
- condition: numeric_state
entity_id: sensor.garagentor_rechts_neu_garage_door_position
above: 0
actions:
- action: notify.mobile_app_bastis_16_pro
metadata: {}
data:
message: Beide Garagentore sind noch offen!
title: Garage offen!
data:
actions:
- action: TOR_SCHLUSS_LINKS
title: Garage links schließen
- action: TOR_SCHLUSS_RECHTS
title: Garage rechts schließen
- action: TOR_SCHLUSS_BEIDE
title: beide Garagentore schließen
- wait_for_trigger:
- trigger: event
event_type: mobile_app_notification_action
event_data:
action: TOR_SCHLUSS_LINKS
timeout:
hours: 0
minutes: 10
seconds: 0
milliseconds: 0
continue_on_timeout: false
- action: cover.close_cover
metadata: {}
data: {}
target:
entity_id:
- cover.garagentor_links_neu_garagentor_links_neu
- wait_for_trigger:
- trigger: event
event_type: mobile_app_notification_action
event_data:
action: TOR_SCHLUSS_RECHTS
timeout:
hours: 0
minutes: 10
seconds: 0
milliseconds: 0
continue_on_timeout: false
- action: cover.close_cover
metadata: {}
data: {}
target:
entity_id: cover.garagentor_rechts_neu_garagentor_rechts_neu
- wait_for_trigger:
- trigger: event
event_type: mobile_app_notification_action
event_data:
action: TOR_SCHLUSS_BEIDE
timeout:
hours: 0
minutes: 10
seconds: 0
milliseconds: 0
continue_on_timeout: false
- action: cover.close_cover
metadata: {}
data: {}
target:
entity_id:
- cover.garagentor_links_neu_garagentor_links_neu
- cover.garagentor_rechts_neu_garagentor_rechts_neu
mode: single
Thank you!