Also super interested in this, just got a couple of clean bulbs myself - can’t help with the programming side of things but I’m definitely happy to be a guinea pig as needed for testing purposes!
Once that is merged by the maintainer, it will then need someone (who’s more familiar with Home Assistant) to write something that calls the new HEV methods I added in that PR.
While the aiolifx author is very cooperative, it has been an issue for some time that aiolifx does not track new LIFX products. If you are willing to donate time for this it would probably make sense to switch to Photons as the upstream library.
I added the HEV support to Photons and have been doing small updates to the core lifx integration too. If no-one else does it, I’ll take a look this weekend at adding support for HEV using aiolifx.
Edited for clarity. Porting to Photons is a way bigger effort.
So the first bit is done (starting and stopping an HEV cycle via a new lifx.set_hev_cycle service. Next thing is to add the default HEV cycle configuration as config entities, which shouldn’t take that long, hopefully.
I’ve been contributing to Photons for a while now and I have a proof of concept integration that uses it too. I’ve spent hundreds of hours on it already.
It literally requires an intermediate API between HA and Photons because the latter is more of a heavily opinionated framework than a library.
I’m still waiting on the bigger refactor, but that should be in the beta tomorrow (hopefully). Please take that for a spin if you can, so we can be sure that the optimised discovery process works for as many folks as possible.
@Djelibeybi posted a bug report regarding your updates to the Lifx discovery process, appears it has issues with lights that get powered off, it cannot then detect when they come back online.
Think you can look at it? It is infuriating, since not all of my lights are powered on 100% of the time yet.
@Djelibeybi Any chance this is still underway? I’ve been reading around the GitHub pages and it looks like there was a bit more complexity than anticipated, which I totally appreciate. Just selfishly wishing I could schedule the clean cycle through HA instead of the LIFX app haha!
After these are merged, I’m going to add some config sensors for IR brightness and HEV status (i.e. starting a HEV cycle manually). That’s probably it for the current integration, though I may create another one that provides locally powered animations for LIFX Tiles. I’m still noodling on that idea, though.