Skip to content

'LightEntityWrapper' object has no attribute 'min_mireds' #594

Description

@stylin-software

Meross RGB globe.

When trying to adjust the colour temperature on the device/entity control of a meross globe, the following message pop ups :
---"Failed to perform the action light/turn_on. 'LightEntityWrapper' object has no attribute 'min_mireds'"---

While this message pops up on the dash, when a meross globe is targeted in a scene, the globe will not turn on at all regardless of colour/white setting specified in the scene.

A quick google shows the following :
"This error occurs in Home Assistant 2026.3 and later because mired-based color temperature (min_mireds, max_mireds) has been removed in favor of Kelvin (color_temp_kelvin)."

Any help / guidance to resolve this issue would be greatly appreciated.

HomeAssistant version: 2026.4
Hardware environment: Generic x86

Logs taken when the issue happened

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:279
integration: Home Assistant WebSocket API ([documentation](https://www.home-assistant.io/integrations/websocket_api), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+websocket_api%22))
First occurred: 12:15:37 PM (23 occurrences)
Last logged: 11:49:14 PM

[140151071541024] Unexpected exception
[140151496104096] Unexpected exception
[140150893747936] Unexpected exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 279, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<7 lines>...
    )
    ^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2817, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2860, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 834, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
        hass, entity, func, data, call.context
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 906, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 521, in async_handle_light_on_service
    await light.async_turn_on(**filter_turn_on_params(light, params))
  File "/config/custom_components/meross_cloud/light.py", line 131, in async_turn_on
    norm_value = (mired - self.min_mireds) / (self.max_mireds - self.min_mireds)
                          ^^^^^^^^^^^^^^^
AttributeError: 'LightEntityWrapper' object has no attribute 'min_mireds'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions