Not sure if this is intentional or that I am doing something wrong. I just started and the logs are telling me that Circadian Lighting is off and will not do any adjusting:
There is an actual switch entity created. Is it off? If youâre using Lovelace or have the older default view configured youâll have to go into the States page to see the entity.
This is a valid assumption for singles/couples but when there are more family members around, maybe each room needs its own circadian curve.
For example, teenagers and elderly folk have very different needs from the component. Teenagers need their own sunrise/sunset offsets and the elderly need different color temperature range.
Might be a good enhancement to move color temperature to the switch, if you ask me.
I will really have to think deeply about this. I understand your examples, but even in that case unless people are isolated into one room then they would be going in and out of different, shared, areas (kitchen, bathroom, etc.) and having different color in different areas would completely defeat the point of maintaining a controlled circadian rhythm.
At first glance your configuration looks correct. Could you try enabling debug logging for Circadian Lighting and send me the logs for when the input select is set to 1?
Is the issue only when you configure them as lights_ct (have you tried lights_rgb or lights_xy)?
On GitHub you mention you can adjust color temperature in the frontend - are you referring to the slider on the light or with the light.turn_on service call?
Not as far as I know, no. Iâm curious if it starts working after 0.84 - there were some behind-the-scenes changes to service calls in automations and scripts and Iâm not sure if that would affect components.
Just discovered something about Home Assistant 0.84.0. doesnât like the switch component⊠captured the error, rolled back to 0.83.3 and the switch is working again. Let me know if thereâs anything I can do to help get it working correctly with 0.84.0
2018-12-12 12:13:08 ERROR (MainThread) [homeassistant.loader] Error loading custom_components.switch.circadian_lighting. Make sure all dependencies are installed
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/loader.py", line 92, in get_component
module = importlib.import_module(path)
File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/config/custom_components/switch/circadian_lighting.py", line 16, in <module>
from homeassistant.helpers.restore_state import async_get_last_state
ImportError: cannot import name 'async_get_last_state'
2018-12-12 12:13:08 ERROR (MainThread) [homeassistant.loader] Unable to find component switch.circadian_lighting
2018-12-12 10:13:20 ERROR (MainThread) [homeassistant.loader] Error loading custom_components.switch.circadian_lighting. Make sure all dependencies are installed
Traceback (most recent call last):
File "/usr/src/app/homeassistant/loader.py", line 92, in get_component
module = importlib.import_module(path)
File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/config/custom_components/switch/circadian_lighting.py", line 16, in <module>
from homeassistant.helpers.restore_state import async_get_last_state
ImportError: cannot import name 'async_get_last_state'
Thanks for the logs, looks like something changed with state restore in 0.84. Looking into it now and hopefully will have a version for you guys to try out soon.
I havenât been able to test this because my production environment on Hass.io doesnât have 0.84 available yet and I canât easily access/update my dev environment from work. It should work based on what Iâm seeing on GitHub but let me know either way! Thanks!