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.29k stars 30.61k forks source link

Lifx effects not working #129626

Open tech2urdoor opened 21 hours ago

tech2urdoor commented 21 hours ago

The problem

I have never been able to get the effects to work on any of my Lifx devices. It doesn't matter if I click the effect dropdown box or do an action through developer tools. It has never worked and I've been using home assistant with Lifx for years now. Many different versions.

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 OS

Integration causing the issue

Lifx

Link to integration documentation on our website

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

Diagnostics information

config_entry-lifx-447d1c2318f42e8b41ab0a682cbb7ae3.json

Example YAML snippet

action: lifx.effect_flame
data:
  power_on: true
target:
  entity_id: light.bathroom_lamp

Anything in the logs that might be useful for us?

Logger: homeassistant.core
Source: core.py:2781
First occurred: 21:05:37 (1 occurrences)
Last logged: 21:05:37

Error executing service: <ServiceCall lifx.effect_flame (c:01JBKMQ02J24RMT2183EMFC5SM): entity_id=['light.bathroom_lamp'], power_on=True>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 2781, in _run_service_call_catch_exceptions
    await coro_or_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 2804, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/lifx/manager.py", line 254, in service_handler
    await self.start_effect(all_referenced, service.service, **service.data)
  File "/usr/src/homeassistant/homeassistant/components/lifx/manager.py", line 316, in start_effect
    and self.entry_id_to_entity_id[entry_id] in entity_ids
        ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
KeyError: '75bbe54e98eb6588e48311e59457e73c'

Additional information

No response

home-assistant[bot] commented 21 hours 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)

Djelibeybi commented 14 hours ago

How long ago did you add these LIFX bulbs to Home Assistant? I'm wondering if the migration to individual configuration entries that was done a while back might be the cause. If you delete a bulb from Home Assistant and let it get rediscovered, does this still happen for a freshly discovered LIFX bulb?

tech2urdoor commented 12 hours ago

I just bought a lifx neon flexible strip yesterday and added it to home assistant. I tried the effect dropdown box in the controls of homeassistant and they did nothing. That was what led me to finally seek out a solution. I think a freshly discovered 'bulb' still has the same issues. I have a set of the old Lifx tiles that reset back to white if they lose power. It would be nice to be able to set the flame effect back on them through home assistant I've been getting around the issue by tapping them for years now.

Djelibeybi commented 12 hours ago

Interesting. I will run some tests over the next week to see if I can reproduce the issue.

Are you only using the drop-down on the light pop up? Have you tried using a script or action?

tech2urdoor commented 9 hours ago

I've tried several different methods, but I have had no luck with any of them. I have the lifx lights added to google home through lifx rather than home assistant (nabu casa) and on my nest hub screens I can successfully turn the effects on there it would just be nice to do it through home assistant so I can have automations.

Djelibeybi commented 9 hours ago

I just tried starting effects on my Neon Flex, Neon Outdoor and new Candle devices, and all three of them worked with both the software effect (color loop) and firmware effect (move/flame), with the exception of one attempt that failed due to a timeout but that's a network issue, not an integration one.

Does the Theme drop-down work to apply a theme onto your Neon Flex device? I'm trying to narrow down which bits are working and which are not, so I can try and figure out why things work on my end but not yours.

Similarly, do you have any custom integrations installed via HACS? If you do, could you let me know which ones? Maybe one of those is interacting with the LIFX integration in an unforseen manner.

Djelibeybi commented 9 hours ago

Another question: can you try both effect_flame and effect_morph on your Candle to see if both firmware effects throw the same error? The only firmware effect for the Neon Flex is effect_move.

tech2urdoor commented 9 hours ago

I can set a theme through home assistant on the neon flex just fine. I tried the effect move on the controls and it did nothing. I haven't got time right now to do anymore testing. I'm sorry. Thank you for your assistance. I have a lot of HACS integrations so that is definitely possible. The only one I really use a lot is the Adaptive Lighting but I don't use that on the lights I want to use effects on. I should probably start removing ones I don't use and clean it up a bit.

Djelibeybi commented 9 hours ago

I'll keep trying to recreate the issue. If it starts to work after you clean up your custom integrations, please let us know. I use Adaptive Lighting so just having that installed shouldn't cause this issue.