Generic Tuya Contact + temp zigbee device

I have added Third Reality 3RDS17BZ contact sensor fingerprint to this driver.

Can someone confirm whether the battery reporting configuration works with this device?

1 Like

@kkossev Here are the logs from contact open/Close Sensor. This new driver was the only one installed on HE (deleted all other TYUA drivers)
Some issues:

  • I paired the device with contact closed. But pair, the open/close seems reversed
  • LUX value doesn't seem to show up as well
  • This sensor sends two events for every close/open. Need to ignore the 2nd event
  • Also see few "Not Parsed" messages in the logs [00, 27, 65, 02, 00, 04, 00, 00, 00, 00] is the LUX message that is not getting parsed.
Summary

dev:2802023-02-17 10:55:33.446 PMinfoGarage Door Sensor Contact is open

dev:2802023-02-17 10:55:33.443 PMtraceGarage Door Sensor dp_id=1 dp=1 fncmd=0 fncmd_len=1 (index=0)

dev:2802023-02-17 10:55:33.441 PMdebugGarage Door Sensor parse() descMap = [raw:catchall: 0104 EF00 01 01 0040 00 B4CC 01 00 0000 02 01 002C0101000100, profileId:0104, clusterId:EF00, clusterInt:61184, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:B4CC, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:01, data:[00, 2C, 01, 01, 00, 01, 00]] (description=catchall: 0104 EF00 01 01 0040 00 B4CC 01 00 0000 02 01 002C0101000100)

dev:2802023-02-17 10:55:28.687 PMinfoGarage Door Sensor Contact is open

dev:2802023-02-17 10:55:28.685 PMtraceGarage Door Sensor dp_id=1 dp=1 fncmd=0 fncmd_len=1 (index=0)

dev:2802023-02-17 10:55:28.682 PMdebugGarage Door Sensor parse() descMap = [raw:catchall: 0104 EF00 01 01 0040 00 B4CC 01 00 0000 02 01 002B0101000100, profileId:0104, clusterId:EF00, clusterInt:61184, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:B4CC, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:01, data:[00, 2B, 01, 01, 00, 01, 00]] (description=catchall: 0104 EF00 01 01 0040 00 B4CC 01 00 0000 02 01 002B0101000100)

dev:2802023-02-17 10:55:28.467 PMwarnGarage Door Sensor NOT PROCESSED Tuya cmd: dp=101 value=115 descMap.data = [00, 2A, 65, 02, 00, 04, 00, 00, 00, 73]

dev:2802023-02-17 10:55:28.464 PMtraceGarage Door Sensor dp_id=2 dp=101 fncmd=115 fncmd_len=4 (index=0)

dev:2802023-02-17 10:55:28.461 PMdebugGarage Door Sensor parse() descMap = [raw:catchall: 0104 EF00 01 01 0040 00 B4CC 01 00 0000 02 01 002A6502000400000073, profileId:0104, clusterId:EF00, clusterInt:61184, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:B4CC, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:01, data:[00, 2A, 65, 02, 00, 04, 00, 00, 00, 73]] (description=catchall: 0104 EF00 01 01 0040 00 B4CC 01 00 0000 02 01 002A6502000400000073)

dev:2802023-02-17 10:55:13.829 PMinfoGarage Door Sensor Contact is closed

dev:2802023-02-17 10:55:13.823 PMtraceGarage Door Sensor dp_id=1 dp=1 fncmd=1 fncmd_len=1 (index=0)

dev:2802023-02-17 10:55:13.820 PMdebugGarage Door Sensor parse() descMap = [raw:catchall: 0104 EF00 01 01 0040 00 B4CC 01 00 0000 02 01 00290101000101, profileId:0104, clusterId:EF00, clusterInt:61184, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:B4CC, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:01, data:[00, 29, 01, 01, 00, 01, 01]] (description=catchall: 0104 EF00 01 01 0040 00 B4CC 01 00 0000 02 01 00290101000101)

dev:2802023-02-17 10:55:09.058 PMinfoGarage Door Sensor Contact is closed

dev:2802023-02-17 10:55:09.055 PMtraceGarage Door Sensor dp_id=1 dp=1 fncmd=1 fncmd_len=1 (index=0)

dev:2802023-02-17 10:55:09.052 PMdebugGarage Door Sensor parse() descMap = [raw:catchall: 0104 EF00 01 01 0040 00 B4CC 01 00 0000 02 01 00280101000101, profileId:0104, clusterId:EF00, clusterInt:61184, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:B4CC, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:01, data:[00, 28, 01, 01, 00, 01, 01]] (description=catchall: 0104 EF00 01 01 0040 00 B4CC 01 00 0000 02 01 00280101000101)

dev:2802023-02-17 10:55:08.842 PMwarnGarage Door Sensor NOT PROCESSED Tuya cmd: dp=101 value=0 descMap.data = [00, 27, 65, 02, 00, 04, 00, 00, 00, 00]

dev:2802023-02-17 10:55:08.839 PMtraceGarage Door Sensor dp_id=2 dp=101 fncmd=0 fncmd_len=4 (index=0)

dev:2802023-02-17 10:55:08.836 PMdebugGarage Door Sensor parse() descMap = [raw:catchall: 0104 EF00 01 01 0040 00 B4CC 01 00 0000 02 01 00276502000400000000, profileId:0104, clusterId:EF00, clusterInt:61184, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:B4CC, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:01, data:[00, 27, 65, 02, 00, 04, 00, 00, 00, 00]] (description=catchall: 0104 EF00 01 01 0040 00 B4CC 01 00 0000 02 01 00276502000400000000)

dev:2802023-02-17 10:54:25.601 PMtraceGarage Door Sensor sendZigbeeCommands(cmd=[he raw 0xB4CC 1 0x01 0x0001 {10 00 00 20 00}, delay 100, he raw 0xB4CC 1 0x01 0x0001 {10 00 00 21 00}, delay 200])

dev:2802023-02-17 10:54:19.564 PMinfoGarage Door Sensor ping() is not implemented

dev:332023-02-17 10:53:50.191 PMerrorLost connection to Web Socket: status: closing, will reconnect.

dev:2802023-02-17 10:52:08.598 PMdebugGarage Door Sensor Battery Percentage rawValue = 200 -> 100%

dev:2802023-02-17 10:52:08.596 PMinfoGarage Door Sensor battery is 100 %

dev:2802023-02-17 10:52:08.593 PMtraceGarage Door Sensor dp_id=2 dp=2 fncmd=100 fncmd_len=4 (index=0)

dev:2802023-02-17 10:52:08.590 PMdebugGarage Door Sensor parse() descMap = [raw:catchall: 0104 EF00 01 01 0040 00 B4CC 01 00 0000 02 01 00260202000400000064, profileId:0104, clusterId:EF00, clusterInt:61184, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:B4CC, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:01, data:[00, 26, 02, 02, 00, 04, 00, 00, 00, 64]] (description=catchall: 0104 EF00 01 01 0040 00 B4CC 01 00 0000 02 01 00260202000400000064)

dev:2802023-02-17 10:51:58.588 PMdebugGarage Door Sensor Battery Percentage rawValue = 200 -> 100%

dev:2802023-02-17 10:51:58.585 PMinfoGarage Door Sensor battery is 100 %

dev:2802023-02-17 10:51:58.583 PMtraceGarage Door Sensor dp_id=2 dp=2 fncmd=100 fncmd_len=4 (index=0)

dev:2802023-02-17 10:51:58.580 PMdebugGarage Door Sensor parse() descMap = [raw:catchall: 0104 EF00 01 01 0040 00 B4CC 01 00 0000 02 01 00250202000400000064, profileId:0104, clusterId:EF00, clusterInt:61184, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:B4CC, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:01, data:[00, 25, 02, 02, 00, 04, 00, 00, 00, 64]] (description=catchall: 0104 EF00 01 01 0040 00 B4CC 01 00 0000 02 01 00250202000400000064)

dev:2802023-02-17 10:51:48.597 PMdebugTuya Zigbee Contact w/ Illuminance Sensor Battery Percentage rawValue = 200 -> 100%

dev:2802023-02-17 10:51:48.595 PMinfoTuya Zigbee Contact w/ Illuminance Sensor battery is 100 %

dev:2802023-02-17 10:51:48.592 PMtraceTuya Zigbee Contact w/ Illuminance Sensor dp_id=2 dp=2 fncmd=100 fncmd_len=4 (index=0)

dev:2802023-02-17 10:51:48.589 PMdebugTuya Zigbee Contact w/ Illuminance Sensor parse() descMap = [raw:catchall: 0104 EF00 01 01 0040 00 B4CC 01 00 0000 02 01 00240202000400000064, profileId:0104, clusterId:EF00, clusterInt:61184, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:B4CC, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:01, data:[00, 24, 02, 02, 00, 04, 00, 00, 00, 64]] (description=catchall: 0104 EF00 01 01 0040 00 B4CC 01 00 0000 02 01 00240202000400000064)

dev:2802023-02-17 10:51:38.802 PMdebugTuya Zigbee Contact w/ Illuminance Sensor Battery Percentage rawValue = 200 -> 100%

dev:2802023-02-17 10:51:38.800 PMinfoTuya Zigbee Contact w/ Illuminance Sensor battery is 100 %

dev:2802023-02-17 10:51:38.797 PMtraceTuya Zigbee Contact w/ Illuminance Sensor dp_id=2 dp=2 fncmd=100 fncmd_len=4 (index=0)

dev:2802023-02-17 10:51:38.792 PMdebugTuya Zigbee Contact w/ Illuminance Sensor parse() descMap = [raw:catchall: 0104 EF00 01 01 0040 00 B4CC 01 00 0000 02 01 00230202000400000064, profileId:0104, clusterId:EF00, clusterInt:61184, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:B4CC, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:01, data:[00, 23, 02, 02, 00, 04, 00, 00, 00, 64]] (description=catchall: 0104 EF00 01 01 0040 00 B4CC 01 00 0000 02 01 00230202000400000064)

dev:2802023-02-17 10:51:38.575 PMwarnTuya Zigbee Contact w/ Illuminance Sensor NOT PROCESSED Tuya cmd: dp=101 value=0 descMap.data = [00, 22, 65, 02, 00, 04, 00, 00, 00, 00]

dev:2802023-02-17 10:51:38.572 PMtraceTuya Zigbee Contact w/ Illuminance Sensor dp_id=2 dp=101 fncmd=0 fncmd_len=4 (index=0)

dev:2802023-02-17 10:51:38.569 PMdebugTuya Zigbee Contact w/ Illuminance Sensor parse() descMap = [raw:catchall: 0104 EF00 01 01 0040 00 B4CC 01 00 0000 02 01 00226502000400000000, profileId:0104, clusterId:EF00, clusterInt:61184, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:B4CC, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:01, data:[00, 22, 65, 02, 00, 04, 00, 00, 00, 00]] (description=catchall: 0104 EF00 01 01 0040 00 B4CC 01 00 0000 02 01 00226502000400000000)

dev:2802023-02-17 10:51:28.562 PMdebugTuya Zigbee Contact w/ Illuminance Sensor Battery Percentage rawValue = 200 -> 100%

dev:2802023-02-17 10:51:28.557 PMinfoTuya Zigbee Contact w/ Illuminance Sensor battery is 100 %

dev:2802023-02-17 10:51:28.552 PMtraceTuya Zigbee Contact w/ Illuminance Sensor dp_id=2 dp=2 fncmd=100 fncmd_len=4 (index=0)

dev:2802023-02-17 10:51:28.543 PMdebugTuya Zigbee Contact w/ Illuminance Sensor parse() descMap = [raw:catchall: 0104 EF00 01 01 0040 00 B4CC 01 00 0000 02 01 00210202000400000064, profileId:0104, clusterId:EF00, clusterInt:61184, sourceEndpoint:01, destinationEndpoint:01, options:0040, messageType:00, dni:B4CC, isClusterSpecific:true, isManufacturerSpecific:false, manufacturerId:0000, command:02, direction:01, data:[00, 21, 02, 02, 00, 04, 00, 00, 00, 64]] (description=catchall: 0104 EF00 01 01 0040 00 B4CC 01 00 0000 02 01 00210202000400000064)

dev:2802023-02-17 10:51:24.963 PMinfoTuya Zigbee Contact w/ Illuminance Sensor Received endpoint response: cluster: 8005 (endpoint response) endpointCount = 01 endpointList = 01

dev:2802023-02-17 10:51:24.960 PMdebugTuya Zigbee Contact w/ Illuminance Sensor parse() descMap = [raw:catchall: 0000 8005 00 00 0040 00 B4CC 00 00 0000 00 00 4600CCB40101, profileId:0000, clusterId:8005, clusterInt:32773, sourceEndpoint:00, destinationEndpoint:00, options:0040, messageType:00, dni:B4CC, isClusterSpecific:false, isManufacturerSpecific:false, manufacturerId:0000, command:00, direction:00, data:[46, 00, CC, B4, 01, 01]] (description=catchall: 0000 8005 00 00 0040 00 B4CC 00 00 0000 00 00 4600CCB40101)

dev:2802023-02-17 10:51:23.723 PMdebugTuya Zigbee Contact w/ Illuminance Sensor NOT PARSED : [raw:B4CC01000012DFFF4205A931832B12, dni:B4CC, endpoint:01, cluster:0000, size:12, attrId:FFDF, encoding:42, command:0A, value:©1ƒ+, clusterInt:0, attrInt:65503]

dev:2802023-02-17 10:51:23.719 PMdebugTuya Zigbee Contact w/ Illuminance Sensor parse() descMap = [raw:B4CC01000012DFFF4205A931832B12, dni:B4CC, endpoint:01, cluster:0000, size:12, attrId:FFDF, encoding:42, command:0A, value:©1ƒ+, clusterInt:0, attrInt:65503] (description=read attr - raw: B4CC01000012DFFF4205A931832B12, dni: B4CC, endpoint: 01, cluster: 0000, size: 12, attrId: FFDF, encoding: 42, command: 0A, value: 05A931832B12)

dev:2802023-02-17 10:51:23.549 PMdebugTuya Zigbee Contact w/ Illuminance Sensor NOT PARSED : [raw:B4CC0100001801002043E2FF2022E4FF2000, dni:B4CC, endpoint:01, cluster:0000, size:18, attrId:0001, encoding:20, command:0A, value:43, clusterInt:0, attrInt:1, additionalAttrs:[[value:22, encoding:20, attrId:FFE2, consumedBytes:4, attrInt:65506], [value:00, encoding:20, attrId:FFE4, consumedBytes:4, attrInt:65508]]]

dev:2802023-02-17 10:51:23.541 PMdebugTuya Zigbee Contact w/ Illuminance Sensor parse() descMap = [raw:B4CC0100001801002043E2FF2022E4FF2000, dni:B4CC, endpoint:01, cluster:0000, size:18, attrId:0001, encoding:20, command:0A, value:43, clusterInt:0, attrInt:1, additionalAttrs:[[value:22, encoding:20, attrId:FFE2, consumedBytes:4, attrInt:65506], [value:00, encoding:20, attrId:FFE4, consumedBytes:4, attrInt:65508]]] (description=read attr - raw: B4CC0100001801002043E2FF2022E4FF2000, dni: B4CC, endpoint: 01, cluster: 0000, size: 18, attrId: 0001, encoding: 20, command: 0A, value: 43E2FF2022E4FF2000)

dev:2802023-02-17 10:51:23.003 PMdebugTuya Zigbee Contact w/ Illuminance Sensor nothing to send to the device (TS0601_CONTACT_ILLUM_BATT)

dev:2802023-02-17 10:51:22.947 PMinfoTuya Zigbee Contact w/ Illuminance Sensor Debug logging will be turned off after 24 hours

dev:2802023-02-17 10:51:22.904 PMinfoTuya Zigbee Contact w/ Illuminance Sensor Debug logging is true; Description text logging is true

dev:2802023-02-17 10:51:22.901 PMinfoTuya Zigbee Contact w/ Illuminance Sensor Updating null (Tuya Zigbee Contact w/ Illuminance Sensor) model TS0601 manufacturer _TZE200_pay2byax, deviceProfile = TS0601_CONTACT_ILLUM_BATT

sys:12023-02-17 10:51:22.394 PMinfoZigbee Discovery Stopped

dev:2802023-02-17 10:51:22.039 PMdebugTuya Zigbee Contact w/ Illuminance Sensor NOT PARSED : [raw:B4CC01000068040042105F545A453230305F70617932627961780000002003010000204305000042065453303630310700003003FEFF003000, dni:B4CC, endpoint:01, cluster:0000, size:68, attrId:0004, encoding:42, command:01, value:_TZE200_pay2byax, clusterInt:0, attrInt:4, additionalAttrs:[[value:03, encoding:20, attrId:0000, consumedBytes:4, attrInt:0], [value:43, encoding:20, attrId:0001, consumedBytes:4, attrInt:1], [value:TS0601, encoding:42, attrId:0005, consumedBytes:9, attrInt:5]]]

dev:2802023-02-17 10:51:22.024 PMdebugTuya Zigbee Contact w/ Illuminance Sensor parse() descMap = [raw:B4CC01000068040042105F545A453230305F70617932627961780000002003010000204305000042065453303630310700003003FEFF003000, dni:B4CC, endpoint:01, cluster:0000, size:68, attrId:0004, encoding:42, command:01, value:_TZE200_pay2byax, clusterInt:0, attrInt:4, additionalAttrs:[[value:03, encoding:20, attrId:0000, consumedBytes:4, attrInt:0], [value:43, encoding:20, attrId:0001, consumedBytes:4, attrInt:1], [value:TS0601, encoding:42, attrId:0005, consumedBytes:9, attrInt:5]]] (description=read attr - raw: B4CC01000068040042105F545A453230305F70617932627961780000002003010000204305000042065453303630310700003003FEFF003000, dni: B4CC, endpoint: 01, cluster: 0000, size: 68, attrId: 0004, encoding: 42, command: 01, value: 105F545A453230305F70617932627961780000002003010000204305000042065453303630310700003003FEFF003000)

sys:12023-02-17 10:51:21.888 PMinfoCreated Zigbee Device Tuya Zigbee Contact Sensor++ w/ healthStatus

dev:2802023-02-17 10:51:21.820 PMtraceTuya Zigbee Contact w/ Illuminance Sensor sendZigbeeCommands(cmd=[he raw 0xB4CC 1 0x01 0x0000 {10 00 00 04 00 00 00 01 00 05 00 07 00 FE FF}, delay 200])

dev:2802023-02-17 10:51:21.809 PMinfoTuya Zigbee Contact w/ Illuminance Sensor configure()..

dev:2802023-02-17 10:51:21.800 PMinfoTuya Zigbee Contact Sensor++ w/ healthStatus Received endpoint response: cluster: 8005 (endpoint response) endpointCount = 01 endpointList = 01

dev:2802023-02-17 10:51:21.792 PMdebugTuya Zigbee Contact Sensor++ w/ healthStatus parse() descMap = [raw:catchall: 0000 8005 00 00 0040 00 B4CC 00 00 0000 00 00 4500CCB40101, profileId:0000, clusterId:8005, clusterInt:32773, sourceEndpoint:00, destinationEndpoint:00, options:0040, messageType:00, dni:B4CC, isClusterSpecific:false, isManufacturerSpecific:false, manufacturerId:0000, command:00, direction:00, data:[45, 00, CC, B4, 01, 01]] (description=catchall: 0000 8005 00 00 0040 00 B4CC 00 00 0000 00 00 4500CCB40101)

dev:2802023-02-17 10:51:21.775 PMinfoTuya Zigbee Contact Sensor++ w/ healthStatus is present

dev:2802023-02-17 10:51:21.693 PMinfoTuya Zigbee Contact w/ Illuminance Sensor all states and scheduled jobs cleared!

dev:2802023-02-17 10:51:21.691 PMinfoTuya Zigbee Contact w/ Illuminance Sensor device model TS0601 manufacturer _TZE200_pay2byax deviceName was set to Tuya Zigbee Contact w/ Illuminance Sensor

dev:2802023-02-17 10:51:21.640 PMinfoTuya Zigbee Contact Sensor++ w/ healthStatus Statistics were reset. Press F5 to refresh the device page

dev:2802023-02-17 10:51:21.607 PMinfoTuya Zigbee Contact Sensor++ w/ healthStatus InitializeVars()... fullInit = true

dev:2802023-02-17 10:51:21.586 PMinfoTuya Zigbee Contact Sensor++ w/ healthStatus installed()...

sys:12023-02-17 10:51:12.088 PMinfoInitializing Zigbee Device A4C138D671248ED8, B4CC

sys:12023-02-17 10:50:52.358 PMinfoZigbee Discovery Running

1 Like

Hey @Abhay , thank you for the feedback and the logs!

I have prepared the head post for a new dedicated thread on the "Tuya Zigbee Contact Sensor++ w/ healthStatus" driver and I will publish it shortly. Let's continue with the fixes for the Contact+Illuminance model there, I have marked the driver status for this model as a work in progress.

2 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.