Include new lights in automations

This commit is contained in:
2020-03-25 22:33:43 +02:00
parent 287e633f22
commit 3361fdd9d9
5 changed files with 27 additions and 8 deletions
+2 -2
View File
@@ -33,9 +33,9 @@ cards:
icon: mdi:lightbulb icon: mdi:lightbulb
open: true open: true
entities: entities:
- automation.lighting_turn_on_all_lights_after_sunset - automation.lighting_turn_on_ceiling_lights_after_sunset
- automation.lighting_turn_off_all_lights_after_sunrise - automation.lighting_turn_off_all_lights_after_sunrise
- automation.lighting_master_bedroom_toggle_bedside_light_on_bedisde_switch_single_click - automation.lighting_master_bedroom_toggle_main_lights_on_bedisde_switch_single_click
- automation.lighting_living_room_turn_all_lights_on_on_magic_cube_flip_90 - automation.lighting_living_room_turn_all_lights_on_on_magic_cube_flip_90
- automation.lighting_living_room_turn_all_lights_off_on_magic_cube_flip_180 - automation.lighting_living_room_turn_all_lights_off_on_magic_cube_flip_180
- automation.lighting_sync_tasmota_states_on_start_up - automation.lighting_sync_tasmota_states_on_start_up
+1 -1
View File
@@ -15,7 +15,7 @@ group:
- automation.music_play_pause_on_magic_cube_knock - automation.music_play_pause_on_magic_cube_knock
- automation.music_volume_down_on_magic_cube_rotate_left - automation.music_volume_down_on_magic_cube_rotate_left
- automation.music_volume_up_on_magic_cube_rotate_right - automation.music_volume_up_on_magic_cube_rotate_right
- automation.lighting_turn_on_all_lights_after_sunset - automation.lighting_turn_on_ceiling_lights_after_sunset
- automation.lighting_turn_off_all_lights_after_sunrise - automation.lighting_turn_off_all_lights_after_sunrise
- automation.lighting_living_room_turn_all_lights_on_on_magic_cube_flip_90 - automation.lighting_living_room_turn_all_lights_on_on_magic_cube_flip_90
- automation.lighting_living_room_turn_all_lights_off_on_magic_cube_flip_180 - automation.lighting_living_room_turn_all_lights_off_on_magic_cube_flip_180
+12 -4
View File
@@ -232,6 +232,14 @@ light:
- light.hallway_entrance_lights - light.hallway_entrance_lights
- light.hallway_main_lights - light.hallway_main_lights
- platform: group
name: Ceiling lights
entities:
- light.living_room_all_lights
- light.master_bedroom_main_lights
- light.kitchen_main_lights
- light.hallway_all_lights
- platform: group - platform: group
name: All lights name: All lights
entities: entities:
@@ -390,7 +398,7 @@ switch:
value_template: "{{ value_json.Fade }}" value_template: "{{ value_json.Fade }}"
automation: automation:
- alias: Lighting · Turn on all lights after sunset - alias: Lighting · Turn on ceiling lights after sunset
trigger: trigger:
platform: sun platform: sun
event: sunset event: sunset
@@ -401,7 +409,7 @@ automation:
state: "on" state: "on"
action: action:
- service: light.turn_on - service: light.turn_on
entity_id: light.all_lights entity_id: light.ceiling_lights
- alias: Lighting · Turn off all lights after sunrise - alias: Lighting · Turn off all lights after sunrise
trigger: trigger:
@@ -412,7 +420,7 @@ automation:
- service: light.turn_off - service: light.turn_off
entity_id: light.all_lights entity_id: light.all_lights
- alias: Lighting · Master bedroom · Toggle bedside light on bedisde switch single click" - alias: Lighting · Master bedroom · Toggle main lights on bedisde switch single click"
trigger: trigger:
platform: event platform: event
event_type: zha_event event_type: zha_event
@@ -421,7 +429,7 @@ automation:
command: single command: single
action: action:
- service: light.toggle - service: light.toggle
entity_id: light.bedside_light entity_id: light.master_bedroom_main_lights
- alias: Lighting · Living room · Turn all lights on on Magic Cube flip 90 - alias: Lighting · Living room · Turn all lights on on Magic Cube flip 90
trigger: trigger:
+6 -1
View File
@@ -7,6 +7,8 @@ script:
entity_id: light.bedside_light entity_id: light.bedside_light
- service: fan.turn_on - service: fan.turn_on
entity_id: fan.philips_airpurifier entity_id: fan.philips_airpurifier
- service: light.turn_off
entity_id: light.master_bedroom_main_lights
- service: sonos.unjoin - service: sonos.unjoin
entity_id: entity_id:
- media_player.living_room - media_player.living_room
@@ -28,7 +30,10 @@ script:
- media_player.nvidia_shield - media_player.nvidia_shield
- media_player.living_room_tv - media_player.living_room_tv
- service: light.turn_off - service: light.turn_off
entity_id: light.living_room_all_lights entity_id:
- light.living_room_all_lights
- light.hallway_all_lights
- light.kitchen_main_lights
automation: automation:
- alias: Routine · Bedtime · Toggle on bedside switch hold - alias: Routine · Bedtime · Toggle on bedside switch hold
@@ -10,6 +10,12 @@ script:
sequence: sequence:
# Enter home mode. # Enter home mode.
- service: script.security_camera_off - service: script.security_camera_off
- service: light.turn_on
entity_id: light.hallway_entrance_lights
- service: light.turn_on
entity_id: light.hallway_main_lights
# TODO: Only if it's dark in the living room
- service: light.turn_on - service: light.turn_on
entity_id: light.living_room_all_lights entity_id: light.living_room_all_lights
- service: script.music_join_sonoses - service: script.music_join_sonoses