From 932f48833736e8afc241b2dcbffa297efd64378f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Grondek?= Date: Sun, 31 Mar 2024 22:24:41 +0200 Subject: [PATCH] Add option to run automation arrive home & unlock door --- configuration/automations/mobile-actions.yaml | 15 +++++++++++++++ configuration/automations/presence.yaml | 2 ++ 2 files changed, 17 insertions(+) diff --git a/configuration/automations/mobile-actions.yaml b/configuration/automations/mobile-actions.yaml index 500fe43..5b2f409 100644 --- a/configuration/automations/mobile-actions.yaml +++ b/configuration/automations/mobile-actions.yaml @@ -50,6 +50,21 @@ action: - service: script.arrive_home +- id: mobile_action-arrive_home_unlock + alias: '[Mobile-action] Arrive home & unlock automation' + description: '' + mode: single + trigger: + - platform: event + event_type: mobile_app_notification_action + event_data: + action: ARRIVE_HOME_UNLOCK + action: + - service: script.arrive_home + - service: lock.unlock + target: + entity_id: lock.front_door_lock_doorlock + - id: mobile_action-clothes_put_away alias: '[Mobile-action] Clothes put away' description: '' diff --git a/configuration/automations/presence.yaml b/configuration/automations/presence.yaml index c5bbe80..d5e5a08 100644 --- a/configuration/automations/presence.yaml +++ b/configuration/automations/presence.yaml @@ -18,6 +18,8 @@ actions: - action: ARRIVE_HOME title: Run automation + - action: ARRIVE_HOME_UNLOCK + title: Run automation & Unlock door - action: UNLOCK_DOOR title: Unlock door