@dylandonkersgoed wrote:
The ZHA integration does not seem to be picking up my XIaomi Zigbee sensors when adding devices. These are the only Zigbee devices I have currently so I’m not sure whether the issue is specific to these sensors or a general issue. I’ve been searching around trying to find a solution but it seems like what I’m encountering is not typical - mostly people are running into issues either picking up the adapter or after discovering devices.
The specific sensors I’m using are:
- Xiaomi Mijia Smart Home Light Sensor (sorry, hit my limit for links)
- Xiaomi mijia Temperature Humidity Sensor - https://www.aliexpress.com/item/32714410866.html?spm=a2g0s.9042311.0.0.27424c4d0uyM3a
I’ve seen other posts from people successfully using Xiaomi sensors. Sometimes with hiccups, but they’re able to at least connect.
I’m using the the Elelabs Zigbee USB Adapter.
I just updated in the hopes it would fix my issue so I’m on the latest Home Assistant version, 0.110.2. I’m using HomeAssistant on a desktop computer converted into a server via Docker but not using Hass.io.
The USB serial device is passed through to docker. I’m fairly confident the ZHA integration is connecting to and recognizing the device because I added it through the wizard which picked up the device, initially wasn’t able to connect due to the wrong baud rate, and then connected successfully after setting the correct baud rate.
Though I currently have it configured through the wizard I initially had it configured in configuration.yaml using the following configuration. The same values were added in the wizard:
zha: # I know "usb_path" is now deprecated - I used the wizard after updating home assistant partly for this reason. usb_path: /dev/ttyUSB0 database_path: /config/zigbee.db baudrate: 115200
The ZigBee devices overview has picked up a “Silicon Labs EZSP” which I believe is the actual USB dongle.
What I’ve been doing is:
- Clicking the “Add devices” button at /config/zha/dashboard
- Holding the reset button at the top of a sensor for a few seconds until the light starts blinking
- Repeatedly tapping the button once every second or so to keep it awake while waiting near the adapter
- Waiting until the search completes
This is what the screen looks like after searching for devices:
There’s nothing in the logs at /developer-tools/logs related to ZHA after a device search. I do have the debug logs configured. These are the zha-related messages that it gives after booting:
Summary
2020-05-24 18:39:44 DEBUG (MainThread) [zigpy.appdb] Loading application state from /config/zigbee.db 2020-05-24 18:39:44 DEBUG (MainThread) [zigpy.quirks.registry] Checking quirks for None None (d0:cf:5e:ff:fe:54:06:17) 2020-05-24 18:39:44 DEBUG (MainThread) [zigpy.quirks.registry] Considering <class 'bellows.zigbee.application.EZSPCoordinator'> 2020-05-24 18:39:44 DEBUG (MainThread) [zigpy.quirks.registry] Found custom device replacement for d0:cf:5e:ff:fe:54:06:17: <class 'bellows.zigbee.application.EZSPCoordinator'> 2020-05-24 18:39:44 DEBUG (MainThread) [bellows.ezsp] Resetting EZSP 2020-05-24 18:39:46 DEBUG (MainThread) [bellows.ezsp] Send command version: (4,) 2020-05-24 18:39:46 DEBUG (MainThread) [bellows.ezsp] Application frame 0 (version) received: b'06020063' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command version: (6,) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 0 (version) received: b'06020063' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Switched to EZSP protocol version 6 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] EZSP Stack Type: 2, Stack Version: 25344 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command setConfigurationValue: (<EzspConfigId.CONFIG_ADDRESS_TABLE_SIZE: 5>, 16) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 83 (setConfigurationValue) received: b'00' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command setConfigurationValue: (<EzspConfigId.CONFIG_TRUST_CENTER_ADDRESS_CACHE_SIZE: 25>, 2) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 83 (setConfigurationValue) received: b'00' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command setConfigurationValue: (<EzspConfigId.CONFIG_APPLICATION_ZDO_FLAGS: 42>, 3) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 83 (setConfigurationValue) received: b'00' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command setConfigurationValue: (<EzspConfigId.CONFIG_SECURITY_LEVEL: 13>, 5) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 83 (setConfigurationValue) received: b'00' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command setConfigurationValue: (<EzspConfigId.CONFIG_KEY_TABLE_SIZE: 30>, 4) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 83 (setConfigurationValue) received: b'00' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command setConfigurationValue: (<EzspConfigId.CONFIG_INDIRECT_TRANSMISSION_TIMEOUT: 18>, 7680) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 83 (setConfigurationValue) received: b'00' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command setConfigurationValue: (<EzspConfigId.CONFIG_PAN_ID_CONFLICT_REPORT_THRESHOLD: 34>, 2) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 83 (setConfigurationValue) received: b'00' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command setConfigurationValue: (<EzspConfigId.CONFIG_MULTICAST_TABLE_SIZE: 6>, 16) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 83 (setConfigurationValue) received: b'00' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command setConfigurationValue: (<EzspConfigId.CONFIG_MAX_END_DEVICE_CHILDREN: 17>, 32) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 83 (setConfigurationValue) received: b'00' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command setConfigurationValue: (<EzspConfigId.CONFIG_SOURCE_ROUTE_TABLE_SIZE: 26>, 16) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 83 (setConfigurationValue) received: b'00' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command setConfigurationValue: (<EzspConfigId.CONFIG_SUPPORTED_NETWORKS: 45>, 1) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 83 (setConfigurationValue) received: b'00' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command setConfigurationValue: (<EzspConfigId.CONFIG_STACK_PROFILE: 12>, 2) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 83 (setConfigurationValue) received: b'00' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command setConfigurationValue: (<EzspConfigId.CONFIG_END_DEVICE_POLL_TIMEOUT: 19>, 60) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 83 (setConfigurationValue) received: b'00' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command setConfigurationValue: (<EzspConfigId.CONFIG_END_DEVICE_POLL_TIMEOUT_SHIFT: 27>, 8) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 83 (setConfigurationValue) received: b'00' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command setConfigurationValue: (<EzspConfigId.CONFIG_PACKET_BUFFER_COUNT: 1>, 255) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 83 (setConfigurationValue) received: b'00' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command getConfigurationValue: (<EzspConfigId.CONFIG_APS_UNICAST_MESSAGE_COUNT: 3>,) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 82 (getConfigurationValue) received: b'000a00' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.zigbee.application] APS_UNICAST_MESSAGE_COUNT is set to 10 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command addEndpoint: (1, 260, 48879, 0, 0, 1, [], [1280]) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 2 (addEndpoint) received: b'00' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.zigbee.application] Ezsp adding endpoint: [<EzspStatus.SUCCESS: 0>] 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command setConcentrator: (False, <EmberConcentratorType.HIGH_RAM_CONCENTRATOR: 65529>, 600, 1800, 2, 5, 0) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 16 (setConcentrator) received: b'00' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.zigbee.application] Set concentrator type: [<EmberStatus.SUCCESS: 0>] 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command networkInit: () 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 23 (networkInit) received: b'00' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 25 (stackStatusHandler) received: b'90' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command getNetworkParameters: () 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 40 (getNetworkParameters) received: b'0001fcd527c97c5394fbfc76080f0000000000f8ff07' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command setPolicy: (<EzspPolicyId.TC_KEY_REQUEST_POLICY: 5>, <EzspDecisionId.GENERATE_NEW_TC_LINK_KEY: 82>) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 85 (setPolicy) received: b'00' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command setPolicy: (<EzspPolicyId.APP_KEY_REQUEST_POLICY: 6>, <EzspDecisionId.ALLOW_APP_KEY_REQUESTS: 97>) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 85 (setPolicy) received: b'00' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command setPolicy: (<EzspPolicyId.TRUST_CENTER_POLICY: 0>, <EzspDecisionId.ALLOW_PRECONFIGURED_KEY_JOINS: 1>) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 85 (setPolicy) received: b'00' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command getNodeId: () 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 39 (getNodeId) received: b'0000' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command getEui64: () 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 38 (getEui64) received: b'170654feff5ecfd0' 2020-05-24 18:39:47 INFO (MainThread) [zigpy.application] Device 0x0000 (d0:cf:5e:ff:fe:54:06:17) joined the network 2020-05-24 18:39:47 DEBUG (MainThread) [zigpy.application] Skip initialization for existing device d0:cf:5e:ff:fe:54:06:17 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.zigbee.application] EZSP nwk=0x0000, IEEE=d0:cf:5e:ff:fe:54:06:17 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command getConfigurationValue: (<EzspConfigId.CONFIG_MULTICAST_TABLE_SIZE: 6>,) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.zigbee.application] Starting EZSP watchdog 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 82 (getConfigurationValue) received: b'001000' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command getMulticastTableEntry: (0,) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 99 (getMulticastTableEntry) received: b'00000000' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command getMulticastTableEntry: (1,) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 99 (getMulticastTableEntry) received: b'00000000' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command getMulticastTableEntry: (2,) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 99 (getMulticastTableEntry) received: b'00000000' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command getMulticastTableEntry: (3,) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 99 (getMulticastTableEntry) received: b'00000000' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command getMulticastTableEntry: (4,) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 99 (getMulticastTableEntry) received: b'00000000' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command getMulticastTableEntry: (5,) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 99 (getMulticastTableEntry) received: b'00000000' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command getMulticastTableEntry: (6,) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 99 (getMulticastTableEntry) received: b'00000000' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command getMulticastTableEntry: (7,) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 99 (getMulticastTableEntry) received: b'00000000' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command getMulticastTableEntry: (8,) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 99 (getMulticastTableEntry) received: b'00000000' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command getMulticastTableEntry: (9,) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 99 (getMulticastTableEntry) received: b'00000000' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command getMulticastTableEntry: (10,) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 99 (getMulticastTableEntry) received: b'00000000' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command getMulticastTableEntry: (11,) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 99 (getMulticastTableEntry) received: b'00000000' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command getMulticastTableEntry: (12,) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 99 (getMulticastTableEntry) received: b'00000000' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command getMulticastTableEntry: (13,) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 99 (getMulticastTableEntry) received: b'00000000' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command getMulticastTableEntry: (14,) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 99 (getMulticastTableEntry) received: b'00000000' 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Send command getMulticastTableEntry: (15,) 2020-05-24 18:39:47 DEBUG (MainThread) [bellows.ezsp] Application frame 99 (getMulticastTableEntry) received: b'00000000' 2020-05-24 18:39:47 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] Loading battery powered devices 2020-05-24 18:39:47 DEBUG (MainThread) [homeassistant.components.zha.core.gateway] Loading mains powered devices 2020-05-24 18:39:47 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x0000](EZSP): started initialization 2020-05-24 18:39:47 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x0000:ZDO](EZSP): 'async_initialize' stage succeeded 2020-05-24 18:39:47 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x0000](EZSP): power source: Mains 2020-05-24 18:39:47 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x0000](EZSP): completed initialization 2020-05-24 18:39:47 INFO (MainThread) [homeassistant.components.cover] Setting up cover.zha 2020-05-24 18:39:47 INFO (MainThread) [homeassistant.components.lock] Setting up lock.zha 2020-05-24 18:39:47 INFO (MainThread) [homeassistant.components.fan] Setting up fan.zha 2020-05-24 18:39:47 INFO (MainThread) [homeassistant.components.light] Setting up light.zha 2020-05-24 18:39:57 DEBUG (MainThread) [bellows.ezsp] Send command nop: () 2020-05-24 18:39:57 DEBUG (MainThread) [bellows.ezsp] Application frame 5 (nop) received: b'' 2020-05-24 18:40:07 DEBUG (MainThread) [bellows.ezsp] Send command nop: () 2020-05-24 18:40:07 DEBUG (MainThread) [bellows.ezsp] Application frame 5 (nop) received: b'' 2020-05-24 18:40:17 DEBUG (MainThread) [bellows.ezsp] Send command nop: () 2020-05-24 18:40:17 DEBUG (MainThread) [bellows.ezsp] Application frame 5 (nop) received: b'' 2020-05-24 18:40:27 DEBUG (MainThread) [bellows.ezsp] Send command nop: () 2020-05-24 18:40:27 DEBUG (MainThread) [bellows.ezsp] Application frame 5 (nop) received: b'' 2020-05-24 18:40:37 DEBUG (MainThread) [bellows.ezsp] Send command nop: () 2020-05-24 18:40:37 DEBUG (MainThread) [bellows.ezsp] Application frame 5 (nop) received: b'' 2020-05-24 18:40:47 DEBUG (MainThread) [bellows.ezsp] Send command nop: () 2020-05-24 18:40:47 DEBUG (MainThread) [bellows.ezsp] Application frame 5 (nop) received: b'' 2020-05-24 18:40:57 DEBUG (MainThread) [bellows.ezsp] Send command nop: () 2020-05-24 18:40:57 DEBUG (MainThread) [bellows.ezsp] Application frame 5 (nop) received: b'' 2020-05-24 18:41:07 DEBUG (MainThread) [bellows.ezsp] Send command nop: () 2020-05-24 18:41:07 DEBUG (MainThread) [bellows.ezsp] Application frame 5 (nop) received: b'' 2020-05-24 18:41:13 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x0000](EZSP): started initialization 2020-05-24 18:41:13 DEBUG (MainThread) [homeassistant.components.zha.core.channels.base] [0x0000:ZDO](EZSP): 'async_initialize' stage succeeded 2020-05-24 18:41:13 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x0000](EZSP): power source: Mains 2020-05-24 18:41:13 DEBUG (MainThread) [homeassistant.components.zha.core.device] [0x0000](EZSP): completed initialization
Posts: 1
Participants: 1