Comments (3)
Hmm, this is an interesting problem. I have no idea how to calculate values if the sun never sets on a particular day; I would need to know what the lowest position the sun reaches is and at what time it is at that position, however I don't see any Python libraries that would provide that information. I suppose I could just have CL set values to max_colortemp
and max_brightness
the entire day if no sunset time is available.
Any thoughts/suggestions?
from hass-circadian_lighting.
According to https://astral.readthedocs.io/en/latest/ it can calculate solar noon and solar midnight. Could this be used for this calculation?
from hass-circadian_lighting.
I'm already using both of those - there's essentially four data points and four parabolas calculated (solar noon and solar midnight might not be half way between sunrise and sunset):
I suppose what I could do if the sun never rises or never sets a particular day is use solar noon and solar midnight as the amplitudes of a sinusoidal graph. In the case of the sun never rising, the graph would be shifted down by the difference between the highest it ever gets and the horizon (would cause lights to dim from max_bightness
minus that difference to min_brightness
back to max_brightness
minus difference). In the case of the sun never setting, the graph would be shifted up by the difference between the lowest if ever gets and the horizon (would cause lights to change from min_colortemp
plus that difference to max_colortemp
back to min_colortemp
+ difference).
from hass-circadian_lighting.
Related Issues (20)
- Deleted switches are not removed HOT 2
- updating non available devices HOT 1
- Entities still present after removal HOT 1
- Brightness to 100% in sleep mode HOT 2
- Add support for unique id HOT 2
- Set light with Kelvin
- Component failing after HASS update HOT 3
- [Feature request] support for multiple switches HOT 6
- Transition values not working
- Get brightness without switches HOT 5
- Mind of its own all of sudden HOT 2
- Lights jitter on and off at 100% brightness when Circadian value is around -100%
- Error on homeassistant/home-assistant:2023.6.0.dev20230430 HOT 13
- Incompatibility with Home Assistant 2023.6.1 HOT 2
- Failed to call service switch/turn_on. Passing coroutines is forbidden, use tasks explicitly. HOT 3
- Mismatched colours between lights HOT 2
- Lights sometimes automatically switch back on after turning them off (CL enabled) HOT 1
- Does this work on `service: scene.` ? HOT 1
- Error Message on Startup 2023.10.3 HOT 1
- Value is not set by the integration HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hass-circadian_lighting.