Do I need a Xiaomi gateway?

It was working.
I can see my temperature sensors in the Phoscon app, but in Configuration → DeConz, this is what I see:

Temperature1
lumi.sensor_ht
by LUMI
Connected via Phoscon-GW
Firmware: 20160516
(entity unavailable)
sensor.temperature1

So, what changed? Why can’t Home Assistant see the sensors?

You mean unavailable? Either deconz reports the sensor as unavailable or the connection between hass and deconz is down.

But, how can I fix it?

To identify the issue we need to know if it is marked as unreachable in deconz or if you have communications issues between hass and deconz

I’m not sure what you are asking. I can see my temperature sensors in the Phoscon app, and I can control a Tradfri light in the app, but in Configuration - DeConz, I get “Entity Unavailable”. I see nothing in the DeConz log that looks like an error- I can see temperatures and humidity in the log file, but I don’t know what the units are.

Here is the top of the log:

15:33:27:555 GW firmware version: 0x260b0500
15:33:27:555 GW firmware version shall be updated to: 0x262f0500
15:33:35:218 Current channel 15
15:34:35:224 Current channel 15
15:34:37:386 ZCL attribute report 0x000B57FFFECA8702 for cluster 0x0300, ep 0x01
15:35:35:261 Current channel 15
15:35:37:495 dev /dev/ttyAMA0
15:35:37:496 GW firmware version: 0x260b0500
15:35:37:496 GW firmware version shall be updated to: 0x262f0500
15:36:10:921 ZCL attribute report 0x000B57FFFECA8702 for cluster 0x0006, ep 0x01
15:36:10:940 ZCL attribute report 0x000B57FFFECA8702 for cluster 0x0008, ep 0x01
15:36:35:225 Current channel 15
15:37:35:227 Current channel 15
15:37:47:689 dev /dev/ttyAMA0
15:37:47:690 GW firmware version: 0x260b0500
15:37:47:690 GW firmware version shall be updated to: 0x262f0500
15:38:06:842 ZCL attribute report 0x000B57FFFECA8702 for cluster 0x0300, ep 0x01
15:38:35:229 Current channel 15
15:39:17:287 no button map for: lumi.sensor_ht ep: 0x01 cl: 0x0000 cmd: 0x0A pl[0]: 001
15:39:17:287 ZCL attribute report 0x00158D00025559A2 for cluster 0x0000, ep 0x01
15:39:17:287 0x00158D00025559A2 extract Xiaomi special attribute 0xFF01
15:39:17:287 	01 battery 2965 (0x0B95)
15:39:17:287 	04 unknown 5032 (0x13A8)
15:39:17:287 	05 RSSI dB (?) 12 (0x000C)
15:39:17:287 	06 LQI (?) 12884902148 (0x0300000104)
15:39:17:287 	64 temperature 1556
15:39:17:287 	65 humidity 3219
15:39:17:287 	0a unknown 0 (0x0000)
15:39:35:228 Current channel 15
15:39:37:389 ZCL attribute report 0x000B57FFFECA8702 for cluster 0x0300, ep 0x01
15:39:39:455 Announced to internet
15:39:39:456 discovery server date: Fri, 15 Feb 2019 20:39:39 GMT
15:39:39:456 	 local time seems to be ok
15:39:58:711 dev /dev/ttyAMA0
15:39:58:712 GW firmware version: 0x260b0500
15:39:58:712 GW firmware version shall be updated to: 0x262f0500
15:40:35:224 Current channel 15
15:40:51:876 APS-DATA.indication from unknown node 0x00158D00023D2DD2
15:40:51:876 no button map for: lumi.sensor_ht ep: 0x01 cl: 0x0000 cmd: 0x0A pl[0]: 001
15:40:51:876 ZCL attribute report 0x00158D00023D2DD2 for cluster 0x0000, ep 0x01
15:40:51:876 0x00158D00023D2DD2 extract Xiaomi special attribute 0xFF01
15:40:51:876 	01 battery 2985 (0x0BA9)
15:40:51:876 	04 unknown 5032 (0x13A8)
15:40:51:876 	05 RSSI dB (?) 10 (0x000A)
15:40:51:876 	06 LQI (?) 4294967296 (0x0100000000)
15:40:51:876 	64 temperature 2342
15:40:51:876 	65 humidity 2208

Any tips on where to look would be appreciated, even if it’s to remove and reinstall.

Hi @pidiman
How did you intergrate this Xaiomi Temp Humidy Sensor into Home assistant with Raspberry Pi?
Cheers

Which one?
There is a Bluetooth and a zigbee one.

@yan Hi Yes I am after the information for the Bluetooth Temperature and Humidy Device and weather it needs the Hub as I do Not have a hub. I am ready that you can use a Raspberry Pi bluetooth to connect to it however I cannot seem to find info for Pi 3b+

Sorry, can‘t answer that, I only have the zigbee ones.

I guess I’m slow but I can’t figure out what I need to make it work.

I have Xiaomi aqara temperature (cheap square sensor without screen), I run Hassio and I have Nortek HUSBZB-1 zigbee/Zwave dongle.

Can I simply and natively add device in the ZHA panel or do I need an addon like MQTT or something?

Thanks!

You should be able to natively add the sensor in the ZHA panel. I have several of the Xiaomi Aqara temp (and door/window) sensors. Running HA v. 0.104.2 (in docker) with a HUSBZB-1, it is as simple as pressing the button on the sensor to wake it and initiate pairing and then clicking “Add Devices” under the ZHA config section.

I have noticed problems with them dropping out, especially if the HA box reboots, but normally a few presses of the wake button gets everything synced back up.

Thanks for your help. I’ve been doing just that and it never been discovered.

The sensor is currently linked with SmartThings. Do I need to decommission the hub first or I can migrate the sensor while it’s up? Is the pairing procedure different if it’s already bind to anoTher controller?

Yes, you will need to unpair it. I think if you hold the button down for 5+ seconds, it will do a factory reset and then you should be able to pair with the HUSBZB-1.

How how I can pair this round Xiaomi sensor? I can’t do it

Has anyone found a semi-reliable way to keep these from going unavailable with the HUSBZB-1? I added one of the water sensors and it hasn’t stayed connected for more than 10 hours without me having to delete and re-pair it. It is less than 10 feet from a router, and has strong RSSI and LQI numbers before it goes unavailable.

If devices are disconnecting from your HUSBZB-1, consider if you have zigbee/wifi 2.4Gh/cordlessphone/bluetooth/microwave oven interference.

  1. what channel is your wifi on, and is zigbee using default channel?

https://www.metageek.com/training/resources/zigbee-wifi-coexistence.html

  1. is the device paired to the hub, or an intermediate router?

This seems to have resolved itself on my setup. I found an article for Hubitat outlining the issues with these sensors not being able to pair wait many zigbee plugs and I have one of the problem plugs. It was able to finally pair with the HUSBZB-1 and has been stable.

1 Like

The Hubitat community has been through this. The solution is Ikea Tradfri plugs. The Aquara sensors pair with the Ikea plugs and are happy that way. Mine have been running fine for years with no drop offs. Don’t know what’s special about Ikea’s plugs but they work. I think you can use the Tradfri repeaters too but I’m just using the plugs since I needed them.

Yeah. That seemed to have been the consensus on their boards. Someone posted in Reddit the week I was having issues and they had linked to an article in their forum detailing the repeaters that work and those that are problems.

Is this still up to date? I am a Hubitat user, my Xiaomi zigbee sensors are working very well but I’m planning to migrate to Home Assistant and I am doing some research what needs to be done to migrate.
Is this still the best option to connect the Xiaomi sensors to HA? Other solutions?
The setup will be Hass.io on a raspberry. (today I am testing it on my Synology NAS)