another circadian rithm in pyscript #499
Unanswered
phsdv
asked this question in
Show and tell
Replies: 1 comment
-
fyi you can get
via https://github.com/ALERTua/ha_pyscript_modules/blob/main/entities/ha.py |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There are already many circadian scripts, custom components and blueprints etc, but I like to have my lamps bright and cold white in the morning and warm in the evening and dimmed down at night. The lights should follow my schedule, not the sun schedule, as the sun changes too much from winter to summer. It is based on something similar in yaml (see here: https://community.home-assistant.io/t/diy-circadian-lighting-no-flux-and-no-custom-components/179047/14)
You have to define your schedule in a list called BrightColorTemp. In my example, if the time is between 9:00 and 16:45 the brightness would be set at the maximum value (255) and the colortemperature at 4500 Kelvin. All lamps that should follow the rithm should be listed in CircadianLights.
Improvements to be made:
I hope it is useful to someone else.
[Edit1] replaced sensor.time with template.now(hass). Thanks @ALERTua
Beta Was this translation helpful? Give feedback.
All reactions