- 
                Notifications
    
You must be signed in to change notification settings  - Fork 95
 
Description
Description
On a clean Home Assistant installation, when installing the ZHA integration for a Silicon Labs EFR32MG21 Zigbee module (firmware upgraded from 6.10.3 to 8.0.2), the setup process fails during network formation. Although the device is detected correctly, ZHA cannot complete the installation and reports an error when creating the new network.
Steps to Reproduce
- Start from a fresh Home Assistant docker container.
 - Upgrade the EFR32MG21 module firmware from 6.10.3 to 8.0.2.
 - Restart Home Assistant and navigate to Settings → Devices & Services → Integrations.
 - Click Add Integration and select ZHA.
 - Choose EZSP device path (e.g.  
/dev/ttyUSB1) and proceed with the setup wizard. - At the network formation step, select Create a new network.
 - Observe that ZHA fails during the network formation step, logging a parsing error.
 
Expected Behavior
The ZHA integration should successfully initialize the network and allow pairing of Zigbee devices, as it did with firmware 6.10.3.
Actual Behavior
Network creation fails immediately when starts network formation, producing the following relevant log entries:
2025-05-28 10:46:05.671 DEBUG (MainThread) [zigpy.application] Forming a new network
2025-05-28 10:46:05.672 DEBUG (MainThread) [zigpy.backups] Restoring backup NetworkBackup(version=1, backup_time=2025-05-28 10:46:05.672114+00:00, network_info=…)
2025-05-28 10:46:05.704 DEBUG (MainThread) [bellows.ezsp.protocol] Sending command tokenFactoryReset: () {'excludeOutgoingFC': False, 'excludeBootCounter': False}
…
2025-05-28 10:46:05.848 WARNING (MainThread) [bellows.ezsp.protocol] Failed to parse frame getTokenData: b'0e000000'
Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/bellows/ezsp/protocol.py", line 173, in __call__
    result, data = rx_schema.deserialize(data)
  File "/usr/local/lib/python3.13/site-packages/zigpy/types/struct.py", line 319, in deserialize
    value, data = field_type.deserialize(data)
  File "/usr/local/lib/python3.13/site-packages/zigpy/types/basic.py", line 729, in deserialize
    raise ValueError("Data is too short")
ValueError: Data is too short
2025-05-28 10:46:05.937 WARNING (MainThread) [bellows.ezsp] Failed to parse frame, ignoring
2025-05-28 10:46:17.071 ERROR (MainThread) [aiohttp.server] Error handling request from 172.20.0.10
Environment
- Home Assistant version: 2025.05.3
 - bellows version: 0.45.0
 - zigpy version: 0.79.0
 - Hardware: Silicon Labs EFR32MG21 SoC
 
Full Debug Log
I have attached the complete debug log file (bellows-full-debug.log), which contains all output from the moment Zigpy initializes through the point where the error occurs. This file is approximately 1 000 lines long and may help diagnose the issue in detail.