krahabb / meross_lan

Home Assistant integration for Meross devices
MIT License
450 stars 47 forks source link

mss110 7.0.0 by Meross Firmware: 7.3.37 Hardware: 7.0.0 not working #472

Open JosephRDawson opened 4 months ago

JosephRDawson commented 4 months ago

This integration has topped working on my mss110 on hardware version 7.0.0 running Firmware: 7.3.37.

The ability to control other Meross devices is not impacted.

I am running a HA Green on the latest fully patched version of HA.

I have tried the latest version of this component and all beta versions with the same result sadly.

I have provided logs and debug information to the developer but unfortunately at this point the developer has not had other reports of others having the same issue on the latest version of the software. For now I have been forced to switch to the cloud version of this integration until the issue can be resolved.

If you are also experiencing this issue please post here so we can let the developer know and hopefully with more people reporting it we can find the common thread to the problem.

All the best,

Joe

pbrooks29 commented 4 months ago

This integration stopped working completely, failed to load when I updated to the latest version of the integration today. Don't think it has anything to do with the meross device firmware, I'm on hardware 8.0.0, firmware 8.3.5, but restarting HA throws the following early errors while trying to load the new version during restart:


> 2024-07-10 18:31:07.163 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration meross_lan which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
> 2024-07-10 18:31:48.599 ERROR (MainThread) [homeassistant.loader] Unexpected exception importing component custom_components.meross_lan
> File "/config/custom_components/meross_lan/__init__.py", line 24, in <module>
> File "/config/custom_components/meross_lan/helpers/manager.py", line 395
> 2024-07-10 18:31:48.616 ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration meross_lan: Unable to import component: Exception importing custom_components.meross_lan
> File "/config/custom_components/meross_lan/__init__.py", line 24, in <module>
> File "/config/custom_components/meross_lan/helpers/manager.py", line 395
> ImportError: Exception importing custom_components.meross_lan

Home Assistant 2023.10.0, was running integration version Moonlight.2.2 (5.2.2) upgraded to Moonlight.3 and restarted HA

Probably a different issue from yours though, if your integration loads but then fails on one device type.

krahabb commented 4 months ago

To avoid confusion and better clarify this issue/thread, the problem faced by @JosephRDawson is about toggling its mss110 devices (fw 7.3.37) from HA/meross_lan. Everything else is working (@JosephRDawson pls correct me if I'm wrong):

If someone else is using the same device/firmware and is experiencing the same issue or, on the contrary, everything is working, please report the behavior.

aholmes55 commented 4 months ago

I am having the identical issue. Only with MSS110 devices. My MSS120, MSS620 and MSS510 devices work correctly in HA/MerossLAN. State changes in HA/MerossLAN are reflected correctly on the HA interface but attempts to change state through HA aren’t working.

krahabb commented 4 months ago

Hello @aholmes55, If you could get a diagnostic from the device and upload a link I'd check it...not that I'm confident I would find the issue (I did inspect the diagnostic for the same kind of device from @JosephRDawson without any luck) But maybe something else could 'pop up' Thank you for signaling the issue so that this doesn't get stale too much.

aholmes55 commented 4 months ago

Hello @aholmes55, If you could get a diagnostic from the device and upload a link I'd check it...not that I'm confident I would find the issue (I did inspect the diagnostic for the same kind of device from @JosephRDawson without any luck) But maybe something else could 'pop up' Thank you for signaling the issue so that this doesn't get stale too much.

Ugh - apologies. I wasn't on 5.3.0 which is working perfectly on all my devices. Thanks!

winterminute commented 1 month ago

I'm also hitting this issue with mss110 7.0.0 on 7.3.37. I'm running latest of everything include this repo (5.3.1)

Here's my diagnostic info:

2024-09-30 00:20:11.070 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to load_default_certs with args (<ssl.SSLContext object at 0x7fe6df3d3b50>,) inside the event loop by custom integration 'meross_lan' at custom_components/meross_lan/merossclient/mqttclient.py, line 348: self.tls_set(cert_reqs=ssl.CERT_REQUIRED, tls_version=ssl.PROTOCOL_TLS_CLIENT) (offender: /usr/local/lib/python3.12/site-packages/paho/mqtt/client.py, line 806: context.load_default_certs()), please create a bug report at https://github.com/krahabb/meross_lan/issues For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#load_default_certs Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/main.py", line 223, in sys.exit(main()) File "/usr/src/homeassistant/homeassistant/main.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 189, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 752, in async_setup_locked await self.async_setup(hass, integration=integration) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/meross_lan/init.py", line 586, in async_setup_entry device.start() File "/config/custom_components/meross_lan/meross_device.py", line 588, in start self._check_protocol_ext() File "/config/custom_components/meross_lan/meross_device.py", line 1693, in _check_protocol_ext profile.link(self) File "/config/custom_components/meross_lan/meross_profile.py", line 1110, in link super().link(device) File "/config/custom_components/meross_lan/helpers/manager.py", line 606, in link device.profile_linked(self) File "/config/custom_components/meross_lan/meross_device.py", line 1667, in profile_linked self._check_protocol() File "/config/custom_components/meross_lan/meross_device.py", line 1732, in _check_protocol _profile.attach_mqtt(self) File "/config/custom_components/meross_lan/meross_profile.py", line 1074, in attach_mqtt mqttconnection = self._get_mqttconnection(broker) File "/config/custom_components/meross_lan/meross_profile.py", line 1240, in _get_mqttconnection return MerossMQTTConnection(self, broker) File "/config/custom_components/meross_lan/meross_profile.py", line 757, in init MerossMQTTAppClient.init( File "/config/custom_components/meross_lan/merossclient/mqttclient.py", line 348, in init self.tls_set(cert_reqs=ssl.CERT_REQUIRED, tls_version=ssl.PROTOCOL_TLS_CLIENT)

2024-09-30 20:47:39.164 DEBUG (MainThread) [custom_components.merosslan.mss110###############################0] TX(http) SET Appliance.Control.ToggleX (messageId:5b387a4e5bab478da3c67cae665750f5) 2024-09-30 20:47:39.204 DEBUG (MainThread) [custom_components.merosslan.mss110###############################0] HTTP ERROR SET Appliance.Control.ToggleX (messageId:5b387a4e5bab478da3c67cae665750f5 ServerDisconnectedError:Server disconnected) 2024-09-30 20:47:40.438 DEBUG (MainThread) [custom_components.merosslan.mss110###############################0] Polling begin 2024-09-30 20:47:40.439 DEBUG (MainThread) [custom_components.merosslan.mss110###############################0] TX(http) SET Appliance.Control.Multiple (messageId:e0cd2a11f7354bc7b305ebcfc0e692bc) 2024-09-30 20:47:40.488 DEBUG (MainThread) [custom_components.merosslan.mss110###############################0] HTTP ERROR SET Appliance.Control.Multiple (messageId:e0cd2a11f7354bc7b305ebcfc0e692bc ServerDisconnectedError:Server disconnected) 2024-09-30 20:47:40.489 DEBUG (MainThread) [custom_components.merosslan.mss110###############################0] Appliance.Control.Multiple failed with no response: requests=3 expected size=1260 2024-09-30 20:47:40.489 DEBUG (MainThread) [custom_components.merosslan.mss110###############################0] Updating device_response_size_max:1396 2024-09-30 20:47:40.489 DEBUG (MainThread) [custom_components.merosslan.mss110###############################0] TX(http) GET Appliance.Control.ToggleX (messageId:868b1c208d854f4fb7bf9402b6b4dbfb) 2024-09-30 20:47:40.529 DEBUG (MainThread) [custom_components.merosslan.mss110###############################0] HTTP ERROR GET Appliance.Control.ToggleX (messageId:868b1c208d854f4fb7bf9402b6b4dbfb ServerDisconnectedError:Server disconnected) 2024-09-30 20:47:40.529 DEBUG (MainThread) [custom_components.merosslan.mss110###############################0] TX(http) GET Appliance.Config.OverTemp (messageId:771da1c74f54483cb99ad5aeec1b4dc6) 2024-09-30 20:47:40.572 DEBUG (MainThread) [custom_components.merosslan.mss110###############################0] HTTP ERROR GET Appliance.Config.OverTemp (messageId:771da1c74f54483cb99ad5aeec1b4dc6 ServerDisconnectedError:Server disconnected) 2024-09-30 20:47:40.574 DEBUG (MainThread) [custom_components.merosslan.mss110###############################0] TX(http) GET Appliance.System.DNDMode (messageId:4f3b945d31a64f01988ff321cec3759f) 2024-09-30 20:47:40.616 DEBUG (MainThread) [custom_components.merosslan.mss110###############################0] HTTP ERROR GET Appliance.System.DNDMode (messageId:4f3b945d31a64f01988ff321cec3759f ServerDisconnectedError:Server disconnected) 2024-09-30 20:47:40.616 DEBUG (MainThread) [custom_components.merosslan.mss110###############################0] Polling end

krahabb commented 1 month ago

Hello @winterminute, Could you provide a 'download diagnostic' (From HA mss110 device page) for the device?

JosephRDawson commented 1 week ago

Issue still not working for me... sadly...

Settings-–-Home-Assistant(1)

So only the items with red arrows fail.

How they fail for me is that i see the status change in HA if I am using them. But they don't change status if i use this integration in HA to change them.

I sadly had to switch to the other HA integration that is cloud based to use them. As a rule cloud integrations are not what I want to use with HA but when I have no other choice you do what you have to do. I would much rather that this integration worked again.