Skip to content

Instantly share code, notes, and snippets.

@oki
Created January 14, 2022 08:51
Show Gist options
  • Save oki/166a947e84f0796b171bc7676ac1e34e to your computer and use it in GitHub Desktop.
Save oki/166a947e84f0796b171bc7676ac1e34e to your computer and use it in GitHub Desktop.
- 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