mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-07 17:34:42 +00:00
Basic light color adjustment based on time
This commit is contained in:
@@ -34,7 +34,10 @@ cards:
|
||||
entities:
|
||||
- automation.lighting_turn_on_ceiling_lights_after_sunset
|
||||
- automation.lighting_turn_off_all_lights_after_sunrise
|
||||
- automation.lighting_master_bedroom_toggle_main_lights_on_bedisde_switch_single_click
|
||||
- automation.lighting_adjust_temperature_on_start
|
||||
- automation.lighting_master_bedroom_toggle_main_lights_on_bedside_switch_single_click
|
||||
- automation.lighting_master_bedroom_adjust_temperature_based_on_time
|
||||
- automation.lighting_living_room_adjust_temperature_based_on_time
|
||||
- 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_sync_tasmota_states_on_start_up
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
automation:
|
||||
- alias: Lighting · Turn on ceiling lights after sunset
|
||||
trigger:
|
||||
@@ -22,7 +21,26 @@ automation:
|
||||
- service: light.turn_off
|
||||
entity_id: light.all_lights
|
||||
|
||||
- alias: Lighting · Master bedroom · Toggle main lights on bedisde switch single click"
|
||||
- alias: Lighting · Adjust temperature on start
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id:
|
||||
- light.living_room_main_lights
|
||||
- light.master_bedroom_main_lights
|
||||
to: "on"
|
||||
action:
|
||||
- service: light.turn_on
|
||||
data_template:
|
||||
entity_id: "{{ trigger.entity_id }}"
|
||||
color_temp: >-
|
||||
|
||||
{% if is_state('sun.sun', 'above_horizon') %}
|
||||
350
|
||||
{% else %}
|
||||
500
|
||||
{% endif %}
|
||||
|
||||
- alias: Lighting · Master bedroom · Toggle main lights on bedside switch single click
|
||||
trigger:
|
||||
platform: event
|
||||
event_type: zha_event
|
||||
@@ -33,6 +51,46 @@ automation:
|
||||
- service: light.toggle
|
||||
entity_id: light.master_bedroom_main_lights
|
||||
|
||||
- alias: Lighting · Master bedroom · Adjust temperature based on time
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: sun.sun
|
||||
condition:
|
||||
condition: state
|
||||
entity_id: light.master_bedroom_main_lights
|
||||
state: "on"
|
||||
action:
|
||||
- service: light.turn_on
|
||||
entity_id: light.master_bedroom_main_lights
|
||||
data_template:
|
||||
color_temp: >-
|
||||
|
||||
{% if is_state('sun.sun', 'above_horizon') %}
|
||||
350
|
||||
{% else %}
|
||||
500
|
||||
{% endif %}
|
||||
|
||||
- alias: Lighting · Living room · Adjust temperature based on time
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: sun.sun
|
||||
condition:
|
||||
condition: state
|
||||
entity_id: light.living_room_main_lights
|
||||
state: "on"
|
||||
action:
|
||||
- service: light.turn_on
|
||||
entity_id: light.living_room_main_lights
|
||||
data_template:
|
||||
color_temp: >-
|
||||
|
||||
{% if is_state('sun.sun', 'above_horizon') %}
|
||||
350
|
||||
{% else %}
|
||||
500
|
||||
{% endif %}
|
||||
|
||||
- alias: Lighting · Living room · Turn all lights on on Magic Cube flip 90
|
||||
trigger:
|
||||
platform: event
|
||||
@@ -58,4 +116,3 @@ automation:
|
||||
action:
|
||||
- service: light.turn_off
|
||||
entity_id: light.living_room_all_lights
|
||||
|
||||
|
||||
Reference in New Issue
Block a user