Zigbee Dimmer pairing issues

So I recently had my electrician install this OzSmartThings Zigbee Dimmer (mg-zgd01w) Zigbee Dimmer Light Switch Smart Home Automation Australia Wall Dim 1g

It functions okay, I can get it into pairing mode, but every time I tried to pair with my C-8 as a generic zigbee dimmer it would appear as a previously recognised device (”Tuya Zigbee Contact Sensor++ w/ healthStatus” - a device which I installed a custom driver for a while back and paired but which has been sitting in a box with its batteries removed for the past few months).

I tried going into said device and changing the driver to something more suitable for a dimmer (generic zigbee dimmer) but it wouldn’t work. I tried installing a custom driver I found by googling the TS0601 _TZE200_1agwnems found in the device settings and setting it to that and it also didn’t work. I also tried the re-pairing process several times with the new driver installed.

I should probably add here that I also had a 4 gang switch installed Zigbee Quad Light Switch Smart Home Automation Australia Wall 4 Gang which paired beautifully the first time.

After many failed attempts at the dimmer, I tried deleting the Tuya Zigbee Contact Sensor++ w/ healthStatus v1.2.1 driver and repeating the pairing process. I noticed that the device was actually starting the initialising process during pairing but always timing out. I tried pairing with clear keys and avoiding 3.0 repeaters, but still no luck. Feeling like I had exhausted my options I then did something potentially silly and went into the device settings clicked on remove device (be nice, I’m new to this!). Now the device won’t even get into initialise stage during pairing. Problem now is that I can’t work out how to factory reset the dimmer. I’ve tried turning off the breaker for 10-30 seconds but that doesn’t seem to change anything. Can’t find any reset button under the glass panel. Have I just bricked my dimmer? What can I do now?

Hi Matt,

Your dimmer will not work with HE inbuilt generic Zigbee dimmer drivers. It uses Tuya specific Zigbee commands, so the first thing to do is to install this driver :

This is the second problem that you need to overcome. Currently ( HE platform version 2.3.9.x), you can use this workaround to pair the Zigbee 3.0 device successfully with the C-8 hub - Double Luck voodoo .

Are you keeping the leaflet that came with the device? There should be some instructions on how to put the dimmer into pairing mode. It may be pushing one of the buttons 5 times on/off and holding it down on the 6-th press, or something similar... The reset procedures are specific for each different device.

Install the right driver first, then try pairing again.

1 Like

Hi kkossev,

Thanks so much for your reply.

So the custom driver I mentioned in my original post was the driver you mentioned, but I was half asleep when and installed the old version through HPM. I have now installed the correct version via the url import.

Also, just to clarify, I have no problem getting the dimmer into pairing mode (5 on/off plus hold for 5 secs).

I tried again, but again got stuck on initialising. I then tried the double luck voodoo and tried pairing again, and this happened:

That's another driver I installed a few months back (that device has also been sitting disconnected without batteries all that time). What is happening? :sweat_smile:

1 Like

The fingerprint of your device does not match the fingerprints defined in the Tuya Dimmer Module driver, that's why the HE hub can not match automatically the right driver and selects another one (which was installed earlier most probably). It may be a new manufacturer or new firmware version of the device.

Switch the driver manually to the HE inbuilt 'Device' driver, then click on the 'Get Info' button.
Please select/copy/paste as text the fingerprint that you will see in the live logs. I will add it to the Tuya dimmer driver.

The most complete information of the device fingerprint can be copied from the ''Pairing Info' hyperlink as shown on your screenshot, but this information is available only once, when paired as a new device.

1 Like

I see. I had kept that pairing tab open, so i was still able to click on the pairing info link:

|Manufacturer:|_TZE200_1agwnems|
|---|---|
|Endpoint 01 application:|44|
|Endpoint 01 endpointId:|01|
|Endpoint 01 idAsInt:|1|
|Endpoint 01 inClusters:|0000,0004,0005,EF00|
|Endpoint 01 initialized:|true|
|Endpoint 01 manufacturer:|_TZE200_1agwnems|
|Endpoint 01 model:|TS0601|
|Endpoint 01 outClusters:|0019,000A|
|Endpoint 01 profileId:|0104|
|Endpoint 01 stage:|4|

I haven't clicked "Next" and continued on to change to the generic dimmer driver yet though. Should I do that now?

Edit: I will do that now, 1) seeing as you said to do so and 2) my electrician will need to cut my power later today so the C8 will need to reboot

1 Like

The information that you provided was exactly what was needed, thank you!
The problem was that this device fingerprint inClusters list was not correct in the custom driver (there was a comment 'not tested' in the code : ) ).

I have updated the driver to version 0.7.2. Please update manually from this link :

https://raw.githubusercontent.com/kkossev/hubitat-matt-hammond-fork/development/drivers/tuya-zigbee-dimmer-module.groovy

Let me know whether the dimmer picks up the right driver now.

No, this device uses non-standard Zigbee clusters and will not work with the HE Generic Zigbee Dimmer driver. You must use the 'Tuya Zigbee dimmer module' driver.

Great!

I've updated the driver, presumeably I need to remove the device and then go through the pairing process again? I tried just switching the device to use the updated driver but that doesn't seem to work.

It depends on the device, some Tuya devices require the correct driver to be installed prior the pairing, but most of the devices do not need removing and re-pairing.

Click on the 'Configure' command button. Then, enable the Debug logging in the preferences section. Do you see anything in the live logs when operating the dimmer manually, from the physical touch-buttons?

Post a screenshot of the device web page - Current States and State Variables sections. Refresh the web page (F5 in the desktop browser) before making the screenshot.

So I clicked configure, but the live logs were just full of errors. Didn't seem to be anything happening as a result of pressing buttons on the physical dimmer switch:

Here's the screenshot of the device page:

And the driver:

Sorry, I mean clicking the 'Initialize' button... Have you tried this already?
(when a new and unknown driver is not working, I use to click on all the buttons :slight_smile: ... )

The screenshot shows a mix of state variables from the different drivers that you have tried.. It may be a good idea to use the HE inbuilt 'Device' driver first to clean up all states that are left from the previous drivers.

The Tuya Zigbee dimmer module version should be "0.7.2" . If the 'Initialize()' button did not work (after refreshing the device page you should see the right driverVersion 0.7.2), you can try removing the device and pairing it as a new one.

Yes it worked! That set to "Device" and delete states trick is a good one. Thanks for all your help with this, and thank you for updating that driver so quickly!

Dimmer controls aren't working, just on/off, but that's a problem for another day :slight_smile: (but let me know if you would like help with testing this to improve your driver).

Thanks for the update, controllig the lights on/off state is a step forward! :slight_smile:

Next :

Please select/copy/paste the debug logs as a text. I need only the debug logs that follow dimming up/down the lights from the dimmer buttons (not from HE device page commands).

like this?

dev:1102024-09-14 01:13:54.391 PMinfoStudio Downlights Power-On mode is off
dev:1102024-09-14 01:13:54.384 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CAEC0E04000100
dev:1102024-09-14 01:13:54.333 PMdebugStudio Downlights Countdown 01 is 0s
dev:1102024-09-14 01:13:54.331 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CAEB0602000400000000
dev:1102024-09-14 01:13:54.291 PMinfoStudio Downlights maxLevel brightness parameter was updated to 2%
dev:1102024-09-14 01:13:54.286 PMdebugStudio Downlights parseTuyaCluster: received: maximum brightness switch#01 is 2 (raw=24)
dev:1102024-09-14 01:13:54.283 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CAEA0502000400000018
dev:1102024-09-14 01:13:54.232 PMinfoStudio Downlights Light type is LED
dev:1102024-09-14 01:13:54.226 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CAE90404000100
dev:1102024-09-14 01:13:54.189 PMinfoStudio Downlights minLevel brightness parameter was updated to 0%
dev:1102024-09-14 01:13:54.185 PMdebugStudio Downlights parseTuyaCluster: received: minimum brightness switch#01 is 0 (raw=1)
dev:1102024-09-14 01:13:54.182 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CAE80302000400000001
dev:1102024-09-14 01:13:54.135 PMinfoStudio Downlights Studio Downlights level was set to 100 [physical]
dev:1102024-09-14 01:13:54.133 PMinfoStudio Downlights Brightness 01 is 100% (33)
dev:1102024-09-14 01:13:54.130 PMdebugStudio Downlights parseTuyaCluster: received: Tuya brighntness(level) cmd=02 value=333
dev:1102024-09-14 01:13:54.127 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CAE7020200040000014D
dev:1102024-09-14 01:13:54.097 PMinfoStudio Downlights Studio Downlights was turned on [physical]
dev:1102024-09-14 01:13:54.095 PMinfoStudio Downlights Switch 01 is on
dev:1102024-09-14 01:13:54.093 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CAE60101000101
dev:1102024-09-14 01:13:47.634 PMinfoStudio Downlights Power-On mode is off
dev:1102024-09-14 01:13:47.627 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CAE60E04000100
dev:1102024-09-14 01:13:47.582 PMdebugStudio Downlights Countdown 01 is 0s
dev:1102024-09-14 01:13:47.579 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CAE50602000400000000
dev:1102024-09-14 01:13:47.544 PMinfoStudio Downlights maxLevel brightness parameter was updated to 2%
dev:1102024-09-14 01:13:47.539 PMdebugStudio Downlights parseTuyaCluster: received: maximum brightness switch#01 is 2 (raw=24)
dev:1102024-09-14 01:13:47.536 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CAE40502000400000018
dev:1102024-09-14 01:13:47.496 PMinfoStudio Downlights Light type is LED
dev:1102024-09-14 01:13:47.484 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CAE30404000100
dev:1102024-09-14 01:13:47.465 PMinfoStudio Downlights minLevel brightness parameter was updated to 0%
dev:1102024-09-14 01:13:47.447 PMdebugStudio Downlights parseTuyaCluster: received: minimum brightness switch#01 is 0 (raw=1)
dev:1102024-09-14 01:13:47.442 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CAE20302000400000001
dev:1102024-09-14 01:13:47.435 PMinfoStudio Downlights Studio Downlights level was set to 100 [physical]
dev:1102024-09-14 01:13:47.431 PMinfoStudio Downlights Brightness 01 is 100% (100)
dev:1102024-09-14 01:13:47.420 PMdebugStudio Downlights parseTuyaCluster: received: Tuya brighntness(level) cmd=02 value=1000
dev:1102024-09-14 01:13:47.416 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CAE102020004000003E8
dev:1102024-09-14 01:13:47.332 PMinfoStudio Downlights Studio Downlights was turned on [physical]
dev:1102024-09-14 01:13:47.329 PMinfoStudio Downlights Switch 01 is on
dev:1102024-09-14 01:13:47.326 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CAE00101000101
dev:1102024-09-14 01:13:37.760 PMdebugStudio Downlights Tuya check-in (0x01)
dev:1102024-09-14 01:13:37.747 PMdebugStudio Downlights parse: received raw description: read attr - raw: F7DF0100001801002044E2FF201FE4FF2000, dni: F7DF, endpoint: 01, cluster: 0000, size: 18, attrId: 0001, encoding: 20, command: 0A, value: 44E2FF201FE4FF2000
dev:1102024-09-14 01:13:37.472 PMinfoStudio Downlights Power-On mode is off
dev:1102024-09-14 01:13:37.465 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CAE00E04000100
dev:1102024-09-14 01:13:37.413 PMdebugStudio Downlights Countdown 01 is 0s
dev:1102024-09-14 01:13:37.410 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CADF0602000400000000
dev:1102024-09-14 01:13:37.373 PMinfoStudio Downlights maxLevel brightness parameter was updated to 2%
dev:1102024-09-14 01:13:37.368 PMdebugStudio Downlights parseTuyaCluster: received: maximum brightness switch#01 is 2 (raw=24)
dev:1102024-09-14 01:13:37.365 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CADE0502000400000018
dev:1102024-09-14 01:13:37.330 PMinfoStudio Downlights Light type is LED
dev:1102024-09-14 01:13:37.315 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CADD0404000100
dev:1102024-09-14 01:13:37.282 PMinfoStudio Downlights minLevel brightness parameter was updated to 0%
dev:1102024-09-14 01:13:37.275 PMdebugStudio Downlights parseTuyaCluster: received: minimum brightness switch#01 is 0 (raw=1)
dev:1102024-09-14 01:13:37.266 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CADC0302000400000001
dev:1102024-09-14 01:13:37.226 PMinfoStudio Downlights Studio Downlights level was set to 100 [physical]
dev:1102024-09-14 01:13:37.220 PMinfoStudio Downlights Brightness 01 is 100% (4)
dev:1102024-09-14 01:13:37.216 PMdebugStudio Downlights parseTuyaCluster: received: Tuya brighntness(level) cmd=02 value=41
dev:1102024-09-14 01:13:37.212 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CADB0202000400000029
dev:1102024-09-14 01:13:37.181 PMinfoStudio Downlights Studio Downlights was turned on [physical]
dev:1102024-09-14 01:13:37.178 PMinfoStudio Downlights Switch 01 is on
dev:1102024-09-14 01:13:37.175 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CADA0101000101
dev:1102024-09-14 01:13:28.545 PMinfoStudio Downlights Power-On mode is off
dev:1102024-09-14 01:13:28.539 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CADA0E04000100
dev:1102024-09-14 01:13:28.495 PMdebugStudio Downlights Countdown 01 is 0s
dev:1102024-09-14 01:13:28.493 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CAD90602000400000000
dev:1102024-09-14 01:13:28.447 PMinfoStudio Downlights maxLevel brightness parameter was updated to 2%
dev:1102024-09-14 01:13:28.442 PMdebugStudio Downlights parseTuyaCluster: received: maximum brightness switch#01 is 2 (raw=24)
dev:1102024-09-14 01:13:28.439 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CAD80502000400000018
dev:1102024-09-14 01:13:28.396 PMinfoStudio Downlights Light type is LED
dev:1102024-09-14 01:13:28.389 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CAD70404000100
dev:1102024-09-14 01:13:28.345 PMinfoStudio Downlights minLevel brightness parameter was updated to 0%
dev:1102024-09-14 01:13:28.340 PMdebugStudio Downlights parseTuyaCluster: received: minimum brightness switch#01 is 0 (raw=1)
dev:1102024-09-14 01:13:28.337 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CAD60302000400000001
dev:1102024-09-14 01:13:28.312 PMinfoStudio Downlights Studio Downlights level was set to 100 [physical]
dev:1102024-09-14 01:13:28.309 PMinfoStudio Downlights Brightness 01 is 100% (100)
dev:1102024-09-14 01:13:28.306 PMdebugStudio Downlights parseTuyaCluster: received: Tuya brighntness(level) cmd=02 value=1000
dev:1102024-09-14 01:13:28.303 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CAD502020004000003E8
dev:1102024-09-14 01:13:28.215 PMinfoStudio Downlights Studio Downlights was turned on [physical]
dev:1102024-09-14 01:13:28.213 PMinfoStudio Downlights Switch 01 is on
dev:1102024-09-14 01:13:28.211 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CAD40101000101
dev:1102024-09-14 01:13:19.589 PMinfoStudio Downlights Power-On mode is off
dev:1102024-09-14 01:13:19.582 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CAD40E04000100
dev:1102024-09-14 01:13:19.529 PMdebugStudio Downlights Countdown 01 is 0s
dev:1102024-09-14 01:13:19.526 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CAD30602000400000000
dev:1102024-09-14 01:13:19.496 PMinfoStudio Downlights maxLevel brightness parameter was updated to 2%
dev:1102024-09-14 01:13:19.492 PMdebugStudio Downlights parseTuyaCluster: received: maximum brightness switch#01 is 2 (raw=24)
dev:1102024-09-14 01:13:19.489 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CAD20502000400000018
dev:1102024-09-14 01:13:19.431 PMinfoStudio Downlights Light type is LED
dev:1102024-09-14 01:13:19.424 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CAD10404000100
dev:1102024-09-14 01:13:19.397 PMinfoStudio Downlights minLevel brightness parameter was updated to 0%
dev:1102024-09-14 01:13:19.392 PMdebugStudio Downlights parseTuyaCluster: received: minimum brightness switch#01 is 0 (raw=1)
dev:1102024-09-14 01:13:19.389 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CAD00302000400000001
dev:1102024-09-14 01:13:19.297 PMinfoStudio Downlights Studio Downlights level was set to 100 [physical]
dev:1102024-09-14 01:13:19.294 PMinfoStudio Downlights Brightness 01 is 100% (100)
dev:1102024-09-14 01:13:19.291 PMdebugStudio Downlights parseTuyaCluster: received: Tuya brighntness(level) cmd=02 value=1000
dev:1102024-09-14 01:13:19.289 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CACF02020004000003E8
dev:1102024-09-14 01:13:19.259 PMinfoStudio Downlights Studio Downlights was turned on [physical]
dev:1102024-09-14 01:13:19.258 PMinfoStudio Downlights Switch 01 is on
dev:1102024-09-14 01:13:19.255 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CACE0101000101
dev:1102024-09-14 01:13:10.647 PMinfoStudio Downlights Power-On mode is off
dev:1102024-09-14 01:13:10.640 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CACE0E04000100
dev:1102024-09-14 01:13:10.582 PMdebugStudio Downlights Countdown 01 is 0s
dev:1102024-09-14 01:13:10.579 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CACD0602000400000000
dev:1102024-09-14 01:13:10.543 PMinfoStudio Downlights maxLevel brightness parameter was updated to 2%
dev:1102024-09-14 01:13:10.538 PMdebugStudio Downlights parseTuyaCluster: received: maximum brightness switch#01 is 2 (raw=24)
dev:1102024-09-14 01:13:10.535 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CACC0502000400000018
dev:1102024-09-14 01:13:10.484 PMinfoStudio Downlights Light type is LED
dev:1102024-09-14 01:13:10.477 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CACB0404000100
dev:1102024-09-14 01:13:10.433 PMinfoStudio Downlights minLevel brightness parameter was updated to 0%
dev:1102024-09-14 01:13:10.428 PMdebugStudio Downlights parseTuyaCluster: received: minimum brightness switch#01 is 0 (raw=1)
dev:1102024-09-14 01:13:10.425 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CACA0302000400000001
dev:1102024-09-14 01:13:10.384 PMinfoStudio Downlights Studio Downlights level was set to 100 [physical]
dev:1102024-09-14 01:13:10.381 PMinfoStudio Downlights Brightness 01 is 100% (100)
dev:1102024-09-14 01:13:10.378 PMdebugStudio Downlights parseTuyaCluster: received: Tuya brighntness(level) cmd=02 value=1000
dev:1102024-09-14 01:13:10.375 PMdebugStudio Downlights parse: received raw description: catchall: 0104 EF00 01 01 0040 00 F7DF 01 00 0000 01 01 CAC902020004000003E8

@kkossev, not trying to hassle you or anything, just following up to check if the logs I supplied above are useful (and if they are the correct logs).

Hi Matt,
Thank you for the logs - this is what I needed, I will try to analyze what is wrong hopefully this weekend.

Great, let me know if there is anything else I can do to help

Please update the driver manually to the dev. branch version "0.7.3" "2024/09/22 12:38 PM"

https://raw.githubusercontent.com/kkossev/hubitat-matt-hammond-fork/development/drivers/tuya-zigbee-dimmer-module.groovy

The only change in it is that the driver should ignore the minimum and maximum brightness settings reported by the dimmer. It seems that these parameters are wrong for this device.

Can you pair the dimmer again? Pairing usually resets the device settings to their defaults.