automation outdoor lights

This commit is contained in:
Christian Kauer 2021-11-03 19:38:40 +01:00
parent d7e1bf7c1e
commit b47719b3be
7 changed files with 84 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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