Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for An example of HACS: Adaptive Lighting
Nicolas Fränkel
Nicolas Fränkel

Posted on • Originally published atblog.frankel.ch

     

An example of HACS: Adaptive Lighting

In theprevious post of this focus, we replaced Philips Hue automation with the one from Home Assistant. One significant gap we noticed was that Home Assistant doesn't automatically adjust the brightness according to the time of the day, a feature Philips Hue offers. In this post, we are going to address this gap.

The first step when wanting to add a feature to Home Assistant is to browse through available integrations. While there was no out-of-the-box integration, I discovered an alternative: HACS.

The Home Assistant Community Store

Before implementing your integration, you should know aboutHome Assistant Community Store or HACS. HACS is athird-party integration store. If Home Assistant doesn't offer the necessary integration, there's a considerable chance somebody published it on HACS.

HACS itself is available as an integration.

Search for HACS

Once you install it, it appears in the integration list.

HAC installed

On HACS, we can search for a relevant integration. Indeed, there'sAdaptive Lighting:

Adaptive Lighting

Adaptive Lighting is a custom component for Home Assistant that intelligently adjusts the brightness and color of your lights 💡 based on the sun's position, while still allowing for manual control.

--GitHub - Adaptive Lighting

The original app allowed the light to be configured according to time ranges. Adaptive Lighting is head and shoulders above that: it takes into account sunrise and sunset time. Even better, it provides anapp for configuration.

Adaptive Lighting companion webapp

To add any repository to HACS, click on theHACS > Integrations item on the main left menu. Then click on the bottom rightExplore and download repositories button. Add theAdaptive Lighting repo.

Adaptive Lighting added to HACS

Home Assistant features the Adaptive Lighting integration at this stage, ready to be configured and used.

Adaptive Lighting integration

We can now add a new entry. Click on theAdd Entry button. Name it accordingly. Once the service is created, click theConfigure button.

Configure the Adaptive Lighting service

The configuration can be quite intimidating, with its many parameters. You can use the companion app mentioned above to help you with it. I kept all parameters to their default value, but the most important one: the light is to adapt according to the time of the day.

Adaptive Lighting configured service

Depending on your setup, you can configure a single light, a couple of them, or all. I added only a single one, the one managed by the sensor.

Conclusion

In this post, we configured the Adaptive Lighting integration to our Home Assistant. We can now benefit from different intensities based on the time of the day.

Even better, we learned to search the HACS when we didn't find the relevant out-of-the-box integration.

To go further:


Originally published atA Java Geek on December 22nd, 2024

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Dev Advocate | Developer & architect | Love learning and passing on what I learned!
  • Location
    Geneva
  • Work
    Developer Advocate
  • Joined

More fromNicolas Fränkel

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp