From 8f10b821b76f514899e5af004cdb1b0ff372ef70 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Sun, 27 Nov 2022 15:18:48 +0100 Subject: [PATCH] Use intercom helper --- configuration/automations/intercom.yaml | 14 ++++++++++++++ configuration/automations/ios.yaml | 4 ++-- configuration/configuration.yaml | 3 +++ 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 configuration/automations/intercom.yaml diff --git a/configuration/automations/intercom.yaml b/configuration/automations/intercom.yaml new file mode 100644 index 0000000..414c2dc --- /dev/null +++ b/configuration/automations/intercom.yaml @@ -0,0 +1,14 @@ +- id: intercom-button + alias: '[Intercom] Button' + mode: single + trigger: + - platform: state + entity_id: input_boolean.intercom_button + to: "on" + action: + - service: switch.toggle + target: + entity_id: switch.intercom_button + - service: input_boolean.turn_off + target: + entity_id: input_boolean.intercom_button diff --git a/configuration/automations/ios.yaml b/configuration/automations/ios.yaml index 3860591..d64852f 100644 --- a/configuration/automations/ios.yaml +++ b/configuration/automations/ios.yaml @@ -34,9 +34,9 @@ event_data: actionName: Intercom button action: - - service: switch.toggle + - service: input_boolean.toggle target: - entity_id: switch.intercom_button + entity_id: input_boolean.intercom_button - id: ios-good-night alias: '[ios] Good Night' diff --git a/configuration/configuration.yaml b/configuration/configuration.yaml index f637bef..7cc6c1f 100644 --- a/configuration/configuration.yaml +++ b/configuration/configuration.yaml @@ -26,6 +26,9 @@ input_boolean: 3d_printer_timelapse: name: "3D printer timelapse" icon: "mdi:camera-burst" + intercom_button: + name: "Intercom button helper" + icon: "mdi:door-closed-lock" pc_caffeine: name: "PC Caffeine" icon: "mdi:desktop-tower-monitor"