home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
74.16k stars 31.13k forks source link

Aqara contact-sensors keeps going unavailable after migration to ZHA/Skyconnect #106770

Closed seblang closed 8 months ago

seblang commented 11 months ago

The problem

Hello,

Running migration from POP coordinato to Skyconnect coordinator (ZHA. With POP dongle no problems with the same sensor. But after restart weather aqara sensor were ok but the door contact sensors no! I have pusch on button from each sensor to try to reconnect them............some are reconnected some other no! I have done the reset from other and try to reconnect them but it's impossible to intégrate it! Have you a solution?

What version of Home Assistant Core has the issue?

2023.12.4

What was the last working version of Home Assistant Core?

2023.12.4

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

{ "home_assistant": { "installation_type": "Home Assistant OS", "version": "2023.12.4", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.11.6", "docker": true, "arch": "x86_64", "timezone": "Europe/Paris", "os_name": "Linux", "os_version": "6.1.63-haos", "supervisor": "2023.12.0", "host_os": "Home Assistant OS 11.2", "docker_version": "24.0.7", "chassis": "embedded", "run_as_root": true }, "custom_components": { "hacs": { "version": "1.33.0", "requirements": [ "aiogithubapi>=22.10.1" ] }, "multizone_controller": { "version": "1.2", "requirements": [] }, "enphase_envoy": { "version": "0.0.13", "requirements": [ "envoy-utils" ] }, "average": { "version": "2.3.1", "requirements": [ "colorlog==6.7.0" ] }, "pollens": { "version": "2023.06.01", "requirements": [] }, "solcast_solar": { "version": "3.0.47", "requirements": [ "aiohttp>=3.6.2", "datetime>=4.3", "isodate>=0.6.0" ] }, "rtetempo": { "version": "1.2.2", "requirements": [ "oauthlib==3.2.2", "requests==2.28.1", "requests-oauthlib==1.3.1" ] }, "fullykiosk": { "version": "1.1.0", "requirements": [ "python-fullykiosk==0.0.11" ] }, "zha_toolkit": { "version": "v1.1.8", "requirements": [ "pytz" ] }, "tahoma": { "version": "2.15.0", "requirements": [ "pyoverkiz==1.8.0" ] }, "favicon": { "version": "10.4", "requirements": [] }, "rte_ecowatt": { "version": "0.6.3", "requirements": [ "Async-OAuthlib==0.0.9" ] }, "reversotts": { "version": "1.0.2", "requirements": [ "pyttsreverso==0.4" ] }, "virtual": { "version": "0.8.0.1", "requirements": [] } }, "integration_manifest": { "domain": "zha", "name": "Zigbee Home Automation", "after_dependencies": [ "onboarding", "usb" ], "codeowners": [ "@dmulcahey", "@adminiuga", "@puddly", "@TheJulianJES" ], "config_flow": true, "dependencies": [ "file_upload" ], "documentation": "https://www.home-assistant.io/integrations/zha", "iot_class": "local_polling", "loggers": [ "aiosqlite", "bellows", "crccheck", "pure_pcapy3", "zhaquirks", "zigpy", "zigpy_deconz", "zigpy_xbee", "zigpy_zigate", "zigpy_znp", "universal_silabs_flasher" ], "requirements": [ "bellows==0.37.4", "pyserial==3.5", "pyserial-asyncio==0.6", "zha-quirks==0.0.108", "zigpy-deconz==0.22.3", "zigpy==0.60.2", "zigpy-xbee==0.20.1", "zigpy-zigate==0.12.0", "zigpy-znp==0.12.1", "universal-silabs-flasher==0.0.15", "pyserial-asyncio-fast==0.11" ], "usb": [ { "vid": "10C4", "pid": "EA60", "description": "2652", "known_devices": [ "slae.sh cc2652rb stick" ] }, { "vid": "1A86", "pid": "55D4", "description": "sonoffplus", "known_devices": [ "sonoff zigbee dongle plus v2" ] }, { "vid": "10C4", "pid": "EA60", "description": "sonoffplus", "known_devices": [ "sonoff zigbee dongle plus" ] }, { "vid": "10C4", "pid": "EA60", "description": "tubeszb", "known_devices": [ "TubesZB Coordinator" ] }, { "vid": "1A86", "pid": "7523", "description": "tubeszb", "known_devices": [ "TubesZB Coordinator" ] }, { "vid": "1A86", "pid": "7523", "description": "zigstar", "known_devices": [ "ZigStar Coordinators" ] }, { "vid": "1CF1", "pid": "0030", "description": "conbee", "known_devices": [ "Conbee II" ] }, { "vid": "0403", "pid": "6015", "description": "conbee", "known_devices": [ "Conbee III" ] }, { "vid": "10C4", "pid": "8A2A", "description": "zigbee", "known_devices": [ "Nortek HUSBZB-1" ] }, { "vid": "0403", "pid": "6015", "description": "zigate", "known_devices": [ "ZiGate+" ] }, { "vid": "10C4", "pid": "EA60", "description": "zigate", "known_devices": [ "ZiGate" ] }, { "vid": "10C4", "pid": "8B34", "description": "bv 2010/10", "known_devices": [ "Bitron Video AV2010/10" ] } ], "zeroconf": [ { "type": "_esphomelib._tcp.local.", "name": "tube" }, { "type": "_zigate-zigbee-gateway._tcp.local.", "name": "zigate" }, { "type": "_zigstar_gw._tcp.local.", "name": "zigstar" }, { "type": "_uzg-01._tcp.local.", "name": "uzg-01" }, { "type": "_slzb-06._tcp.local.", "name": "slzb-06*" } ], "is_built_in": true }, "data": { "config": {}, "config_entry": { "entry_id": "82d0623a1db9a205c6271a6eb5f9bb54", "version": 4, "domain": "zha", "title": "/dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0", "data": { "device": { "path": "/dev/serial/by-id/usb-Nabu_Casa_SkyConnect_v1.0_063fc910ab14ed11bbeebe8be054580b-if00-port0", "flow_control": null, "baudrate": 115200 }, "radio_type": "ezsp" }, "options": {}, "pref_disable_new_entities": false, "pref_disable_polling": false, "source": "user", "unique_id": null, "disabled_by": null }, "application_state": { "node_info": { "nwk": 0, "ieee": "REDACTED", "logical_type": 0, "model": "SkyConnect v1.0", "manufacturer": "Nabu Casa", "version": "7.1.1.0 build 273" }, "network_info": { "extended_pan_id": "REDACTED", "pan_id": 64753, "nwk_update_id": 2, "nwk_manager_id": 0, "channel": 20, "channel_mask": 134215680, "security_level": 5, "network_key": "REDACTED", "tc_link_key": { "key": [ 90, 105, 103, 66, 101, 101, 65, 108, 108, 105, 97, 110, 99, 101, 48, 57 ], "tx_counter": 299008, "rx_counter": 0, "seq": 0, "partner_ieee": "REDACTED" }, "key_table": [], "children": [], "nwk_addresses": {}, "stack_specific": { "ezsp": { "hashed_tclk": "bca7916e555810c1a69ae2b042d95bc2" } }, "metadata": { "ezsp": { "stack_version": 9, "can_burn_userdata_custom_eui64": false, "can_rewrite_custom_eui64": false } }, "source": "bellows@0.37.4" }, "counters": { "controller_app_counters": { "unicast_rx": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='unicast_rx', _raw_value=1265, reset_count=0, _last_reset_value=0)" }, "unicast_tx_success": { "__type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='unicast_tx_success', _raw_value=1059, reset_count=0, _last_reset_value=0)" }, "broadcast_tx_success_unexpected": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='broadcast_tx_success_unexpected', _raw_value=18, reset_count=0, _last_reset_value=0)" }, "unicast_tx_failure": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='unicast_tx_failure', _raw_value=147, reset_count=0, _last_reset_value=0)" }, "watchdog_reset_requests": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='watchdog_reset_requests', _raw_value=508, reset_count=0, _last_reset_value=0)" }, "broadcast_rx": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='broadcast_rx', _raw_value=10, reset_count=0, _last_reset_value=0)" }, "unicast_tx_success_unexpected": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='unicast_tx_success_unexpected', _raw_value=9, reset_count=0, _last_reset_value=0)" }, "unicast_tx_failure_unexpected": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='unicast_tx_failure_unexpected', _raw_value=8, reset_count=0, _last_reset_value=0)" } }, "ezsp_counters": { "MAC_RX_BROADCAST": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='MAC_RX_BROADCAST', _raw_value=336, reset_count=2, _last_reset_value=1502)" }, "MAC_TX_BROADCAST": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='MAC_TX_BROADCAST', _raw_value=118, reset_count=2, _last_reset_value=524)" }, "MAC_RX_UNICAST": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='MAC_RX_UNICAST', _raw_value=627, reset_count=2, _last_reset_value=2703)" }, "MAC_TX_UNICAST_SUCCESS": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='MAC_TX_UNICAST_SUCCESS', _raw_value=488, reset_count=2, _last_reset_value=1678)" }, "MAC_TX_UNICAST_RETRY": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='MAC_TX_UNICAST_RETRY', _raw_value=345, reset_count=2, _last_reset_value=257)" }, "MAC_TX_UNICAST_FAILED": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='MAC_TX_UNICAST_FAILED', _raw_value=108, reset_count=2, _last_reset_value=60)" }, "APS_DATA_RX_BROADCAST": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='APS_DATA_RX_BROADCAST', _raw_value=0, reset_count=2, _last_reset_value=18)" }, "APS_DATA_TX_BROADCAST": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='APS_DATA_TX_BROADCAST', _raw_value=0, reset_count=2, _last_reset_value=18)" }, "APS_DATA_RX_UNICAST": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='APS_DATA_RX_UNICAST', _raw_value=338, reset_count=2, _last_reset_value=927)" }, "APS_DATA_TX_UNICAST_SUCCESS": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='APS_DATA_TX_UNICAST_SUCCESS', _raw_value=283, reset_count=2, _last_reset_value=785)" }, "APS_DATA_TX_UNICAST_RETRY": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='APS_DATA_TX_UNICAST_RETRY', _raw_value=0, reset_count=2, _last_reset_value=0)" }, "APS_DATA_TX_UNICAST_FAILED": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='APS_DATA_TX_UNICAST_FAILED', _raw_value=9, reset_count=2, _last_reset_value=146)" }, "ROUTE_DISCOVERY_INITIATED": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='ROUTE_DISCOVERY_INITIATED', _raw_value=6, reset_count=2, _last_reset_value=62)" }, "NEIGHBOR_ADDED": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='NEIGHBOR_ADDED', _raw_value=0, reset_count=2, _last_reset_value=15)" }, "NEIGHBOR_REMOVED": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='NEIGHBOR_REMOVED', _raw_value=0, reset_count=2, _last_reset_value=9)" }, "NEIGHBOR_STALE": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='NEIGHBOR_STALE', _raw_value=0, reset_count=2, _last_reset_value=9)" }, "JOIN_INDICATION": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='JOIN_INDICATION', _raw_value=0, reset_count=2, _last_reset_value=16)" }, "CHILD_REMOVED": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='CHILD_REMOVED', _raw_value=0, reset_count=2, _last_reset_value=0)" }, "ASH_OVERFLOW_ERROR": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='ASH_OVERFLOW_ERROR', _raw_value=0, reset_count=2, _last_reset_value=0)" }, "ASH_FRAMING_ERROR": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='ASH_FRAMING_ERROR', _raw_value=0, reset_count=2, _last_reset_value=0)" }, "ASH_OVERRUN_ERROR": { "__type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='ASH_OVERRUN_ERROR', _raw_value=0, reset_count=2, _last_reset_value=0)" }, "NWK_FRAME_COUNTER_FAILURE": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='NWK_FRAME_COUNTER_FAILURE', _raw_value=0, reset_count=2, _last_reset_value=0)" }, "APS_FRAME_COUNTER_FAILURE": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='APS_FRAME_COUNTER_FAILURE', _raw_value=0, reset_count=2, _last_reset_value=0)" }, "UTILITY": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='UTILITY', _raw_value=0, reset_count=2, _last_reset_value=0)" }, "APS_LINK_KEY_NOT_AUTHORIZED": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='APS_LINK_KEY_NOT_AUTHORIZED', _raw_value=0, reset_count=2, _last_reset_value=0)" }, "NWK_DECRYPTION_FAILURE": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='NWK_DECRYPTION_FAILURE', _raw_value=0, reset_count=2, _last_reset_value=0)" }, "APS_DECRYPTION_FAILURE": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='APS_DECRYPTION_FAILURE', _raw_value=0, reset_count=2, _last_reset_value=0)" }, "ALLOCATE_PACKET_BUFFER_FAILURE": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='ALLOCATE_PACKET_BUFFER_FAILURE', _raw_value=0, reset_count=2, _last_reset_value=0)" }, "RELAYED_UNICAST": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='RELAYED_UNICAST', _raw_value=0, reset_count=2, _last_reset_value=0)" }, "PHY_TO_MAC_QUEUE_LIMIT_REACHED": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='PHY_TO_MAC_QUEUE_LIMIT_REACHED', _raw_value=0, reset_count=2, _last_reset_value=0)" }, "PACKET_VALIDATE_LIBRARY_DROPPED_COUNT": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='PACKET_VALIDATE_LIBRARY_DROPPED_COUNT', _raw_value=0, reset_count=2, _last_reset_value=0)" }, "TYPE_NWK_RETRY_OVERFLOW": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='TYPE_NWK_RETRY_OVERFLOW', _raw_value=0, reset_count=2, _last_reset_value=0)" }, "PHY_CCA_FAIL_COUNT": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='PHY_CCA_FAIL_COUNT', _raw_value=1, reset_count=2, _last_reset_value=5)" }, "BROADCAST_TABLE_FULL": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='BROADCAST_TABLE_FULL', _raw_value=0, reset_count=2, _last_reset_value=0)" }, "PTA_LO_PRI_REQUESTED": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='PTA_LO_PRI_REQUESTED', _raw_value=0, reset_count=2, _last_reset_value=0)" }, "PTA_HI_PRI_REQUESTED": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='PTA_HI_PRI_REQUESTED', _raw_value=0, reset_count=2, _last_reset_value=0)" }, "PTA_LO_PRI_DENIED": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='PTA_LO_PRI_DENIED', _raw_value=0, reset_count=2, _last_reset_value=0)" }, "PTA_HI_PRI_DENIED": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='PTA_HI_PRI_DENIED', _raw_value=0, reset_count=2, _last_reset_value=0)" }, "PTA_LO_PRI_TX_ABORTED": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='PTA_LO_PRI_TX_ABORTED', _raw_value=0, reset_count=2, _last_reset_value=0)" }, "PTA_HI_PRI_TX_ABORTED": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='PTA_HI_PRI_TX_ABORTED', _raw_value=0, reset_count=2, _last_reset_value=0)" }, "ADDRESS_CONFLICT_SENT": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='ADDRESS_CONFLICT_SENT', _raw_value=0, reset_count=2, _last_reset_value=0)" }, "EZSP_FREE_BUFFERS": { "type": "<class 'zigpy.state.Counter'>", "repr": "Counter(name='EZSP_FREE_BUFFERS', _raw_value=252, reset_count=2, _last_reset_value=0)" } } }, "broadcast_counters": {}, "device_counters": {}, "group_counters": {} }, "energy_scan": { "11": 82.35373987514762, "12": 75.96022321405563, "13": 4.69985354430736, "14": 5.317630506738386, "15": 91.05606689948522, "16": 2.509919386096536, "17": 2.84844209578687, "18": 2.509919386096536, "19": 2.2107128772756957, "20": 82.35373987514762, "21": 73.50699819621309, "22": 82.35373987514762, "23": 68.14622793558128, "24": 80.38447947821754, "25": 87.33047519856483, "26": 73.50699819621309 }, "versions": { "bellows": "0.37.4", "zigpy": "0.60.2", "zigpy_deconz": "0.22.3", "zigpy_xbee": "0.20.1", "zigpy_znp": "0.12.1", "zigpy_zigate": "0.12.0", "zhaquirks": "0.0.108" } } }

Example YAML snippet

No response

Anything in the logs that might be useful for us?

no

Additional information

No response

home-assistant[bot] commented 11 months ago

Hey there @dmulcahey, @adminiuga, @puddly, @thejulianjes, mind taking a look at this issue as it has been labeled with an integration (zha) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `zha` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign zha` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


zha documentation zha source (message by IssueLinks)

issue-triage-workflows[bot] commented 8 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.