mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-02 23:54:25 +00:00
Lighting - turn on and off with the sun
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user