shorty707
(Shorty707)
January 11, 2021, 12:12pm
1
Hi
after upgrading to OH3 my Aqara Temp Sensor stopped reporting.
I deleted the Thing and just hit Scan again.
The thing was found again.
However it is not discovered with less channels.
Battery and Link Quality is gone.
chris
(Chris Jackson)
January 11, 2021, 12:22pm
2
I don’t think those channels exist do they - neither in OH3 or OH2?
There is no link quality channel unless it’s a special channel for this device? And if I remember correctly, the Xiaomi devices use some non standard battery reporting, so this is not available as per the following -:
opened 11:08AM - 18 Dec 19 UTC
device-specific
Xiaomi devices seem to have manufacturer specific attribute (0xFF01) under Basic… cluster. It was already discussed here:
https://github.com/dresden-elektronik/deconz-rest-plugin/issues/42
https://github.com/athombv/homey/issues/2165
It's recognized as CHARACTER_STRING data type, but it's wrong:
`2019-12-18 13:26:06.017 [DEBUG] [transaction.ZigBeeTransactionManager] - notifyTransactionCommand: ReportAttributesCommand [Basic: 33543/1 -> 0/1, cluster=0000, TID=CD, reports=[Attribute Report: attributeDataType=CHARACTER_STRING, attributeIdentifier=65281, attributeValue=(&! ]] `
Any ideas how to add support for this?
Here are received data structures extracted from the logs:
### Xiaomi Water Leak Detector
_lumi.sensor_wleak.aq1_
raw | id | zcl type | value | comment
----|---|---------|------|--------
01 21 9F 0B | 1 | 33 (UNSIGNED_16_BIT_INTEGER) | 2975 | 2.975V (battery)
03 28 1E | 3 | 40 (SIGNED_8_BIT_INTEGER) | 30
04 21 A8 13 | 4 | 33 (UNSIGNED_16_BIT_INTEGER) | 5032
05 21 3B 00 | 5 | 33 (UNSIGNED_16_BIT_INTEGER) | 59
06 24 01 00 00 00 00 | 6 | 36 (UNSIGNED_40_BIT_INTEGER) | 0x0100000000
08 21 04 02 | 8 | 33 (UNSIGNED_16_BIT_INTEGER) | 516
0A 21 00 00 | 10 | 33 (UNSIGNED_16_BIT_INTEGER) | 0
64 10 01 | 100 | 16 (Boolean) | 1 | on/off state
### Xiaomi Temperature and Humidity Sensor
_lumi.weather_
raw | id | zcl type | value | comment
----|---|---------|------|--------
01 21 9F 0B | 1 | 33 (UNSIGNED_16_BIT_INTEGER) | 2975 | 2.975V (battery)
04 21 A8 13 | 4 | 33 (UNSIGNED_16_BIT_INTEGER) | 5032
05 21 15 00 | 5 | 33 (UNSIGNED_16_BIT_INTEGER) | 21
06 24 01 00 00 00 00 | 6 | 36 (UNSIGNED_40_BIT_INTEGER) | 0x0100000000
0A 21 00 00 | 10 | 33 (UNSIGNED_16_BIT_INTEGER) | 0
64 29 0F 04 | 100 | 41 (SIGNED_16_BIT_INTEGER) | 1039 | 10.39°C
65 21 49 12 | 101 | 33 (UNSIGNED_16_BIT_INTEGER) | 4681 | 46.81% RH
66 2B 95 85 01 00 | 102 | 43 (SIGNED_32_BIT_INTEGER) | 99733 | 997.33 hPa
### Xiaomi Wireless Relay
_lumi.relay.c2acn01_
raw | id | zcl type | value | comment
----|---|---------|------|--------
03 28 24 | 3 | 40 (SIGNED_8_BIT_INTEGER) | 36
05 21 09 00 | 5 | 33 (UNSIGNED_16_BIT_INTEGER) | 9
07 27 00 00 00 00 00 00 00 00 | 7 | 39 (UNSIGNED_64_BIT_INTEGER) | 0
08 21 23 12 | 8 | 33 (UNSIGNED_16_BIT_INTEGER) | 4643
09 21 00 01 | 9 | 33 (UNSIGNED_16_BIT_INTEGER) | 256
64 10 01 | 100 | 16 (Boolean) | 1 | on/off state
65 10 00 | 101 | 16 (Boolean) | 0 | on/off state
6E 20 01 | 110 | 32 (UNSIGNED_8_BIT_INTEGER) | 1
6F 20 00 | 111 | 32 (UNSIGNED_8_BIT_INTEGER) | 0
94 20 4F | 148 | 32 (UNSIGNED_8_BIT_INTEGER) | 79
95 39 66 66 66 3D | 149 | 57 (FLOAT_32_BIT) | 0.056250
96 39 51 6A 0B 45 | 150 | 57 (FLOAT_32_BIT) | 2230.644775 | voltage
97 39 A3 20 A5 3D | 151 | 57 (FLOAT_32_BIT) | 0.080629
98 39 25 AF 63 41 | 152 | 57 (FLOAT_32_BIT) | 14.230260
9B 21 00 00 | 155 | 33 (UNSIGNED_16_BIT_INTEGER) | 0
There are at least 4 different ways to get this sensor integrated into OpenHAB.
zigbee-binding (from @chris )
mi-home binding (you need the mi-gateway then)
mi-io binding (you need the mi-gateway then)
mqtt-binding with zigbee2mqtt
There may be different channels regarding which way you use.
Are you sure you used the zigbee-binding in the old installation?
The screenshot you posted, is from zigbee2mqtt for example.