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"