From d5e261f752aafd72499614e628581aef657cad43 Mon Sep 17 00:00:00 2001 From: Christian Kauer Date: Wed, 1 Dec 2021 21:15:33 +0100 Subject: [PATCH] add automation corridor lights --- automations/ground_corridor/light_auto_off.yaml | 17 +++++++++++++++++ entities/lights/ground_floor_corridor_sw1.yaml | 9 +++++++++ 2 files changed, 26 insertions(+) create mode 100644 automations/ground_corridor/light_auto_off.yaml create mode 100644 entities/lights/ground_floor_corridor_sw1.yaml diff --git a/automations/ground_corridor/light_auto_off.yaml b/automations/ground_corridor/light_auto_off.yaml new file mode 100644 index 0000000..acf35c6 --- /dev/null +++ b/automations/ground_corridor/light_auto_off.yaml @@ -0,0 +1,17 @@ +# https://www.home-assistant.io/docs/automation/trigger/#event-trigger +description: Flurlicht zum Stall automatisch ausschalten +alias: Flurlicht Stall ausschalten +id: efc3999b-f562-48d1-8bf7-add9332f94a6 +trigger: + - platform: state + entity_id: switch.double_switch_node6_2 + to: "on" + for: "00:06:00" +action: + - service: notify.dev_telegram + data: + message: Flurlicht zum Stall wird automatisch ausgeschaltet + - service: light.turn_off + target: + entity_id: light.licht_flur_zum_stall + diff --git a/entities/lights/ground_floor_corridor_sw1.yaml b/entities/lights/ground_floor_corridor_sw1.yaml new file mode 100644 index 0000000..736be05 --- /dev/null +++ b/entities/lights/ground_floor_corridor_sw1.yaml @@ -0,0 +1,9 @@ +# https://www.home-assistant.io/integrations/light.group/ +# +# switch als Licht einbinden, so dass eine Grupperung als light möglich ist +# https://community.home-assistant.io/t/light-groups-making-me-crazy/180978/6 +platform: switch +name: Licht Flur zum Stall +entity_id: switch.double_switch_node6_2 + +