diff --git a/automations/outside/exterior_lights_off.yaml b/automations/outside/exterior_lights_off.yaml new file mode 100644 index 0000000..708a2ac --- /dev/null +++ b/automations/outside/exterior_lights_off.yaml @@ -0,0 +1,14 @@ +# https://www.home-assistant.io/docs/automation/trigger/#time-trigger +description: Exterior Lights off +alias: Exterior Lighting off when it's late +id: 25c5b56a-7543-4e76-8cf5-f3127afe9286 +trigger: + - platform: time + at: "22:00:00" +action: + - service: notify.dev_telegram + data: + message: 22:00, turning lights off + - service: light.turn_off + target: + entity_id: light.aussenbeleuchtung \ No newline at end of file diff --git a/automations/outside/exterior_lights_on.yaml b/automations/outside/exterior_lights_on.yaml new file mode 100644 index 0000000..d6dd5ee --- /dev/null +++ b/automations/outside/exterior_lights_on.yaml @@ -0,0 +1,24 @@ +# https://www.home-assistant.io/docs/automation/trigger/#sun-trigger +description: Exterior Lights on +alias: Exterior Lighting on when dark outside +id: 809a026b-9996-4cd8-b47c-c709d6173d16 +trigger: + - platform: numeric_state + entity_id: sun.sun + attribute: elevation + # Can be a positive or negative number + below: -4.0 +condition: + - alias: "before 22:00" + condition: time + after: " 15:00:00" + before: " 22:00:00" + # weekday: + # - " mon" +action: + - service: notify.dev_telegram + data: + message: sun elevation below -4.0 - turning lights on + - service: light.turn_on + target: + entity_id: light.aussenbeleuchtung \ No newline at end of file diff --git a/automations/outside/sunrise.yaml b/automations/outside/sunrise.yaml new file mode 100644 index 0000000..fa557f2 --- /dev/null +++ b/automations/outside/sunrise.yaml @@ -0,0 +1,11 @@ +# https://www.home-assistant.io/docs/automation/trigger/#sun-trigger +description: Sunrise Event +alias: Event, trigged by sunrise +id: 13c25f18-9328-4065-8ec6-215eb5462e33 +trigger: + platform: sun + event: sunrise +action: + - service: notify.dev_telegram + data: + message: Event 'sunrise' triggered diff --git a/automations/outside/sunset.yaml b/automations/outside/sunset.yaml new file mode 100644 index 0000000..8db2a0c --- /dev/null +++ b/automations/outside/sunset.yaml @@ -0,0 +1,11 @@ +# https://www.home-assistant.io/docs/automation/trigger/#sun-trigger +description: Sunset Event +alias: Event, trigged by sunset +id: 379c50b4-a782-4464-a748-1c79592c4e3e +trigger: + platform: sun + event: sunset +action: + - service: notify.dev_telegram + data: + message: Event 'sunset' triggered diff --git a/entities/lights/exterior_lights.yaml b/entities/lights/exterior_lights.yaml new file mode 100644 index 0000000..f79e578 --- /dev/null +++ b/entities/lights/exterior_lights.yaml @@ -0,0 +1,8 @@ +# https://www.home-assistant.io/integrations/light.group/ +# +platform: group +name: Außenbeleuchtung +unique_id: 35fb3afd-827a-4e1b-b2e9-279e86202047 +entities: + - light.licht_aussen_hetti + - light.licht_aussen_kauer diff --git a/entities/lights/exterior_lights_sw1.yaml b/entities/lights/exterior_lights_sw1.yaml new file mode 100644 index 0000000..7bd7ade --- /dev/null +++ b/entities/lights/exterior_lights_sw1.yaml @@ -0,0 +1,8 @@ +# 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: Außenbeleuchtung Kauers +entity_id: switch.double_switch_node6 + diff --git a/entities/lights/exterior_lights_sw2.yaml b/entities/lights/exterior_lights_sw2.yaml new file mode 100644 index 0000000..487aa4b --- /dev/null +++ b/entities/lights/exterior_lights_sw2.yaml @@ -0,0 +1,8 @@ +# 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: Außenbeleuchtung Hetti +entity_id: switch.double_switch_node12_2_3 +