albertogeniola / meross-homeassistant

Custom component that leverages the Meross IoT library to integrate with Homeassistant
MIT License
718 stars 82 forks source link

Cloud-connected entities become unavailable in the integration #490

Open bobbeims opened 7 months ago

bobbeims commented 7 months ago

Describe the bug Several entities have become unavailable in the HA integration, but those device endpoints are available (and can be controlled) both the Meross app and the Apple Home app.

I've tried unplugging the devices and plugging them back in, but that hasn't returned them to available in HA.

Your environment Core 2024.2.5 Supervisor 2024.02.0 Operating System 12.0 Frontend 20240207.1 Hardware environment: Raspberry Pi 4 running on SSD

Logs taken when the issue happened

don't know exactly when the entities became unavailavble

Meross entities in HA

Meross entities

Meross app UI Bob's Lamp Garage try Plug

JulienDelRio commented 7 months ago

Same here.

bobbeims commented 7 months ago

I just tried a little experiment and it worked to restore the unavailable devices:

  1. ⁠reloaded the HA integration, and verified that the entities were still unavailable
  2. opened the Meross app and verified that the devices were showing as available in the app
  3. removed power from the three devices
  4. waited until the Meross app showed them as unavailable
  5. reloaded the HA integration again (hoping to "sync" the offline state)
  6. restored power to the three devices
  7. waited until the Meross app showed them as available
  8. reloaded the HA integration again

After these steps, the three devices became available in HA again ... no delete / rebuild required.

JulienDelRio commented 7 months ago

Your steps worked for me. Thanks. Weird temporary issue

damole1984 commented 2 months ago

I have the same problem here with a meross outdoor dual plug. Showing as unavailable in HA but available in the app. Ping on the device works. Usually after reconnecting WLAN of the device un my unifi environment the device comes back online in HA.

But after a while ist just gets unavailable again.