[ST Edge/Beta] Xiaomi/Aqara/Tuya zigbee sensors driver

Overview

Supported devices

Brand        | Model        | Type                                | Fingerprint
---------------------------------------------------------------------------------------------
Xiaomi       | MCCGQ01LM    | Contact Sensor                      | LUMI/lumi.sensor_magnet
Aqara        | MCCGQ11LM    | Contact Sensor                      | LUMI/lumi.sensor_magnet.aq2
Aqara        | RTCGQ11LM    | Motion and Illuminance sensor       | LUMI/lumi.sensor_motion.aq2
Tuya         | QWS-001      | LCD Temperature and Humidity Sensor | _TZE200_bq5c8xfe/TS0601
Tuya         | CX-0726      | LCD Temperature and Humidity Sensor | _TZE200_qoy0ekbd/TS0601

Invitation

Please install

Zigbee Sensors Edge Driver [YG] from the following channel

Pairing Xiaomi devices

Xiaomi sensors might have an issue paring.
Since those are sleepy devices, it is somethines required to wake them up during pairing.

  1. Put the hub into paring mode
  2. Long press a button on device until is starts blinking
  3. Release the button, wait for the device to stop blinking
  4. Short press button with the same time interval to prevent device going into sleeping mode

Note the led, press button only if the led is off.
It may take several attempts to successfully pair them.

Devices

Contact Sensors

Please note, Aqara E1 MCCGQ14LM (lumi.magnet.acn001) sensor is not supported.


Mijia Door & Window Sensor MCCGQ01LM Aqara Door & Window Sensor MCCGQ11LM


In addition to contact sensor status and battery, the detailed view will show original (unmodified) battery voltage readings, received from the device and signal strength.

The driver allows to change icon for your contact sensor.

The supported icons are:

  • contact sensor (this is the default)
  • switch
  • lock
  • door bell
  • refrigerator

Motion Sensors


Motion and Illuminance Sensor RTCGQ11LM

Aqara does not send a message when motion is no longer detected.

Therefore, the device has configurable (in settings) no motion interval.

After motion is detected, the sensor will go back to no motion after specified period of time, unless a new motion is detected.

Temperature and Humidity Sensor

(Since v1.2)



Tuya LCD Temperature and Humidity Sensor QWS-001 Tuya LCD Temperature and Humidity Sensor CX-0726

Supported capabilities:

  • temperatureMeasurement
  • relativeHumidityMeasurement
  • battery
  • signalStrength

Change log

v1.3 2022-05-16T21:16:58.594953

  1. Add support for Tuya Temperature Humidity sensor CX-0726

v1.2 2022-03-05T12:344:17.571490Z

  1. Add support for Tuya Temperature Humidity sensor QWS-001

v1.1 2021-12-10T20:01:20.394087

  1. Add support for Aqara Motion and Luminance sensor RTCGQ11LM
  2. Remove fingerprint for MCCGQ14LM contact sensor ( see Supporting new E1 Aqara devices for details)

Cheers,
Yakov

6 Likes

Hi Yakov,

Thank you for adding lumi.sensor_magnet.aq2 to the driver. I will test it later today and let you know if it works.

1 Like

@ygerlovin
Thank for your driver , i used it since one week and its working great .

Is it possible to add an option to change the icon.

I use those door sensor with some micro switch , solder wire inside the sensor , so i have put one micro switch on my patio door lock , so then it show me if the patio door is lock or unlock.
Or to trigger the mailbox door …

Thank you

1 Like

Thank you for the driver, lumi.sensor_magnet.aq2 is working fine.

I now got quite a few sensors to change from old DTH to the new edge driver :slightly_smiling_face:

@Sylvain ,
What icons do you need?
Also, I think in some forum it was mentioned that lumi.sensor_magnet.aq2 supports temperature measurement. Do you happen to know anything about it?

Great @JP3000 , thanks for the update

Hi, I don’t think it supports temperature.

No it does’nt support temperature.

Of course i would like to have to lock unlock icon and door bell .

Im not shure if the other icon is availlable in smarthings .
Freezer , mail box door open closed .

for my drivers, I regularly look into repo by Koenkk/zigbee-herdsman-converters/

it seems they use Xiaomi response for (rough) temperature readings

another useful resource is Xiaomi MCCGQ11LM control via MQTT | Zigbee2MQTT
I believe it’s a documentation for MQTT project

1 Like

@JP3000

Strange.
The log you provided
“\x01\x21\xC7\x0B \x03\x28\x1B \x04\x21\xA8\x01\x05\x21\x45\x06\x06\x24\x00\x00\x00\x00\x00\x0A\x21\xC4\x4A\x64\x10\x01”

I could bet x1B corresponds to 27 degrees Celcius ( 03 probably a temperature tag and 28 is uint8 type).
I think it is a temperature, just not officially supported. Perhaps due to reliability/precision issues.
Can’t think what else could it be, if not temperature

yes, \03 is definitely a temperature reading.

1 Like

The room temperature is around 20 degrees at the moment, when pairing the device it would report slightly higher as it can be in my hand.

I’m happy to send more logs if it helps.

@veonua ,
Thanks, even though I doubt 05/06 corresponds to LQI/RSSI for contact sensor, based on the logs I’ve seen
06 is 5 bytes long, seems unnecessary for LQI. Also, the values does not correlate to values, received on lower layer

Here are logs from two different door sensors, the first one is in a room where the temperature is 20c and the second one is in 14c room

┌───┬──────────────────────────────────────┬─────────────────────────────────┐
│ # │ Driver Id │ Name │
├───┼──────────────────────────────────────┼─────────────────────────────────┤
│ 1 │ 0fd9a9a4-8863-4a83-97a7-5a288ff0f5a6 │ Virtual Devices V2 │
│ 2 │ efbe7be3-ab36-46eb-86e8-53ac056a1cec │ Zigbee Light Multifunction Mc │
│ 3 │ d620900d-f7bc-4ab5-a171-6dd159872f7d │ Zigbee Motion Sensor │
│ 4 │ 92f39ab3-7b2f-47ee-94a7-ba47c4ee8a47 │ Zigbee Power/Meter │
│ 5 │ 5ab64dc7-5d08-44a4-9806-5a5b823a18d2 │ Zigbee Sensors Edge Driver [YG] │
│ 6 │ b36f1d7a-1144-4a1d-bf8b-f7d69dee8909 │ Zigbee Switch Mc │
│ 7 │ 7fcf0d61-252d-4152-b001-a9901011acf5 │ Zigbee Temp Humidity Sensor Mc │
│ 8 │ f82dec82-e5fa-487f-8f0f-22c3e4a8bd89 │ Zigbee Water Leak Sensor │
└───┴──────────────────────────────────────┴─────────────────────────────────┘
? Select a driver. 5
2021-11-20T08:45:18.135227209+00:00 TRACE Zigbee Sensors Edge Driver [YG] Received event with handler zigbee
2021-11-20T08:45:18.141448376+00:00 INFO Zigbee Sensors Edge Driver [YG] <ZigbeeDevice: 35ed896f-0d16-4b5a-8054-662ff43a351a [0xA892] (LR window)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0xA892, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: Basic >, lqi: 0xD9, rssi: -56, body_length: 0x0040, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x1C, mfg_code: 0x115F, seqno: 0x53, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0x0005, DataType: CharString, ModelIdentifier: “lumi.sensor_magnet.aq2” >, < AttributeRecord || AttributeId: 0xFF01, DataType: CharString, CharString: “\x01\x21\x9F\x0B\x03\x28\x17\x04\x21\xA8\x33\x05\x21\x64\x00\x06\x24\x04\x00\x03\x00\x00\x0A\x21\xE4\xA1\x64\x10\x00” > > > >
2021-11-20T08:45:18.152593918+00:00 DEBUG Zigbee Sensors Edge Driver [YG] xiaomi_contact_can_handle(): true ‘LR window’ LUMI/lumi.sensor_magnet.aq2
2021-11-20T08:45:18.155921501+00:00 DEBUG Zigbee Sensors Edge Driver [YG] xiaomi_contact_can_handle(): true ‘LR window’ LUMI/lumi.sensor_magnet.aq2
2021-11-20T08:45:18.159649543+00:00 DEBUG Zigbee Sensors Edge Driver [YG] xiaomi_contact_can_handle(): true ‘LR window’ LUMI/lumi.sensor_magnet.aq2
2021-11-20T08:45:18.163010959+00:00 TRACE Zigbee Sensors Edge Driver [YG] Found ZigbeeMessageDispatcher handler in Zigbee sensors driver → Zigbee Xiaomi Contact Sensor
2021-11-20T08:45:18.166017543+00:00 INFO Zigbee Sensors Edge Driver [YG] Executing ZclClusterAttributeValueHandler: cluster: Basic, attribute: ModelIdentifier
2021-11-20T08:45:18.172837876+00:00 WARN Zigbee Sensors Edge Driver [YG] XiaomiContactSensor.model_id(){byte_length=22, field_name=“ModelIdentifier”, value=“lumi.sensor_magnet.aq2”} {address_header={cluster={byte_length=2, field_name=“cluster”, value=0}, dest_addr={byte_length=2, field_name=“dest_addr”, value=0}, dest_endpoint={byte_length=1, field_name=“dest_endpoint”, value=1}, profile={byte_length=2, field_name=“profile”, value=260}, src_addr={byte_length=2, field_name=“src_addr”, value=43154}, src_endpoint={byte_length=1, field_name=“src_endpoint”, value=1}}, body={zcl_body={attr_records={{attr_id={byte_length=2, value=5}, data={byte_length=22, field_name=“ModelIdentifier”, value=“lumi.sensor_magnet.aq2”}, data_type={byte_length=1, value=66}}, {attr_id={byte_length=2, value=65281}, data={byte_length=29, value="\x01\x21\x9F\x0B\x03\x28\x17\x04\x21\xA8\x33\x05\x21\x64\x00\x06\x24\x04\x00\x03\x00\x00\x0A\x21\xE4\xA1\x64\x10\x00"}, data_type={byte_length=1, value=66}}}}, zcl_header={cmd={byte_length=1, value=10}, frame_ctrl={byte_length=1, field_name=“frame_ctrl”, value=28}, mfg_code={byte_length=2, field_name=“mfg_code”, value=4447}, seqno={byte_length=1, field_name=“seqno”, value=83}}}, body_length={byte_length=2, field_name=“body_length”, value=64}, lqi={byte_length=1, field_name=“lqi”, value=217}, rssi={byte_length=1, field_name=“rssi”, value=-56}, type={byte_length=1, field_name=“type”, value=0}}: ‘LR window’ 35ed896f-0d16-4b5a-8054-662ff43a351a
2021-11-20T08:45:18.176744751+00:00 TRACE Zigbee Sensors Edge Driver [YG] Found ZigbeeMessageDispatcher handler in Zigbee sensors driver → Zigbee Xiaomi Contact Sensor
2021-11-20T08:45:18.179833126+00:00 INFO Zigbee Sensors Edge Driver [YG] Executing ZclClusterAttributeValueHandler: cluster: Basic, attribute: 0xFF01
2021-11-20T08:45:18.186851376+00:00 WARN Zigbee Sensors Edge Driver [YG] XiaomiContactSensor.report_ff01(){byte_length=29, value="\x01\x21\x9F\x0B\x03\x28\x17\x04\x21\xA8\x33\x05\x21\x64\x00\x06\x24\x04\x00\x03\x00\x00\x0A\x21\xE4\xA1\x64\x10\x00"} {address_header={cluster={byte_length=2, field_name=“cluster”, value=0}, dest_addr={byte_length=2, field_name=“dest_addr”, value=0}, dest_endpoint={byte_length=1, field_name=“dest_endpoint”, value=1}, profile={byte_length=2, field_name=“profile”, value=260}, src_addr={byte_length=2, field_name=“src_addr”, value=43154}, src_endpoint={byte_length=1, field_name=“src_endpoint”, value=1}}, body={zcl_body={attr_records={{attr_id={byte_length=2, value=5}, data={byte_length=22, field_name=“ModelIdentifier”, value=“lumi.sensor_magnet.aq2”}, data_type={byte_length=1, value=66}}, {attr_id={byte_length=2, value=65281}, data={byte_length=29, value="\x01\x21\x9F\x0B\x03\x28\x17\x04\x21\xA8\x33\x05\x21\x64\x00\x06\x24\x04\x00\x03\x00\x00\x0A\x21\xE4\xA1\x64\x10\x00"}, data_type={byte_length=1, value=66}}}}, zcl_header={cmd={byte_length=1, value=10}, frame_ctrl={byte_length=1, field_name=“frame_ctrl”, value=28}, mfg_code={byte_length=2, field_name=“mfg_code”, value=4447}, seqno={byte_length=1, field_name=“seqno”, value=83}}}, body_length={byte_length=2, field_name=“body_length”, value=64}, lqi={byte_length=1, field_name=“lqi”, value=217}, rssi={byte_length=1, field_name=“rssi”, value=-56}, type={byte_length=1, field_name=“type”, value=0}}: ‘LR window’ 35ed896f-0d16-4b5a-8054-662ff43a351a
2021-11-20T08:45:18.191183501+00:00 DEBUG Zigbee Sensors Edge Driver [YG] attr=<XiaomiAttributeRecord: attr_id=0x01 data_type=0x21 data=2975>
2021-11-20T08:45:18.194696209+00:00 INFO Zigbee Sensors Edge Driver [YG] <ZigbeeDevice: 35ed896f-0d16-4b5a-8054-662ff43a351a [0xA892] (LR window)> emitting event: {“attribute_id”:“battery”,“component_id”:“main”,“state”:{“value”:95},“capability_id”:“battery”}
2021-11-20T08:45:18.207699293+00:00 INFO Zigbee Sensors Edge Driver [YG] <ZigbeeDevice: 35ed896f-0d16-4b5a-8054-662ff43a351a [0xA892] (LR window)> emitting event: {“attribute_id”:“voltage”,“component_id”:“main”,“state”:{“value”:2.975,“unit”:“V”},“capability_id”:“voltageMeasurement”}
2021-11-20T08:45:18.219976168+00:00 DEBUG Zigbee Sensors Edge Driver [YG] attr=<XiaomiAttributeRecord: attr_id=0x03 data_type=0x28 data=23>
2021-11-20T08:45:18.224035043+00:00 DEBUG Zigbee Sensors Edge Driver [YG] attr=<XiaomiAttributeRecord: attr_id=0x04 data_type=0x21 data=13224>
2021-11-20T08:45:18.227387209+00:00 DEBUG Zigbee Sensors Edge Driver [YG] attr=<XiaomiAttributeRecord: attr_id=0x05 data_type=0x21 data=100>
2021-11-20T08:45:18.230930668+00:00 DEBUG Zigbee Sensors Edge Driver [YG] attr=<XiaomiAttributeRecord: attr_id=0x06 data_type=0x24 data=196612>
2021-11-20T08:45:18.234024626+00:00 DEBUG Zigbee Sensors Edge Driver [YG] attr=<XiaomiAttributeRecord: attr_id=0x0A data_type=0x21 data=41444>
2021-11-20T08:45:18.237534668+00:00 DEBUG Zigbee Sensors Edge Driver [YG] attr=<XiaomiAttributeRecord: attr_id=0x64 data_type=0x10 data=false>
2021-11-20T08:45:18.240916751+00:00 INFO Zigbee Sensors Edge Driver [YG] <ZigbeeDevice: 35ed896f-0d16-4b5a-8054-662ff43a351a [0xA892] (LR window)> emitting event: {“attribute_id”:“contact”,“component_id”:“main”,“state”:{“value”:“closed”},“capability_id”:“contactSensor”}
2021-11-20T08:45:18.251697334+00:00 DEBUG Zigbee Sensors Edge Driver [YG] Aqara Contact Sensor device thread event handled
listening for logs… done

┌───┬──────────────────────────────────────┬─────────────────────────────────┐
│ # │ Driver Id │ Name │
├───┼──────────────────────────────────────┼─────────────────────────────────┤
│ 1 │ 0fd9a9a4-8863-4a83-97a7-5a288ff0f5a6 │ Virtual Devices V2 │
│ 2 │ efbe7be3-ab36-46eb-86e8-53ac056a1cec │ Zigbee Light Multifunction Mc │
│ 3 │ d620900d-f7bc-4ab5-a171-6dd159872f7d │ Zigbee Motion Sensor │
│ 4 │ 92f39ab3-7b2f-47ee-94a7-ba47c4ee8a47 │ Zigbee Power/Meter │
│ 5 │ 5ab64dc7-5d08-44a4-9806-5a5b823a18d2 │ Zigbee Sensors Edge Driver [YG] │
│ 6 │ b36f1d7a-1144-4a1d-bf8b-f7d69dee8909 │ Zigbee Switch Mc │
│ 7 │ 7fcf0d61-252d-4152-b001-a9901011acf5 │ Zigbee Temp Humidity Sensor Mc │
│ 8 │ f82dec82-e5fa-487f-8f0f-22c3e4a8bd89 │ Zigbee Water Leak Sensor │
└───┴──────────────────────────────────────┴─────────────────────────────────┘
? Select a driver. 5
2021-11-20T08:48:00.607386157+00:00 TRACE Zigbee Sensors Edge Driver [YG] Received event with handler zigbee
2021-11-20T08:48:00.647524282+00:00 INFO Zigbee Sensors Edge Driver [YG] <ZigbeeDevice: 21c085e1-0124-4fa7-b1af-4a6c60d9ce5c [0xCAFA] (Garage Door 1)> received Zigbee message: < ZigbeeMessageRx || type: 0x00, < AddressHeader || src_addr: 0xCAFA, src_endpoint: 0x01, dest_addr: 0x0000, dest_endpoint: 0x01, profile: 0x0104, cluster: Basic >, lqi: 0xFD, rssi: -67, body_length: 0x0040, < ZCLMessageBody || < ZCLHeader || frame_ctrl: 0x1C, mfg_code: 0x115F, seqno: 0x01, ZCLCommandId: 0x0A >, < ReportAttribute || < AttributeRecord || AttributeId: 0x0005, DataType: CharString, ModelIdentifier: “lumi.sensor_magnet.aq2” >, < AttributeRecord || AttributeId: 0xFF01, DataType: CharString, CharString: “\x01\x21\x7B\x0C\x03\x28\x15\x04\x21\xA8\x33\x05\x21\x1A\x00\x06\x24\x07\x00\x00\x00\x00\x0A\x21\xD2\xEE\x64\x10\x01” > > > >
2021-11-20T08:48:00.672924532+00:00 DEBUG Zigbee Sensors Edge Driver [YG] xiaomi_contact_can_handle(): true ‘Garage Door 1’ LUMI/lumi.sensor_magnet.aq2
2021-11-20T08:48:00.679361199+00:00 DEBUG Zigbee Sensors Edge Driver [YG] xiaomi_contact_can_handle(): true ‘Garage Door 1’ LUMI/lumi.sensor_magnet.aq2
2021-11-20T08:48:00.692984074+00:00 DEBUG Zigbee Sensors Edge Driver [YG] xiaomi_contact_can_handle(): true ‘Garage Door 1’ LUMI/lumi.sensor_magnet.aq2
2021-11-20T08:48:00.696286949+00:00 TRACE Zigbee Sensors Edge Driver [YG] Found ZigbeeMessageDispatcher handler in Zigbee sensors driver → Zigbee Xiaomi Contact Sensor
2021-11-20T08:48:00.700559616+00:00 INFO Zigbee Sensors Edge Driver [YG] Executing ZclClusterAttributeValueHandler: cluster: Basic, attribute: ModelIdentifier
2021-11-20T08:48:00.722531032+00:00 WARN Zigbee Sensors Edge Driver [YG] XiaomiContactSensor.model_id(){byte_length=22, field_name=“ModelIdentifier”, value=“lumi.sensor_magnet.aq2”} {address_header={cluster={byte_length=2, field_name=“cluster”, value=0}, dest_addr={byte_length=2, field_name=“dest_addr”, value=0}, dest_endpoint={byte_length=1, field_name=“dest_endpoint”, value=1}, profile={byte_length=2, field_name=“profile”, value=260}, src_addr={byte_length=2, field_name=“src_addr”, value=51962}, src_endpoint={byte_length=1, field_name=“src_endpoint”, value=1}}, body={zcl_body={attr_records={{attr_id={byte_length=2, value=5}, data={byte_length=22, field_name=“ModelIdentifier”, value=“lumi.sensor_magnet.aq2”}, data_type={byte_length=1, value=66}}, {attr_id={byte_length=2, value=65281}, data={byte_length=29, value="\x01\x21\x7B\x0C\x03\x28\x15\x04\x21\xA8\x33\x05\x21\x1A\x00\x06\x24\x07\x00\x00\x00\x00\x0A\x21\xD2\xEE\x64\x10\x01"}, data_type={byte_length=1, value=66}}}}, zcl_header={cmd={byte_length=1, value=10}, frame_ctrl={byte_length=1, field_name=“frame_ctrl”, value=28}, mfg_code={byte_length=2, field_name=“mfg_code”, value=4447}, seqno={byte_length=1, field_name=“seqno”, value=1}}}, body_length={byte_length=2, field_name=“body_length”, value=64}, lqi={byte_length=1, field_name=“lqi”, value=253}, rssi={byte_length=1, field_name=“rssi”, value=-67}, type={byte_length=1, field_name=“type”, value=0}}: ‘Garage Door 1’ 21c085e1-0124-4fa7-b1af-4a6c60d9ce5c
2021-11-20T08:48:00.728459116+00:00 TRACE Zigbee Sensors Edge Driver [YG] Found ZigbeeMessageDispatcher handler in Zigbee sensors driver → Zigbee Xiaomi Contact Sensor
2021-11-20T08:48:00.734475907+00:00 INFO Zigbee Sensors Edge Driver [YG] Executing ZclClusterAttributeValueHandler: cluster: Basic, attribute: 0xFF01
2021-11-20T08:48:00.745368282+00:00 WARN Zigbee Sensors Edge Driver [YG] XiaomiContactSensor.report_ff01(){byte_length=29, value="\x01\x21\x7B\x0C\x03\x28\x15\x04\x21\xA8\x33\x05\x21\x1A\x00\x06\x24\x07\x00\x00\x00\x00\x0A\x21\xD2\xEE\x64\x10\x01"} {address_header={cluster={byte_length=2, field_name=“cluster”, value=0}, dest_addr={byte_length=2, field_name=“dest_addr”, value=0}, dest_endpoint={byte_length=1, field_name=“dest_endpoint”, value=1}, profile={byte_length=2, field_name=“profile”, value=260}, src_addr={byte_length=2, field_name=“src_addr”, value=51962}, src_endpoint={byte_length=1, field_name=“src_endpoint”, value=1}}, body={zcl_body={attr_records={{attr_id={byte_length=2, value=5}, data={byte_length=22, field_name=“ModelIdentifier”, value=“lumi.sensor_magnet.aq2”}, data_type={byte_length=1, value=66}}, {attr_id={byte_length=2, value=65281}, data={byte_length=29, value="\x01\x21\x7B\x0C\x03\x28\x15\x04\x21\xA8\x33\x05\x21\x1A\x00\x06\x24\x07\x00\x00\x00\x00\x0A\x21\xD2\xEE\x64\x10\x01"}, data_type={byte_length=1, value=66}}}}, zcl_header={cmd={byte_length=1, value=10}, frame_ctrl={byte_length=1, field_name=“frame_ctrl”, value=28}, mfg_code={byte_length=2, field_name=“mfg_code”, value=4447}, seqno={byte_length=1, field_name=“seqno”, value=1}}}, body_length={byte_length=2, field_name=“body_length”, value=64}, lqi={byte_length=1, field_name=“lqi”, value=253}, rssi={byte_length=1, field_name=“rssi”, value=-67}, type={byte_length=1, field_name=“type”, value=0}}: ‘Garage Door 1’ 21c085e1-0124-4fa7-b1af-4a6c60d9ce5c
2021-11-20T08:48:00.759095782+00:00 DEBUG Zigbee Sensors Edge Driver [YG] attr=<XiaomiAttributeRecord: attr_id=0x01 data_type=0x21 data=3195>
2021-11-20T08:48:00.765721116+00:00 INFO Zigbee Sensors Edge Driver [YG] <ZigbeeDevice: 21c085e1-0124-4fa7-b1af-4a6c60d9ce5c [0xCAFA] (Garage Door 1)> emitting event: {“attribute_id”:“battery”,“component_id”:“main”,“state”:{“value”:100},“capability_id”:“battery”}
2021-11-20T08:48:00.779057407+00:00 INFO Zigbee Sensors Edge Driver [YG] <ZigbeeDevice: 21c085e1-0124-4fa7-b1af-4a6c60d9ce5c [0xCAFA] (Garage Door 1)> emitting event: {“attribute_id”:“voltage”,“component_id”:“main”,“state”:{“value”:3.195,“unit”:“V”},“capability_id”:“voltageMeasurement”}
2021-11-20T08:48:00.802142157+00:00 DEBUG Zigbee Sensors Edge Driver [YG] attr=<XiaomiAttributeRecord: attr_id=0x03 data_type=0x28 data=21>
2021-11-20T08:48:00.805578907+00:00 DEBUG Zigbee Sensors Edge Driver [YG] attr=<XiaomiAttributeRecord: attr_id=0x04 data_type=0x21 data=13224>
2021-11-20T08:48:00.811797616+00:00 DEBUG Zigbee Sensors Edge Driver [YG] attr=<XiaomiAttributeRecord: attr_id=0x05 data_type=0x21 data=26>
2021-11-20T08:48:00.814936574+00:00 DEBUG Zigbee Sensors Edge Driver [YG] attr=<XiaomiAttributeRecord: attr_id=0x06 data_type=0x24 data=7>
2021-11-20T08:48:00.820574407+00:00 DEBUG Zigbee Sensors Edge Driver [YG] attr=<XiaomiAttributeRecord: attr_id=0x0A data_type=0x21 data=61138>
2021-11-20T08:48:00.832823866+00:00 DEBUG Zigbee Sensors Edge Driver [YG] attr=<XiaomiAttributeRecord: attr_id=0x64 data_type=0x10 data=true>
2021-11-20T08:48:00.836476074+00:00 INFO Zigbee Sensors Edge Driver [YG] <ZigbeeDevice: 21c085e1-0124-4fa7-b1af-4a6c60d9ce5c [0xCAFA] (Garage Door 1)> emitting event: {“attribute_id”:“contact”,“component_id”:“main”,“state”:{“value”:“open”},“capability_id”:“contactSensor”}
2021-11-20T08:48:00.851121991+00:00 DEBUG Zigbee Sensors Edge Driver [YG] Aqara Contact Sensor device thread event handled
listening for logs… done

@JP3000 thanks for sharing.
So, LR window reports 23, while Garage Door 1 reports 21.
Not only the readings are incorrect, but also the differences does not match (20-14=6 vs 23-21=2).
It doesn’t seem like it is worth to add temperature measurement capability to the sensor.

@ygerlovin
I was thinking i also have one door sensor attach to a wall switch.
So if you can also add a switch icon
Thank you

@Sylvain ,

The problem is that currently the platform lacks the ability to change only an icon. It requires definition of complete profile with only icon changed. It makes the driver very hard to maintain and extend.

Even though I’ve got it working, I’m concerned about future support and maintenance.

Have you considered to use virtual devices? There are a lot of icons to choose

@ygerlovin
Thanks for the explanation .Thats ok for me
Thats good idea i will take a look.
Thank you

Hi @Sylvain ,

Since it is not possible to remove profiles once added to the driver, even though it was not published on the public channel, I decided to publish the new version that allows changing the icon for the contact sensor.

The supported icons are:

  • contact sensor (this is the default)
  • switch
  • lock
  • door bell
  • refrigerator

Regards,
Yakov

Hi @ygerlovin
Wow thank you very much…

Perfect , small problem with the refresh of the app , icon showing up if i leave the app and the app still running in background when i come back in the app
Icon is switching back to default . I need to closed the app so it wont run in background .

But i saw that with another driver that i can replace the icon to. So the probleme is on smartthings side i thinks

Anyway i like it
Thank you Sylvain