question about disabling circadian lighting
See original GitHub issueHi, I just discovered this component and I love it! That said, having said that, I sometimes might not want to use it 😃
If I’m writing an automation to manually adjust brightness or color temperature, I can turn off the switch for CL. I also know there is a disable_entity
and disable_state
option that I can use to monitor another entity. But is there any way to intercept a change to, say, brightness that is done via the Alexa integration in HA and use that to tell CL to stop controlling a particular light? If someone explicitly sets the light configuration, it’s a pretty good sign that they want control (probably with a timeout; that’s for later), and not have the automatic CL.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Circadian pioneer says we're not ready for ...
Ask circadian science expert Russell Foster to comment on the ways in which LED lighting can buoy human health by mimicking the sun's ......
Read more >Turn off all the lights at night: Your heart will thank you - NHLBI
Turning off all the lights at bedtime may improve your heart health by reducing the risk of obesity, diabetes, and high blood pressure....
Read more >5 Big Questions: Circadian Lighting
If circadian lighting is science-based, why are there such vastly different approaches to circadian-focused lighting solutions in the market. (4 ...
Read more >Circadian Lighting: Possible fix to keep light groups off
The problem occurs while the bulbs fade to black. The light group briefly ... Disable the circadian switch where this light belongs to...
Read more >5 Answers About Human-Centric Lighting
For the past century, lighting—from fixtures and device screens alike—has significantly impacted our circadian rhythms. Electric light has ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So first of all, I’m an idiot 😃 The two changes I was seeing was because I’m toggling a light group… with two bulbs. Didn’t dawn on me until I started looking at the CL logs that it’d toggle the lights individually; the first arrived when only one light had changed, so the group’s change was effectively half (the average…) of what it desired. Anyway…
I did see the link, and I’m using it now (there’s a typo there;
service.cancel
should beservice.turn_off
). I chose to cancel the first and use the second, figuring that if it needs a delay, best to use the delay after the last change. In any case, it seems like 5 seconds is far too much, but that’s all right for now.Ideally, though, I’d love if there was some way to have both scripts run to completion. The reason is that I want to template this and apply it to a bunch of lights and groups, and if I change multiple lights in close succession, canceling the script for light 1 just because light 2 changed isn’t the right thing to do. But worst case, copy paste.
Here’s what I’m using now (slightly improved over the original, where I use an
input_select
to have a tristate “On / Temporarily Off / Off” for CL rather than just On/Off. This will let me reset it as needed if there was a manual override (maybe on the next off, maybe after 60 minutes, maybe the next day, whatever):configuration.yaml
automation.yaml (still has some debug left in)
script.yaml:
How about an automation like this: trigger: state change of your lights condition: color and brightness of lights doesn’t equal color and brightness of CL component AND light is not off (so you don’t turn off CL when you turn off a light) action: turn off CL
You might have to add a delay before you check the color and brightness if your lights don’t turn on to the right color immediately. You also might have to add a range to the color and brightness check (within 1 or 2%).