home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.9k stars 30.97k forks source link

LIFX Integration incorrectly excludes A19 bulbs from Morph, Move, Flame and Themes. #129459

Open aredon opened 3 weeks ago

aredon commented 3 weeks ago

The problem

Morph, Move, Flame, and other effects work fine in the app for A19 bulbs yet the integration does not allow commands to be sent to these devices. The LIFX app appears to randomly assign the single color zone a space on the theme and then begin animating colors based on that.

Similarly, theme application works fine in the app but the integration does not provide a dropdown nor a methodology to apply themes to these devices.

Further still, the python library aiolifx from the same creator also lacks a way to apply themes directly. Best bet appears to be to manually look up the color list, randomly apply a color myself, then try to get random phase changes between those colors. Big pain and a damper on my Halloween plans.

What version of Home Assistant Core has the issue?

2024.10.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

LIFX

Link to integration documentation on our website

https://www.home-assistant.io/integrations/lifx/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 3 weeks ago

Hey there @djelibeybi, mind taking a look at this issue as it has been labeled with an integration (lifx) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `lifx` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign lifx` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


lifx documentation lifx source (message by IssueLinks)

aredon commented 3 weeks ago

These issues appear related: https://github.com/home-assistant/core/issues/105285 https://github.com/home-assistant/core/issues/94579

Djelibeybi commented 3 weeks ago

The app has been updated by LIFX, but the firmware on the bulbs has not. For effects like Morph and Flame, the app is controlling the effect on devices that don't have the effect in firmware, which we cannot reproduce.

Djelibeybi commented 3 weeks ago

The theme drop-down is only available to multizone devices like the Lightstrip, Beam, Neon and String or matrix devices like Tile, Candle, Ceiling, Path and Spot.

aredon commented 3 weeks ago

Ok well shoot - seeing as how I'd need to create a function for this and handle it software side - is there something I can reference to get a color list of the themes? Seems like the functionality could be mimicked by assigning a random color from the list and then essentially just color looping through that list. Move and Morph manifest the same on bulbs as far as the app is concerned and Themes appear to literally just assign a random color.

Djelibeybi commented 3 weeks ago

Check https://github.com/djelibeybi/aiolifx-themes for the colors for the legacy themes. It can also be used to paint themes across single, multizone and matrix bulbs. I've asked LIFX for a list of colors used in the current app, but haven't received anything yet.

Djelibeybi commented 2 weeks ago

@homeassistant close