Created
January 14, 2022 08:51
-
-
Save oki/166a947e84f0796b171bc7676ac1e34e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- alias: Tuscon home parking - front gate close | |
trigger: | |
platform: state | |
entity_id: proximity.tucon_parking | |
attribute: dir_of_travel | |
to: "stationary" | |
for: | |
minutes: 5 | |
seconds: 42 | |
condition: | |
condition: and | |
conditions: | |
- condition: state | |
entity_id: cover.my_gatebox_gateboxb_position | |
state: "open" | |
action: | |
- service: notify.all_mobile_devices | |
data: | |
message: "Tuskon parkuje, zamknąć główne wrota?" | |
data: | |
actions: | |
- action: MOBILE_FRONT_GATE_IGNORE | |
title: Ignore | |
- action: MOBILE_FRONT_GATE_CLOSE | |
title: Close front gate | |
- alias: Mobile application - action:MOBILE_FRONT_GATE_CLOSE | |
trigger: | |
- platform: event | |
event_type: mobile_app_notification_action | |
event_data: | |
action: MOBILE_FRONT_GATE_CLOSE | |
action: | |
- service: notify.all_mobile_devices | |
data: | |
message: No to kurna zamykam! | |
- service: cover.close_cover | |
entity_id: cover.my_gatebox_gateboxb_position | |
"automations.yaml" 761L, 19002C |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment