Tweak light automations

This commit is contained in:
2020-04-25 01:42:01 +03:00
parent e34b0ecb49
commit 3d377523e6
2 changed files with 19 additions and 12 deletions
@@ -11,6 +11,8 @@ automation:
action: action:
- service: light.turn_on - service: light.turn_on
entity_id: light.ceiling_lights entity_id: light.ceiling_lights
data:
brightness_pct: 100
- alias: Lighting · Turn off all lights after sunrise - alias: Lighting · Turn off all lights after sunrise
trigger: trigger:
+17 -12
View File
@@ -8,28 +8,33 @@ script:
routine_coming_home: routine_coming_home:
alias: Routine · Coming home alias: Routine · Coming home
sequence: sequence:
# Enter home mode.
- service: script.security_camera_off - service: script.security_camera_off
- service: light.turn_on - service: light.turn_on
entity_id: entity_id:
- light.tuya_hallway_entrance_lights - light.tuya_hallway_entrance_lights
- light.tuya_hallway_main_lights - light.tuya_hallway_main_lights
- light.bed_led
# TODO: Only if it's dark in the living room - service: script.routine_coming_home_after_sunset
- service: light.turn_on
entity_id: light.living_room_all_lights
- service: script.sonos_join_bedroom - service: script.sonos_join_bedroom
- service: script.routine_coming_home_welcome_home
# Check if welcome home is enabled, proceed with welcome routine. routine_coming_home_after_sunset:
alias: Routine · Coming home · After sunset
sequence:
- condition: state
entity_id: sun.sun
state: "below_horizon"
- service: light.turn_on
entity_id: light.ceiling_lights
data:
brightness_pct: 100
routine_coming_home_welcome_home:
alias: Routine · Coming home · Welcome home
sequence:
- condition: state - condition: state
entity_id: input_boolean.routine_welcome_home entity_id: input_boolean.routine_welcome_home
state: "on" state: "on"
- service: script.coming_home_welcome_home
coming_home_welcome_home:
alias: Routine · Coming home · Welcome home
sequence:
- service: script.say - service: script.say
data_template: data_template:
partials: partials: