Skip to content

LIFX Ceiling 15" Effects Not Working With "Unknown Error" #146567

@petdono

Description

@petdono

The problem

I have tried this on 2025.6.0b9, 2025.5.0, and 2025.6.0. I'm trying to activate an effect (sky) on the 15" ceiling light.

Themes do work fine. Just effects dont seem to work.

What version of Home Assistant Core has the issue?

core-2025.6.0

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/#action-lifxeffect_sky

Diagnostics information

config_entry-lifx-01JXG57VZKYM80AZN75GG3GM5V.json

Example YAML snippet

action: lifx.effect_sky
metadata: {}
data:
  power_on: true
  speed: 50
  sky_type: Clouds
  cloud_saturation_min: 50
  cloud_saturation_max: 180
target:
  device_id: 3be58a3f227e42ac7e03bc494e267faf

Anything in the logs that might be useful for us?

Logger: homeassistant.helpers.script.websocket_api_script
Source: helpers/script.py:524
First occurred: 4:26:26 PM (1 occurrence)
Last logged: 4:26:26 PM

websocket_api script: Error executing script. Unexpected error for call_service at pos 1: cannot access free variable 'theme' where it is not associated with a value in enclosing scope
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 524, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1012, in _async_step_call_service
    response_data = await self._async_run_long_action(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<9 lines>...
    )
    ^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 624, in _async_run_long_action
    return await long_task
           ^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2802, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2845, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/lifx/manager.py", line 271, in service_handler
    await self.start_effect(all_referenced, service.service, **service.data)
  File "/usr/src/homeassistant/homeassistant/components/lifx/manager.py", line 503, in start_effect
    await start_effect_func(self, bulbs, coordinators, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/lifx/manager.py", line 446, in _start_effect_sky
    await asyncio.gather(
          ~~~~~~~~~~~~~~^
        *(
        ^^
    ...<9 lines>...
        )
        ^
    )
    ^
  File "/usr/src/homeassistant/homeassistant/components/lifx/manager.py", line 454, in <genexpr>
    palette=theme.colors,
            ^^^^^
NameError: cannot access free variable 'theme' where it is not associated with a value in enclosing scope. Did you mean: 'Theme'?

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions