Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Template to turn on lights to the Circadian Lighting rgb state

$
0
0

@cooljimy84 wrote:

So i’m not sure if this is just me, but if i have the Circadian switch on, my lights sometimes don’t fade off, or fade on (i think due to the color or brightness being set by Circadian)

So i want to fade up the lights to the color that Circadian current color, not fade them up and the have them transition to the current color.

I’ve been playing with the following script, but can’t seem to get it to work.

alias: 'Frontroom Lights On Slow'
sequence:
  - service: switch.turn_off
    entity_id: switch.circadian_lighting_ct_lights
  - service: switch.turn_off
    entity_id: switch.circadian_lighting_rgb_lights
  - service: switch.turn_off
    entity_id: switch.circadian_lighting_xy_lights
  - service: light.turn_on
    data:
      entity_id: light.kitchen_led
      transition: 15
      brightness: 120
      rgb_color: "{{ states.sensor.circadian_values.attributes.rgb_color }}"
  - service: light.turn_on
    data:
      entity_id: light.led_uplighter
      transition: 15
      brightness: 120
      rgb_color: "{{ states.sensor.circadian_values.attributes.rgb_color }}"
  - service: light.turn_on
    data:
      entity_id: light.esp7_led
      transition: 15
      brightness: 120
      rgb_color: "{{ states.sensor.circadian_values.attributes.rgb_color }}"
  - delay:
      seconds: 20
  - service: switch.turn_on
    entity_id: switch.circadian_lighting_ct_lights
  - service: switch.turn_on
    entity_id: switch.circadian_lighting_rgb_lights
  - service: switch.turn_on
    entity_id: switch.circadian_lighting_xy_lights

I’ve tried changing the " for ’ but still get nothing out. I can post logs if that helps, maybe i’ve had too much turkey tho…

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>