Emulating state "transition" attribute; controlling computer display brightness

Hi,
First, I want to congratulate everyone on this awesome project. It’s really exciting to see this developing.

I’m interested in using Home Assistant to make my indoor lighting more closely reflect the timing, brightness, and color of natural sunlight. I have a little Lenovo server running HASS, and I’ll have one or more LIFX Color bulbs for the server to control.

Emulating “transition”

The HASS configuration allows me to specify things to happen when certain conditions are satisfied. For example, I could say “Turn the lights off 1 hour after sunset”. But what I really want is for the lights to gradually dim, something like “Dim the lights starting 1 hour after sunset such that they’re completely off by 2 hours after sunset”.

Apparently this is possible using the “transition” attribute, but only on certain platforms. For platforms that do not support “transition”, is there some way of emulating that capability? It seems in principle that this should be possible.

Display brightness/color control

Another objective of mine is to have my computer screen dim and eventually turn off under the control of Home Assistant, as if it were just another smart light. Has anybody done anything like this before? I currently use Redshift on Linux to dim my screen. Maybe it would make sense to integrate it—any tips on what that would look like? HTTP? MQTT? UPnP?

Thanks for your thoughts.

I’ve automated computer brightness using EventGhost on a Windows machine before, but never Linux. The way I did that was have HA send the brightness value to set via HTTP POST to my machine running Windows and EventGhost get the value and set the brightness value to that. I imagine a similar thing is possible on Linux. :cat:

1 Like