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

Entities not transitioning to unavailable for offline devices. #2096

Open
mitzone opened this issue Dec 17, 2024 · 2 comments
Open

Entities not transitioning to unavailable for offline devices. #2096

mitzone opened this issue Dec 17, 2024 · 2 comments

Comments

@mitzone
Copy link

mitzone commented Dec 17, 2024

Hello,

Since v1.0.5 I noticed an issue with my cuco.plug.v2eur and chuangmi.plug.hmi206 devices. Their entities do not move to "unavailable" if they lost power for some reason.

Steps to reproduce:

  1. Move Power switch of the plug to ON in HA
  2. Pull out plug from the power socket
  3. Power switch position in HA and all the other sensors (like power consumpmtion sensor) remain stuck with the status they had at the moment when pulling the Xiaomi plug out of the power socket.
  4. Expected behaviour would be to transition all sensors/entities of the plugged out device to unavailable (I think it worked until 1.0.3, but not sure)

If I do a manual reload of the Miot integration, it correctly marks all the unavailable entities.
Polling for updates is enabled.

Thank you.

Home Assistant version

Core 2024.12.3
Supervisor 2024.12.0
Operating System 14.0
Frontend 20241127.8

home-assistant_xiaomi_miot_2024-12-17T17-05-14.689Z.log

@al-one
Copy link
Owner

al-one commented Dec 18, 2024

Try v1.0.6

@mitzone
Copy link
Author

mitzone commented Dec 18, 2024

Issue still there.
The device I'm testing is 192.168.2.121 in the log. So if the plug is on and consuming 1kWh, if I abruptly plug it out of the socket or if I disable the WIFI, Miot keeps the last known state of the plug (powered on and consuming 1kWh) and keeps reporting those back to HA. It's not moving the related entities to unavailable.

home-assistant_xiaomi_miot_2024-12-18T17-00-27.890Z.log

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