From 9575246cd562df5bce4ebb24cec39a9cac5546e2 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Mon, 6 Sep 2021 13:34:19 +0200 Subject: [PATCH] Added leaving home automation. --- automations.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/automations.yaml b/automations.yaml index 6c623ed..6597912 100644 --- a/automations.yaml +++ b/automations.yaml @@ -75,6 +75,10 @@ target: area_id: - wohnzimmer + - type: turn_off + device_id: 6d1be741876624a70ab5b01b54c6fd6f + entity_id: switch.kuche_musik + domain: switch - service: notify.mobile_app_j9110 data: message: Gute Nacht! @@ -275,3 +279,33 @@ entity_id: switch.flur_raumduft domain: switch mode: single +- id: '1630914505161' + alias: Beim Verlassen der Wohnung alles abschalten + description: '' + trigger: + - platform: zone + entity_id: person.marcus_scholz + zone: zone.home + event: leave + condition: [] + action: + - service: light.turn_off + target: + area_id: + - wohnzimmer + - schlafzimmer + - kuche + - type: turn_off + device_id: 6d1be741876624a70ab5b01b54c6fd6f + entity_id: switch.kuche_musik + domain: switch + - type: turn_off + device_id: 5a08ac4c3b3893b540a9934fa92dccfa + entity_id: switch.flur_raumduft + domain: switch + - service: media_player.turn_off + target: + area_id: + - schlafzimmer + - wohnzimmer + mode: single