Open Bkl741 opened 3 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!
(message by CodeOwnersMention)
zha documentation zha source (message by IssueLinks)
Please attach diagnostic information for ZHA and include a debug log of it crashing, if possible.
Something similar was here too. ZHA on Raspberry 5 stopped communicating with Deconz II and Zi-Stick. The system could see the USB stick, but ZHA errored out. I had to roll back, since it is not a testing system.
home-assistant_zha_2024-08-20T16-50-07.207Z.log
Since 2024.8.2, mine is working normal with Deconz II and docker. Only the listdir warning
Perhaps it'll help. Regards
The logs for ZHA with debug mode. It takes 12 hours before crash.
2024-08-20 19:33:49.384 WARNING (SyncWorker_1) [zhaquirks] Loaded custom quirks. Please contribute them to https://github.com/zigpy/zha-device-handlers 2024-08-20 19:33:50.934 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to glob with args ('/dev/ttyS*',) inside the event loop by integration 'zha' at homeassistant/components/zha/__init__.py, line 151: await zha_gateway.async_initialize() (offender: /usr/local/lib/python3.12/site-packages/serial/tools/list_ports_linux.py, line 92: devices = glob.glob('/dev/ttyS*') # built-in serial ports), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+zha%22 File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 151, in async_setup_entry await zha_gateway.async_initialize() 2024-08-20 19:33:50.942 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to iglob with args ('/dev/ttyS*',) inside the event loop by integration 'zha' at homeassistant/components/zha/__init__.py, line 151: await zha_gateway.async_initialize() (offender: /usr/local/lib/python3.12/glob.py, line 28: return list(iglob(pathname, root_dir=root_dir, dir_fd=dir_fd, recursive=recursive,), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+zha%22 File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 151, in async_setup_entry await zha_gateway.async_initialize() 2024-08-20 19:33:50.947 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to scandir with args ('/dev',) inside the event loop by integration 'zha' at homeassistant/components/zha/__init__.py, line 151: await zha_gateway.async_initialize() (offender: /usr/local/lib/python3.12/glob.py, line 160: with os.scandir(arg) as it:), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+zha%22 File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 151, in async_setup_entry await zha_gateway.async_initialize() 2024-08-20 19:33:50.955 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to glob with args ('/dev/ttyUSB*',) inside the event loop by integration 'zha' at homeassistant/components/zha/__init__.py, line 151: await zha_gateway.async_initialize() (offender: /usr/local/lib/python3.12/site-packages/serial/tools/list_ports_linux.py, line 93: devices.extend(glob.glob('/dev/ttyUSB*')) # usb-serial with own driver), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+zha%22 File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 151, in async_setup_entry await zha_gateway.async_initialize() 2024-08-20 19:33:50.970 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to glob with args ('/dev/ttyXRUSB*',) inside the event loop by integration 'zha' at homeassistant/components/zha/__init__.py, line 151: await zha_gateway.async_initialize() (offender: /usr/local/lib/python3.12/site-packages/serial/tools/list_ports_linux.py, line 94: devices.extend(glob.glob('/dev/ttyXRUSB*')) # xr-usb-serial port exar (DELL Edge 3001)), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+zha%22 File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 151, in async_setup_entry await zha_gateway.async_initialize() 2024-08-20 19:33:50.986 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to glob with args ('/dev/ttyACM*',) inside the event loop by integration 'zha' at homeassistant/components/zha/__init__.py, line 151: await zha_gateway.async_initialize() (offender: /usr/local/lib/python3.12/site-packages/serial/tools/list_ports_linux.py, line 95: devices.extend(glob.glob('/dev/ttyACM*')) # usb-serial with CDC-ACM profile), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+zha%22 File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 151, in async_setup_entry await zha_gateway.async_initialize() 2024-08-20 19:33:51.001 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to glob with args ('/dev/ttyAMA*',) inside the event loop by integration 'zha' at homeassistant/components/zha/__init__.py, line 151: await zha_gateway.async_initialize() (offender: /usr/local/lib/python3.12/site-packages/serial/tools/list_ports_linux.py, line 96: devices.extend(glob.glob('/dev/ttyAMA*')) # ARM internal port (raspi)), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+zha%22 File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 151, in async_setup_entry await zha_gateway.async_initialize() 2024-08-20 19:33:51.016 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to glob with args ('/dev/rfcomm*',) inside the event loop by integration 'zha' at homeassistant/components/zha/__init__.py, line 151: await zha_gateway.async_initialize() (offender: /usr/local/lib/python3.12/site-packages/serial/tools/list_ports_linux.py, line 97: devices.extend(glob.glob('/dev/rfcomm*')) # BT serial devices), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+zha%22 File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 151, in async_setup_entry await zha_gateway.async_initialize() 2024-08-20 19:33:51.031 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to glob with args ('/dev/ttyAP*',) inside the event loop by integration 'zha' at homeassistant/components/zha/__init__.py, line 151: await zha_gateway.async_initialize() (offender: /usr/local/lib/python3.12/site-packages/serial/tools/list_ports_linux.py, line 98: devices.extend(glob.glob('/dev/ttyAP*')) # Advantech multi-port serial controllers), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+zha%22 File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 151, in async_setup_entry await zha_gateway.async_initialize() 2024-08-20 19:33:51.047 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open with args ('/sys/devices/pci0000:00/0000:00:1e.0/0000:01:1b.0/usb2/2-1/bNumInterfaces',) inside the event loop by integration 'zha' at homeassistant/components/zha/__init__.py, line 151: await zha_gateway.async_initialize() (offender: /usr/local/lib/python3.12/site-packages/serial/tools/list_ports_linux.py, line 84: with open(os.path.join(*args)) as f:), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+zha%22 File "/usr/src/homeassistant/homeassistant/components/zha/__init__.py", line 151, in async_setup_entry
Detected blocking call
isn't really an issue.
Please attach diagnostics JSON for ZHA so we can see what radio you're using. If you can, leave debug logging running for the 12 hours so that the crash has context. Otherwise, there's little that can be done to fix whatever problem you're having.
I left the debug mode since the last crash and restart.
What do you want and how can I get it ?
Thank you for your Time.
I use zigate :
{ "home_assistant": { "installation_type": "Home Assistant OS", "version": "2024.8.2", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.12.4", "docker": true, "arch": "x86_64", "timezone": "Europe/Paris", "os_name": "Linux", "os_version": "6.6.44-haos", "supervisor": "2024.08.0", "host_os": "Home Assistant OS 13.0", "docker_version": "26.1.4", "chassis": "vm", "run_as_root": true }, "custom_components": { "landroid_cloud": { "documentation": "https://github.com/MTrab/landroid_cloud/blob/master/README.md", "version": "5.0.6", "requirements": [ "pyworxcloud==4.1.15" ] }, "hacs": { "documentation": "https://hacs.xyz/docs/configuration/start", "version": "1.34.0", "requirements": [ "aiogithubapi>=22.10.1" ] }, "spotcast": { "documentation": "https://github.com/fondberg/spotcast", "version": "v3.8.0", "requirements": [] }, "tesla_custom": { "documentation": "https://github.com/alandtse/tesla/wiki", "version": "3.24.1", "requirements": [ "teslajsonpy==3.12.0" ] }, "alarmo": { "documentation": "https://github.com/nielsfaber/alarmo", "version": "v1.10.4", "requirements": [] }, "scene_presets": { "documentation": "https://github.com/Hypfer/hass-scene_presets", "version": "2.2.1", "requirements": [] }, "webrtc": { "documentation": "https://github.com/AlexxIT/WebRTC", "version": "v3.5.2", "requirements": [] }, "eufy_security": { "documentation": "https://github.com/fuatakgun/eufy_security", "version": "8.0.2", "requirements": [ "websocket-client==1.4.2", "aiortsp==1.3.7" ] }, "simpleicons": { "documentation": "https://github.com/vigonotion/hass-simpleicons", "version": "v2.2.0", "requirements": [ "simpleicons==7.14.0" ] }, "rtetempo": { "documentation": "https://github.com/hekmon/rtetempo/blob/v1.3.2/README.md", "version": "1.3.2", "requirements": [ "requests-oauthlib>=1.3.1" ] } }, "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", "zha", "universal_silabs_flasher" ], "requirements": [ "universal-silabs-flasher==0.0.22", "zha==0.0.31" ], "usb": [ { "vid": "10C4", "pid": "EA60", "description": "*2652*", "known_devices": [ "slae.sh cc2652rb stick" ] }, { "vid": "10C4", "pid": "EA60", "description": "*slzb-07*", "known_devices": [ "smlight slzb-07" ] }, { "vid": "1A86", "pid": "55D4", "description": "*sonoff*plus*", "known_devices": [ "sonoff zigbee dongle plus v2" ] }, { "vid": "10C4", "pid": "EA60", "description": "*sonoff*plus*", "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*" }, { "type": "_xzg._tcp.local.", "name": "xzg*" }, { "type": "_czc._tcp.local.", "name": "czc*" } ], "is_built_in": true }, "setup_times": { "null": { "setup": 8.780302596278489e-05 }, "b6a6a71a7b2e3ac3dc3ee5f7b521d27e": { "wait_import_platforms": -0.7485416640120093, "wait_base_component": -0.007047727005556226, "config_entry_setup": 9.798542175994953 } }, "data": { "config": { "custom_quirks_path": "zhaquirks/", "enable_quirks": true, "device_config": {} }, "config_entry": { "created_at": "1970-01-01T00:00:00+00:00", "data": { "device": { "path": "/dev/serial/by-id/usb-Prolific_Technology_Inc._USB-Serial_Controller-if00-port0", "baudrate": 115200, "flow_control": null }, "radio_type": "zigate" }, "disabled_by": null, "domain": "zha", "entry_id": "b6a6a71a7b2e3ac3dc3ee5f7b521d27e", "minor_version": 1, "modified_at": "1970-01-01T00:00:00+00:00", "options": {}, "pref_disable_new_entities": false, "pref_disable_polling": false, "source": "user", "title": "USB-Serial Controller, s/n: n/a - Prolific Technology Inc.", "unique_id": null, "version": 4 }, "application_state": { "node_info": { "nwk": 0, "ieee": "**REDACTED**", "logical_type": 0, "model": "ZiGate USB-TTL", "manufacturer": "ZiGate", "version": "3.21" }, "network_info": { "extended_pan_id": "**REDACTED**", "pan_id": 39886, "nwk_update_id": 0, "nwk_manager_id": 0, "channel": 15, "channel_mask": 32768, "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": 0, "rx_counter": 0, "seq": 0, "partner_ieee": "**REDACTED**" }, "key_table": [], "children": [], "nwk_addresses": {}, "stack_specific": {}, "metadata": { "zigate": { "version": "3.21" } }, "source": "zigpy-zigate@0.13.1" }, "counters": {}, "broadcast_counters": {}, "device_counters": {}, "group_counters": {} }, "energy_scan": { "11": 0.0, "12": 0.0, "13": 0.0, "14": 0.0, "15": 0.0, "16": 0.0, "17": 0.0, "18": 0.0, "19": 0.0, "20": 0.0, "21": 0.0, "22": 0.0, "23": 0.0, "24": 0.0, "25": 0.0, "26": 0.0 }, "versions": { "bellows": "0.40.4", "zigpy": "0.65.4", "zigpy_deconz": "0.23.3", "zigpy_xbee": "0.20.2", "zigpy_znp": "0.12.4", "zigpy_zigate": "0.13.1", "zhaquirks": "0.0.119", "zha": "0.0.31" }, "devices": [ { "manufacturer": "ZiGate", "model": "ZiGate USB-TTL", "logical_type": "Coordinator" }, { "manufacturer": "LUMI", "model": "lumi.sensor_smoke", "logical_type": "EndDevice" }, { "manufacturer": "LUMI", "model": "lumi.sensor_magnet.aq2", "logical_type": "EndDevice" }, { "manufacturer": "LUMI", "model": "lumi.sensor_wleak.aq1", "logical_type": "EndDevice" }, { "manufacturer": "LUMI", "model": "lumi.remote.b186acn01", "logical_type": "EndDevice" }, { "manufacturer": "LUMI", "model": "lumi.sensor_switch.aq2", "logical_type": "EndDevice" }, { "manufacturer": "LUMI", "model": "lumi.weather", "logical_type": "EndDevice" }, { "manufacturer": "LUMI", "model": "lumi.sensor_magnet.aq2", "logical_type": "EndDevice" }, { "manufacturer": "Heiman", "model": "WarningDevice", "logical_type": "Router" }, { "manufacturer": "LUMI", "model": "lumi.sensor_magnet.aq2", "logical_type": "EndDevice" }, { "manufacturer": "LUMI", "model": "lumi.sensor_magnet.aq2", "logical_type": "EndDevice" }, { "manufacturer": "LUMI", "model": "lumi.sensor_magnet.aq2", "logical_type": "EndDevice" }, { "manufacturer": "LUMI", "model": "lumi.sensor_magnet.aq2", "logical_type": "EndDevice" }, { "manufacturer": "LUMI", "model": "lumi.sensor_magnet.aq2", "logical_type": "EndDevice" }, { "manufacturer": "_TZ3000_hdopuwv6", "model": "TS011F", "logical_type": "Router" }, { "manufacturer": "_TZ3000_7d8yme6f", "model": "TS0203", "logical_type": "EndDevice" }, { "manufacturer": "_TZ3000_oxslv1c9", "model": "TS0203", "logical_type": "EndDevice" }, { "manufacturer": "_TZ3000_26fmupbb", "model": "TS0203", "logical_type": "EndDevice" }, { "manufacturer": "_TZE200_wfxuhoea", "model": "TS0601", "logical_type": "Router" }, { "manufacturer": "LUMI", "model": "lumi.remote.b186acn01", "logical_type": "EndDevice" }, { "manufacturer": "IKEA of Sweden", "model": "TRADFRI on/off switch", "logical_type": "EndDevice" }, { "manufacturer": "OSRAM", "model": "Plug 01", "logical_type": "Router" }, { "manufacturer": "Philips", "model": "RWL021", "logical_type": "EndDevice" }, { "manufacturer": "Signify Netherlands B.V.", "model": "LCT015", "logical_type": "Router" }, { "manufacturer": "IKEA of Sweden", "model": "TRADFRI bulb GU10 WS 400lm", "logical_type": "Router" }, { "manufacturer": "IKEA of Sweden", "model": "TRADFRI bulb GU10 WS 400lm", "logical_type": "Router" }, { "manufacturer": "IKEA of Sweden", "model": "TRADFRI bulb GU10 WS 400lm", "logical_type": "Router" }, { "manufacturer": "IKEA of Sweden", "model": "TRADFRI bulb GU10 WS 400lm", "logical_type": "Router" }, { "manufacturer": "Signify Netherlands B.V.", "model": "LCT015", "logical_type": "Router" }, { "manufacturer": "Philips", "model": "RWL021", "logical_type": "EndDevice" }, { "manufacturer": "Signify Netherlands B.V.", "model": "ROM001", "logical_type": "EndDevice" }, { "manufacturer": "IKEA of Sweden", "model": "TRADFRI bulb GU10 WS 400lm", "logical_type": "Router" }, { "manufacturer": "IKEA of Sweden", "model": "TRADFRI bulb GU10 WS 400lm", "logical_type": "Router" }, { "manufacturer": "IKEA of Sweden", "model": "TRADFRI bulb GU10 WS 400lm", "logical_type": "Router" }, { "manufacturer": "IKEA of Sweden", "model": "TRADFRI bulb GU10 WS 400lm", "logical_type": "Router" }, { "manufacturer": "SONOFF", "model": "ZBMINIL2", "logical_type": "EndDevice" } ] } }
Got same instability or completely disconected and down devices like month or so...i will try to get some debug also
Do you need more informations ?
The problem
ZHA stop working every days and I have to reboot to it works again. Logs seems to say that come from home assistant core.
What version of Home Assistant Core has the issue?
2024.8.2
What was the last working version of Home Assistant Core?
2024.7.x
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
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response