Lighting - turn on and off with the sun

This commit is contained in:
2020-03-14 19:12:28 +02:00
parent de3702139d
commit 816c7d685a
4 changed files with 31 additions and 3 deletions
+3 -1
View File
@@ -28,7 +28,9 @@ cards:
icon: mdi:lightbulb
open: true
entities:
- automation.master_bedroom_bedside_light_on_bedside_switch_single_click
- automation.lighting_turn_on_after_sunset
- automation.lighting_turn_off_after_sunrise
- automation.lighting_master_bedroom_bedside_light_on_bedside_switch_single_click
- automation.lighting_living_room_turn_on_cube_flip_90
- automation.lighting_living_room_turn_off_cube_flip_180
+2
View File
@@ -15,6 +15,8 @@ group:
- automation.music_pause_on_cube_knock
- automation.music_volume_down_on_cube_rotate_left
- automation.music_volume_up_on_cube_rotate_right
- automation.lighting_turn_on_after_sunset
- automation.lighting_turn_off_after_sunrise
- automation.lighting_living_room_turn_on_cube_flip_90
- automation.lighting_living_room_turn_off_cube_flip_180
- automation.bedtime_toggle_on_master_bedroom_bedside_switch_hold
+25 -1
View File
@@ -22,7 +22,31 @@ light:
- light.bedside_light
automation:
- id: master_bedroom_bedside_light_on_bedside_switch_single_click
- id: lighting_turn_on_after_sunset
alias: Lighting · Turn on all lights after sunset
trigger:
platform: sun
event: sunset
offset: "+00:00:00"
condition:
- condition: state
entity_id: binary_sensor.georgi_home
state: "on"
action:
- service: light.turn_on
entity_id: light.all_lights
- id: lighting_turn_off_after_sunrise
alias: Lighting · Turn off all lights after sunrise
trigger:
platform: sun
event: sunrise
offset: "+00:00:00"
action:
- service: light.turn_off
entity_id: light.all_lights
- id: lighting_master_bedroom_bedside_light_on_bedside_switch_single_click
alias: Lighting · Master bedroom · Toggle bedside light on bedisde switch single click"
trigger:
platform: event
+1 -1
View File
@@ -97,7 +97,7 @@ automation:
alias: Presence · Coming home
trigger:
platform: state
entity_id: input_boolean.georgi_home
entity_id: binary_sensor.georgi_home
to: "on"
action:
- service: script.routine_coming_home