Any idea which DDF to use for Hobeian ZG-106Z light sensor?

Hey,

I am trying to pair a Hobeian ZG-106Z light sensor.

I already searched the Deconz Toolbox for that model name but didn’t find anything, also not in the GitHub repo.

It is this little thing:
https://www.zigbee2mqtt.io/devices/ZG-106Z.html

I checked here:
https://z2m.dev/devices/tuya/ts0222.html
=> It seems to be a white label of the tuya ts0222.
There IS indeed a ddf for that:
https://deconz-community.github.io/ddf-tools/#/store/bundle/32e3df6372ada1dcf9d6e506d8acec3d1d8304924b7b958324120cbb9c869ecb

But how do I make DeConz clear that those are the same?
From what I understand, deCONZ matches DDFs based on the Manufacturer Name and Model Identifier reported in the Basic Cluster, not the product name. So my plan would be:

  1. Install the DDF bundle from the store linked above via the deCONZ Toolbox / integrated DDF store.
  2. Check what my device actually reports: pair it, then read the Basic Cluster in the deCONZ GUI (or query manufacturername / modelid via the REST API) to see if the Hobeian unit identifies itself with one of the Tuya IDs already listed in the TS0222 DDF.
  3. If the IDs don’t match: open the DDF editor (Edit → Open DDF Editor), load the TS0222 DDF and add my device’s combination to the manufacturername / modelid arrays, e.g.:
"manufacturername": ["_TZ3000_xxxxxxxx", "HOBEIAN"],
"modelid": ["TS0222", "ZG-106Z"]

Then save it as a user DDF (should end up in ~/.local/share/dresden-elektronik/deCONZ/devices/) and reload the DDF on the device.

Does that sound like the correct approach, or is there a simpler way to tell deCONZ that this white-label device should use the existing TS0222 DDF?

Depend of OS, if you have a classic OS, you can just have to edit the json with a text editor.

Depend of your deconz version, you can already have the last DDF.

Yes, need to add the couple modelID/ManufactureName if they are missing, the order is important (by section)

Better to restart Deconz after the file change.

If it work make a PR to submit the change or ask for a dev to add it, to have it definitively.

But yes you have a good approch ^^.

For information there us a folder for Hoebian device deconz-rest-plugin/devices/hobeian at master · dresden-elektronik/deconz-rest-plugin · GitHub

But if it’s just a clone, can be faster to add in on a DDF from the “tuya” folder.

Hey there,

did just adding HOBEIAN as manufacturer (add one line) and ZG-106Z as Model ID (also add a line) solve the Problem?

Depend of device.
Better to fist include it in deconz (you will see it on deconz but not on phoscon).
To get the correct modelID/ManufactureName and add the device to an exiting DDF if it’s a “similar” hardware.
But yes, generaly Tuya don’t create new device, it’s just clone with different ManufactureName.

Then restart deconz after editing the DDF, because Deconz load DDF only at start.

I tried adding HOBEIAN as manufacturer and ZG-106Z as ModelID.

If I run Deconz in debug the sensor Pops up with this initials.

Still can nit get it to pair with the ddf. The debug says no ddf for the Sensor. Do I also need to add the uuid in the ddf?

Your device is in this folder
devices\tuya_TZ3000_8uxxzz4b_light_sensor.json

You can edit this file like that


  "manufacturername": [
    "_TZ3000_8uxxzz4b",
    "_TZ3000_hy6ncvmw",
    "_TZ3000_9kbbfeho",
    "_TZ3000_l6rsaipj",
    "_TZ3000_j6adk9id",
    "_TYZB01_4mdqxxnn",
    "_TYZB01_m6ec2pgj",
    "_TZ3000_do6txrcw",
    "_TZ3000_7kscdesh",
    "_TZ3000_7y90pany",
    "HOBEIAN"
  ],
  "modelid": [
    "TS0222",
    "TS0222",
    "TS0222",
    "TS0222",
    "TS0222",
    "TS0222",
    "TS0222",
    "TS0222",
    "TS0222",
    "TS0222",
    "ZG-106Z"
  ],

The uuid is already in the DDF
Just restart deconz after changes.
If it don’t work check the modelID and the Manufacture name in the cluster 0x0000 (Basic).

Thanks a lot. It worked

Have made a PR for them DDF, update a tuya light sensor with clones by Smanar · Pull Request #8650 · dresden-elektronik/deconz-rest-plugin · GitHub