I’ve always wanted lighting that changed colour and brightness based on my circadian rhythm, and with HASS and AppDaemon, now I can!
For this purpose I wrote an app that takes timepoints, brightness and color-temperature (see lines 37-54) and uses those into a current “circadian brightness” and “circadian colour temperature”.
It then stores them in a global variable called c_brightness and c_color.
Since I occasionally work night shifts, I can offset my circadian rhythm from baseline. The script takes an input_select called circadian_hour and an input_select circadian_minute and uses those to offset the generated values.
While it isn’t too pretty, it’s perfect for my uses!
A separate script sets my lights to fade to the given value every 4 minutes, but that script is heavily dependent on the names of the lights. It’s on the github project, “circadian_setter”.
If you find this useful, or you have comments for improvements, please leave a comment!
i first had to look up circadian rhythm before i could know if i could use this
and then i got just questionmarks
i guess you first need to find your circadian rhythm before you can work with this.
then i ask myself: what is the right brigthness and colortemp for what time?
so i guess i can see what you are doing, but i want to know more about why and based on what?
Your circadian rhythm is basically just a biological alarm clock telling your body when to go to sleep, and when to wake up
If you know when you feel tired, you’ve “found” your circadian rhythm
The primary stimulus setting the clock (called a zeitgeber) is light, specifically blue light. The idea is to gradually remove blue light from your environment as you approach the time you want to fall asleep, to prepare your mind and body for sleep.
Why? To fall asleep easier, to feel refreshed when you wake up.