☀️ Sunlight Visualizer, A 3D card to visualize the sun, sunlight radiation and shadows of your house. Use it to control awnings, blinds, HVAC heating / cooling

:sun: Sunlight Visualizer

See where the sun hits your home—and use it in automations.

Hello!

This is a custom Home Assistant integration with an interactive house card and sunlight sensors for your walls and roof to visualise the sun, sunlight radiation and shadows.
No YAML needed for setup.

I tried to make it as simple to use as possible to create automations that adapt to the current suns position to control your home.

For shading automations, the key sensor is Shading Demand. It gives each wall a value from 0–100%, indicating how useful shading would be.

With Open-Meteo enabled, it adapts to the estimated sunlight reaching that wall throughout the day. Higher values suggest a greater need for shade.

Use the sensors in your own blind, awning, heating or cooling automations:
Sunlight sensors work without a weather API.
Enable Open-Meteo support for sun radiation estimates, shading demand and for local weather.

Sensors:

  • :sun: Sun alignment and angle for each wall and the roof.
  • :window: Optional Shading Demand (%) to help decide when shade would be useful.
  • :bar_chart: Optional Open-Meteo forecast-based radiation estimates, including direct and diffuse sunlight.
  • :compass: Solar alignment and radiation: Follow sunlight alignment and estimated radiation for your configured roof and solar panel orientation and tilt.
  • You can see both history and forecast for each wall and the ceiling.

What could you automate?

  • :window: Blinds and awnings: Lower them when a wall receives strong sunlight and shading demand rises, then reopen as exposure falls.
  • :snowflake: Room cooling: Combine sunlight and Open-Meteo radiation estimates with room temperature to pre- adjust cooling needed in sun-facing rooms.
  • :fire: Room heating: Reduce heating when sunlight radiation is likely to help warm a room, then return to your usual settings as solar exposure drops.

Right click this GIF and select “Play animation” if it does not autostart.
Card animation

Solar and energy

  • :sun: Solar panels: View production from your existing solar power sensor.
  • :automobile: EV charging: Show charging power in the card using your existing EV power sensor.
  • :house: Home power: See your home’s current power draw alongside solar production and grid import/export.

Sunlight, shading and sun radiation is the main purpose.

For a little extra atmosphere, you can also enable optional 3D weather visuals.

Installation

Search for Sunlight Visualizer in HACS, or use the button below.
Open in HACS

For All information, usage, wiki etc visit the GitHub page.
GitHub — installation, features and documentation

Feedback and ideas are welcome!

If this integration made your HA life a little easier and you’d like to support it, you can fuel the next update with caffeine :slight_smile:
:hot_beverage: Send me a coffee

Ok, that’s it, let me know what you think :+1:

2 Likes

New version 0.5.3 with 3D landscape and a little windsock to visualise the wind direction better besides the leafes.
Perhaps I’m liking creating a 3D world in HA more then the actual integration :slight_smile:

Right click this GIF and select “Play animation” if it does not autostart.
rotation1


Would someone like the feature to upload their own home?

You can create your house in for example (free) https://www.sweethome3d.com and replace the GLB model right now, but perhaps this would be a nice feature to implement further.

It would be a bit “rough” right now, as some things are tied to this house code wise, but that could be easily fixed.

You would replace the house file located here with your file if you wanted to try it:
custom_components/sunlight_visualizer/www/models/experimental-house.glb

New version 0.5.5 with fixes and enhanced 3D surroundings.

1 Like