Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meross crashing HA #524

Open
Ehrenholm opened this issue Dec 5, 2024 · 2 comments
Open

Meross crashing HA #524

Ehrenholm opened this issue Dec 5, 2024 · 2 comments

Comments

@Ehrenholm
Copy link

Ehrenholm commented Dec 5, 2024

Describe the bug
There are alot of loggentrys and eventually HA is crashing after update to HAOS 14 only application in logs casuing error is the Merros add-on.
Below is one i belive is the one the rest of meross error derives from.

Your environment
Core
2024.11.3
Supervisor
2024.11.4
Operating System
14.0
Frontend
20241106.2

Logs taken when the issue happened
241205
--- PASTE LOGS HERE ---

Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:728
integration: Sensor (documentation, issues)
First occurred: 10:11:48 (24 occurrences)
Last logged: 10:56:00

meross_cloud: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 728, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1302, in async_device_update
    await self.async_update()
  File "/config/custom_components/meross_cloud/sensor.py", line 313, in async_update
    await super().async_update()
  File "/config/custom_components/meross_cloud/__init__.py", line 241, in async_update
    await self._device.async_update()
  File "/usr/local/lib/python3.12/site-packages/meross_iot/controller/device.py", line 454, in async_update
    result = await self._hub._execute_command(method="GET",
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/meross_iot/controller/device.py", line 308, in _execute_command
    return await self._manager.async_execute_cmd(destination_device_uuid=self.uuid,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/meross_iot/manager.py", line 852, in async_execute_cmd
    return await self.async_execute_cmd_client(client=client,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/meross_iot/manager.py", line 901, in async_execute_cmd_client
    message, message_id = self._build_mqtt_message(method, namespace, payload, destination_device_uuid)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/meross_iot/manager.py", line 977, in _build_mqtt_message
    raise ValueError("Namespace parameter must be a Namespace enum or a string.")
ValueError: Namespace parameter must be a Namespace enum or a string.

------
More on other loggs
This error originated from a custom integration.

Logger: meross_iot.controller.device
Source: custom_components/meross_cloud/__init__.py:241
integration: Meross Cloud IoT
First occurred: 12:07:55 (94 occurrences)
Last logged: 13:43:52

GenericSubDevice does not implement any GET_ALL namespace. Update won't be performed.
Unhandled/NotImplemented event handler for Namespace.HUB_SENSOR_ALL (data: {"id": "2800BF0A7150", "online": {"status": 1, "lastActiveTime": 1733394929}, "smokeAlarm": {"status": 170, "lmtime": 1733394929, "interConn": 0}}) - Subdevice 2800BF0A7150 (hub 2204268171399262080248e1e990bfd3)
Unhandled/NotImplemented event handler for Namespace.HUB_SENSOR_ALL (data: {"id": "2800BF0A7150", "online": {"status": 1, "lastActiveTime": 1733398591}, "smokeAlarm": {"status": 170, "lmtime": 1733398591, "interConn": 0}}) - Subdevice 2800BF0A7150 (hub 2204268171399262080248e1e990bfd3)
Unhandled/NotImplemented event handler for Namespace.HUB_SENSOR_ALL (data: {"id": "2800BF0A7150", "online": {"status": 1, "lastActiveTime": 1733402246}, "smokeAlarm": {"status": 170, "lmtime": 1733402246, "interConn": 0}}) - Subdevice 2800BF0A7150 (hub 2204268171399262080248e1e990bfd3)

@donations-bot-prod
Copy link

Donation bot here. Supporters can mark their interest in this issue by adding a comment
starting with "+1" (without quotes) or adding the "#supporter_sponsor" keyword
(without quotes) in their comments.

You can become a donor by subscribing as Sponsor from the GitHub sponsorship page or from the BuyMeACoffee page.

Issues marked by donors will be labeled accordingly and handled with special care

@kwkid
Copy link

kwkid commented Dec 22, 2024

Same errors listed above

Your environment
Core
2024.12.5
Supervisor
2024.12.0
Operating System
14.1
Home Assistant OS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants