TLDR: Let's you easily create a circadian rythm like lighting experience! - Meaning lighting that adapts to the sun's cycle; cool at day, warm in the evening. The plugin creates a scene in your selected area which, when activated, lights your room just the way you want it - based on the sun's elevation. The scene is best matched with an automation that triggers the scene every 5 minutes or so (match the transition time for a silky smooth experience!).
Super simple to set up! Create two (or more) scenes. One with how you want the lighting to be at day, and one for the evening.
You might already have made some scenes that you prefer throughout the day. Maybe something like this:

This integration automatically blurs the lines between your scenes - Lighting you room perfectly whenever you activate it!

A typical result might look something like this:

- Simple to use and understand
- Supports any colors - not just white and warm white!
- Even supports effects! Eg. turn on the
Fireplaceeffect after sunset. It's also perfect for christmas lights - to make the effect adapt to the time of day! - Can turn off that too bright undimmable light in the evening
- But can also turn ON that cozy low light lamp in the evening. (The one that doesn't need to be on during the day).
- Since it's just a scene, it can control all sorts of things! (Not that I'd reccommend it?)
- Sunshade down when the sun is out?
- Door locked when the sun goes down?
- Can use a dedicated scene at night (if an input_boolean is on)
-
Only works with scenes made in Home Assistant (Can't support eg. Hue scenes)
-
Requires you to setup at least two scenes for each area you want to control.
- And as we all know, setting up and editing scenes in Home Assistant is TEDIOUS!
-
Performance is not the best. Takes 1 second to activate
-
Around 5 times longer than a basic scene, which usually takes around 200ms.
-
Click to see some performance numbers
You can find these numbers for your use case as well by turning on debug logging for the integration and checking the logs
Loaded 5 scenes from in-memory entities Time getting native scenes: 2.6035308837890625ms Time calculating solar events: 0.31375885009765625ms Time getting sun events (precalculated): 0.591278076171875ms Time extrapolating: 862.5073432922363ms Time total applying scene: 866.2581443786621ms
-
Alternative solutions:
- Flux (Built in Home Assistant addon)
- Controls invividual lights directly. YAML configuration only. Seems abandoned, but probably works fine after setting up. At the time of writing being used by 559 active installations world wide.
- Circadian Rythm
- Controls invividual lights or groups directly. Must turn off a boolean to deactivate the effect. Advanced features. Probably has the most active users with its 846(!) stars on GitHub.
This integration is made to be simple on purpose. Leaving it simple makes it more predictable and transparent. No lights accidentally turning on after you've turned off the lights. No struggeling to activate or deactivate the effect. It's just a scene.
A simple, predictable and transparent integration makes it easier to extend its functionality reliably with other parts of Home Assistant.
Examples of functionality you can add:
- Slowly changing lights throughout the day?
- Add an automation that repeatedly activates the scene eg. every 5 minutes, with a 5 minute transition. I have a blueprint available for this!
- Motion activated lights matching the time of day?
- Make an automation that simply activates the scene when motion is detected. I have a blueprint available for this!
What happens when the sun doesn't rise or set? (Polar regions, midnight sun, polar night)
In polar regions, there are periods when the sun never sets (midnight sun) or never rises (polar night). The integration handles these extreme cases by using seasonal fallback times instead of actual solar calculations.
How it works:
When solar calculations fail completely (e.g., during polar night when the sun never rises), the integration uses preset seasonal fallback times:
- Winter: Dawn 8:45, Sunrise 10:30, Noon 12:00, Sunset 13:00, Dusk 22:00
- Summer: Dawn 2:15, Sunrise 4:00, Noon 13:00, Sunset 22:00, Dusk 23:55
Partial failures (when only some events fail):
Sometimes only some solar events can't be calculated. For example, dawn might work but sunrise might fail. To keep events in the correct chronological order, the integration uses whichever time is later:
- Previous event + 30 minutes (to ensure proper ordering), or
- The seasonal fallback time for that event
Example: If dawn is calculated as 6:00 AM but sunrise can't be calculated, the integration will use the later of:
- Dawn + 30 minutes = 6:30 AM, or
- Summer sunrise fallback = 4:00 AM
In this case, it picks 6:30 AM to keep sunrise after dawn.
This ensures your lighting transitions work smoothly even in locations where solar calculations are unreliable, while maintaining logical time progression throughout the day.
For those who thought the readme was too short I've provided a more flowery description of the integration, as described by ChatGPT:
Picture this: a dynamic world where your surroundings transform seamlessly with the changing hues of the day. Imagine effortlessly orchestrating the perfect ambiance for every moment, from the golden dawn to the twilight glow. Welcome to the realm of Scene Extrapolation – where your scenes evolve with the dance of the sun!
Gone are the days of static lighting setups. With this groundbreaking plugin, your meticulously crafted scenes now adapt to the current sun elevation, ensuring an immersive experience that transcends ordinary lighting control. Say goodbye to the mundane and embrace the extraordinary through the familiar embrace of the scene editor.
This isn't just about lighting; it's about mastering the art of atmosphere. The plugin ingeniously conjures a bespoke scene in your chosen domain. Picture it – with a simple activation, your room comes to life, bathed in the perfect illumination tailored to your desires. It's not just smart; it's a symphony of light curated for your every mood.
But the magic doesn’t stop there. Elevate your experience further by syncing the scenes with precision. An automation, synchronized to trigger the scene every 5 minutes, seamlessly aligns with the ebb and flow of the day – a choreography of light mirroring the natural transitions outside your window.
Step into a world where your environment becomes an extension of your imagination. Scene Extrapolation isn't just a plugin; it's the key to unlocking a realm of possibilities, a canvas where you paint with light, and the sun becomes your collaborator in this dazzling masterpiece of ambiance. Experience lighting control like never before – it's not just about scenes; it's about creating a spectacle every time you walk into a room.
