Skip to content

Aqara m1s, not working light #352

@kai-zer-ru

Description

@kai-zer-ru

Эта ошибка возникла в пользовательской интеграции.

Регистратор: homeassistant
Источник: custom_components/aqara_gateway/light.py:135
интеграция: Aqara Gateway (документация, проблемы)
Зафиксировано первый раз: 16 июля 2025 г. в 23:54:05 (1 случай)
Зафиксировано последний раз: 16 июля 2025 г. в 23:54:05

Error doing job: Exception in callback Gateway._on_message() (None)
Traceback (most recent call last):
File "/usr/local/lib/python3.13/asyncio/events.py", line 89, in _run
self._context.run(self._callback, *self._args)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/aqara_gateway/core/gateway.py", line 537, in _on_message
self._process_message(payload)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/config/custom_components/aqara_gateway/core/gateway.py", line 668, in _process_message
handler(payload)
~~~~~~~^^^^^^^^^
File "/config/custom_components/aqara_gateway/light.py", line 135, in update
x_val = float(data[ATTR_RGB_COLOR] / (2**16))
~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
TypeError: unsupported operand type(s) for /: 'tuple' and 'int'

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