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 + +