core: Aqara contact-sensors keeps going unavailable ZHA/Skyconnect
The problem
Hello,
Running new HA setup with Skyconnect and ZHA. Previuosly it had conbee2 with zigbee2mqtt without problems with the same sensor. But after this transistion it keeps going unavailable after a few hours and then i have to repair again. Please let me know what info to provide more
What version of Home Assistant Core has the issue?
2023.2.2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
ZHA
Link to integration documentation on our website
No response
Diagnostics information
config_entry-zha-c1370734242100e753bfb4fd0c5f9c7b.json (2).txt
Example YAML snippet
No response
Anything in the logs that might be useful for us?
The problem is only happing with the Aqara magnet sensors at the moment
Additional information

About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 23 (6 by maintainers)
What update should I provide, when it still doesn’t work ?
Sendt fra Outlook til iOShttps://aka.ms/o0ukef
Fra: puddly @.> Sendt: Tuesday, November 14, 2023 4:55:07 PM Til: home-assistant/core @.> Cc: Jakob Køster @.>; Comment @.> Emne: Re: [home-assistant/core] Aqara contact-sensors keeps going unavailable ZHA/Skyconnect (Issue #87494)
Closing this issue because the author has not posted an update in many months.
— Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/87494#issuecomment-1810507518, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXIGPFGNPTDQR4CNC4HIOZLYEOH5XAVCNFSM6AAAAAAUR7HYQOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJQGUYDONJRHA. You are receiving this because you commented.Message ID: @.***>
Closing this issue because the author has not posted an update in many months.
Older generation Aqara sensors send a proprietary heartbeat message about once every 50 minutes without any configuration (it cannot be enabled or disabled, it just happens). The default ZHA unavailable timeout for sensors is four hours. For an idle Aqara door sensor to be considered unavailable, five consecutive heartbeat messages would have been missed, which very likely indicates significant network problems outside the control of the coordinator.
Make sure you do not have parent routers incompatible with Aqara devices on your network, your Aqara devices have picked an appropriate parent router (they often do not and the connection is weak), and that their batteries are fresh (reporting is unreliable and the percentage will not change by much, if at all).