From f604529a8a9e570cf50b8f8ca1088ca2382295f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Grondek?= Date: Thu, 28 Mar 2024 21:31:31 +0100 Subject: [PATCH] Add automation to turn on washing machine when leaving hackerspace --- configuration/automations/hackerspace.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 configuration/automations/hackerspace.yaml diff --git a/configuration/automations/hackerspace.yaml b/configuration/automations/hackerspace.yaml new file mode 100644 index 0000000..5a1e39f --- /dev/null +++ b/configuration/automations/hackerspace.yaml @@ -0,0 +1,12 @@ +- id: hackerspace_left + alias: '[Hackerspace] Left' + mode: single + trigger: + - platform: zone + entity_id: device_tracker.przemyslaws_iphone + zone: zone.hackerspace + event: leave + action: + - service: switch.turn_on + target: + entity_id: switch.washing_machine_on_off