What is Mariano Shared Beta Driver?

Could you please add following temp/hum sensor do I can use thermostat function:

Channel:
Zigbee Temp Sensor with Thermostat Mc

Manufacturer
_TZ3000_dowj6gyi

Model
TS0201

Endpoint
0x01

Device ID
0x0302

Network ID
0x2C01

Profile ID
0x0104

Server Clusters

PowerConfiguration
0x0001

0x01

Basic

0x0000

0x01

RelativeHumidity

0x0405

0x01

TemperatureMeasurement

Ox0402

0x01

Identify

0x0003

0x01

Client Clusters

OTAUpgrade

0x0019

Time

0x000A

Identify

0x01

0x01

0x0003

0x01

@Mariano_Colmenarejo Hello, I am new here, could you please add these two z-wave devices:

D-link mydlink DCH-Z110 - it’s a door open/closed, light and temperature

DeviceInfo:

Z-Wave Device:
Id: 342bcfee-ca5f-4aad-956e-14390f3abf27
DNI: 0x32
Firmware Ver: nil * Wake Up-Refresh Device
Library Ver: nil * Wake Up-Refresh Device
Zw Protocol Ver: nil * Wake Up-Refresh Device
Manufacturer: 0x0108
Product Type: 0x0002
Product ID: 0x000E
End Point & Command Class: [1]: BATTERY, NOTIFICATION, ASSOCIATION, CONFIGURATION, SENSOR_BINARY, SENSOR_MULTILEVEL, WAKE_UP, BASIC, ZWAVEPLUS_INFO, MANUFACTURER_SPECIFIC, VERSION, ASSOCIATION_GRP_INFO, POWERLEVEL, DEVICE_RESET_LOCALLY, MULTI_CMD, SECURITY, FIRMWARE_UPDATE_MD

Also the D-link mydlink DCH-Z120 - it’s a motion sensor, light and temperature

DeviceInfo:

Z-Wave Device:
Id: 645045c7-ace7-477a-91a8-43e99113b130
DNI: 0x39
Firmware Ver: nil * Wake Up-Refresh Device
Library Ver: nil * Wake Up-Refresh Device
Zw Protocol Ver: nil * Wake Up-Refresh Device
Manufacturer: 0x0108
Product Type: 0x0002
Product ID: 0x000D
End Point & Command Class: [1]: BATTERY, NOTIFICATION, ASSOCIATION, CONFIGURATION, SENSOR_BINARY, SENSOR_MULTILEVEL, WAKE_UP, BASIC, ZWAVEPLUS_INFO, MANUFACTURER_SPECIFIC, VERSION, ASSOCIATION_GRP_INFO, POWERLEVEL, DEVICE_RESET_LOCALLY, MULTI_CMD, SECURITY, FIRMWARE_UPDATE_MD

Hi @renesys

Added to this driver version

Try it, If devices use standard command they must work

────────────────────────────────────────────────────  
 Name         Z-Wave Sensor and Child Thermostat Mc 
 Version      2023-12-18T17:15:33.773887228
────────────────────────────────────────────────────
- id: D-link/DCH-Z110
    deviceLabel: D-link DCH-Z110
    manufacturerId: 0x0108
    productType: 0x0002
    productId: 0x000E
    deviceProfileName: contact-battery-temperature-illuminance
  - id: D-link/DCH-Z120
    deviceLabel: D-link DCH-Z120
    manufacturerId: 0x0108
    productType: 0x0002
    productId: 0x000D
    deviceProfileName: motion-battery-illuminance-temperature
1 Like

@Mariano_Colmenarejo Many thanks for that!

DCH-Z110 works almost perfect, except the light. It shows door open and close, temperature works ok also shows battery. Unfortunately light does not work.

DCH-Z120 shows Motion Detected continuously, somehow it does not work… It used to work before when I copy pasted some drivers. Temperature works, battery works and like DCH-Z110 light does not work.

Any ideas on how to fix those problems?

Hi,
Everything should work with the default handlers.

It may have to do with the device configuration parameters.

Check the manual to see if there are parameters to configure the luminance reports and the PIR sensor timeout.

Try resetting them to factory settings and pairing them again to see if anything changes.

1 Like

@Mariano_Colmenarejo Thanks for the suggestion. I succeeded in fixing the motion on DCH-Z120 by adding Bit1 and Bit4 at parameter 7. But if reset the sensor, the defaults values don’t work.

Still light does not work for both sensors, before I used Philio drivers. PST02-B is the same as DCH-Z120 and PST02-C is the same as DCH-Z110. Philio has edge drivers but can’t select them. Any way to add those drivers into your list?

btw, you have a “cerveza” from me on your paypal, appreicate the help! Cheers!

Thanks,

I can’t find the drivers or dth philio to see how it handles the illuminance.

If you send me logs with the driver CLI, I would ask to try to see what the device is sending to the driver

Are you a link to device manual?

1 Like

@Mariano_Colmenarejo

Will try with CLI, never used it, but hope I will find something

Manuals here:
manuals-backend.z-wave.info/make.php?lang=en&sku=DCH-Z120&cert=ZC10-14100002

and

This is correct. Bit 1=1 enable sens motion OFF message

Parameter 7: Customer Function

Customer function switch, using bit control.Bit0: Reserve.Bit1: Enable sending motion OFF report.(0:Disable, 1:Enable)

In the manual there are several parameters that can disable the sending of illuminance reports. Parameter 22 defaults to 0 and this seems to disable it.
In the temperature it is at value 1.
Try setting parameter 22 to value 1.

Parameter 22: Illumination Differential Report

The illumination differential to report.0 means turn off this function. The unit is percentage.Enable this function the device will detect every minutes. Enable this functionality will cause some issue please see the detail in the Illumination Report section.
Size: 1 Byte, Default Value: 0

Setting Description
0 - 99 Illumination Differential Report

If you want you can make a scan of parameters from 1 to 22 and see the value of all of them and if you send me a screenshot I will analyze if there is any error

@Mariano_Colmenarejo

Scan

For parameter 7 I am on 18, without bit4 it does not work, same goes for bit1, it has to be added. I have tried different combinations like 22, 26, 30 and 58

At parameter 5 I have some settings, tried different combinations but it doesn’t do anything.

Tried also 1 at parameter 22, but still loght doesn’t work.

parameter 5 valkue 12, has bit2 =1 (reseve) and bit3 = 1 (ºC scale)
Bit4: Disable the illumination report after event triggered. (1:Disable, 0:Enable) is 0, try to set to 1 with value = 24

  • Illumination Report:
    When the PIR motion detected or the door/window state changed, the
    device will unsolicited to send the “Sensor Multilevel Report” to the
    nodes in the group 1.
    Sensor Type: Luminance (0x03)
    Note: To disable this functionality by setting the configuration N0.5
    bit4 to 1.

Try to set Parameter 12: Auto Report Illumination Time = 1

•Illumination level report: Every 6 hours report once in default. (default value is 12)

I’m going to sleep, it’s too late. :zzz:
I’ll see it tomorrow

@Mariano_Colmenarejo You didn’t have to stay up late for me :slight_smile: sorry!

At parameter 5, there is something weird. If for example I try to add 24 it adds 28, that’s why for bit3 I have 12. it always adds bit2. Another weird thing, if set the value to 4, temperature is still in ºC scale. Somehow Parameter 5 seems to not configure the sensor.

Parameter 5 value 28
Parameter 7 value 18
Parameter 12 value 1
Parameter 22 value 1

Motion Working - Temp Working - Light not working - Battery working

Update:
This is what I used for the DCH-Z120: SmartThingsPublic/devicetypes/smartthings/zwave-door-window-sensor.src/zwave-door-window-sensor.groovy at master · SmartThingsCommunity/SmartThingsPublic · GitHub

It recognized DCH-Z120 as: 3-in-1 Multisensor Plus (SG)

And for DCH-Z110:SmartThings/D-Link/DCH-Z110/DCH-Z110.DeviceType.groovy at master · jbtibor/SmartThings · GitHub

Hi, @renesys

Bit2 is reserved and any value is valid, the device may always have it at value 1, but the important thing is bit3 and 4 and with the value 28 they are at value 1. (0001 1100).

In the dth, readme.md file comes a note that says that the illuminance value is sent in % instead of lux.

NOTES Illuminance is reported as percentage (%), not lux. Unfortunately I don’t have the formula how this percentage is calculated.

It is possible that device is sending a value that produces an error in the libraries default hadler.

install the CLI and capture driver logs by varying the light, see what it sends.

This is a tutorial on how to do it.

2 Likes

Hi @renesys

In this version I configure the devices DLINK with the values during installation procedure:

DLINK_SENSORS = {
    MATCHING_MATRIX = {
      mfrs = 0x0108,
      product_types = 0x0002,
      product_ids = {0x000D, 0x000E}
    },
    CONFIGURATION = {
      {parameter_number = 5, size = 1, configuration_value = 24},  -- Operation Mode Bit3 y bit4= 1 report temp ºC & alluminance
      {parameter_number = 7, size = 1, configuration_value = 18}, -- Customer Function bit1=1, Enable sending motion OFF report
      {parameter_number = 12, size = 1, configuration_value = 1},  -- Auto Report Illumination Time
      {parameter_number = 20, size = 1, configuration_value = 10}, --Auto Report Tick Interval
      {parameter_number = 22, size = 1, configuration_value = 0} --Illumination Differential Report, default value = 0
    }
  },

@Mariano_Colmenarejo Hello,

CLI values here:

2023-12-20T22:27:23.247697211+00:00 DEBUG Z-Wave Sensor and Child Thermostat Mc D-link DCH-Z120 device thread event handled
2023-12-20T22:27:23.249071231+00:00 TRACE Z-Wave Sensor and Child Thermostat Mc Received event with handler unnamed
2023-12-20T22:27:23.257182952+00:00 INFO Z-Wave Sensor and Child Thermostat Mc <ZwaveDevice: 4eeb0f51-80ed-45ba-aab6-ddeb9bfc97cf [3F] (D-link DCH-Z120)> received Z-Wave command: {args={precision=0, scale=“PERCENTAGE”, sensor_type=“LUMINANCE”, sensor_value=99, size=1}, cmd_class=“SENSOR_MULTILEVEL”, cmd_id=“REPORT”, dst_channels={}, encap=“S0”, payload=“\x03\x01\x63”, src_channel=0, version=1}

2023-12-20T22:27:23.247697211+00:00 DEBUG Z-Wave Sensor and Child Thermostat Mc D-link DCH-Z120 device thread event handled
2023-12-20T22:27:23.249071231+00:00 TRACE Z-Wave Sensor and Child Thermostat Mc Received event with handler unnamed
2023-12-20T22:27:23.257182952+00:00 INFO Z-Wave Sensor and Child Thermostat Mc <ZwaveDevice: 4eeb0f51-80ed-45ba-aab6-ddeb9bfc97cf [3F] (D-link DCH-Z120)> received Z-Wave command: {args={precision=0, scale=“PERCENTAGE”, sensor_type=“LUMINANCE”, sensor_value=99, size=1}, cmd_class=“SENSOR_MULTILEVEL”, cmd_id=“REPORT”, dst_channels={}, encap=“S0”, payload=“\x03\x01\x63”, src_channel=0, version=1}

The values are in percentage, maximum is 99 when I point a phone flash directly in the sensor. The sensor sends the light every time it sends motion, so no need for extra configurations.


For this:

DLINK_SENSORS = {
MATCHING_MATRIX = {
mfrs = 0x0108,
product_types = 0x0002,
product_ids = {0x000D, 0x000E}
},
CONFIGURATION = {
{parameter_number = 5, size = 1, configuration_value = 24}, – Operation Mode Bit3 y bit4= 1 report temp ºC & alluminance
{parameter_number = 7, size = 1, configuration_value = 18}, – Customer Function bit1=1, Enable sending motion OFF report
{parameter_number = 12, size = 1, configuration_value = 1}, – Auto Report Illumination Time
{parameter_number = 20, size = 1, configuration_value = 10}, --Auto Report Tick Interval
{parameter_number = 22, size = 1, configuration_value = 0} --Illumination Differential Report, default value = 0
}
},

This is not ok for DCH-Z110, the open door sensor works on default values. And also I can’t add the driver Z-Wave Switch and Child Mc to the sensors DCH-Z110 or DCH-Z120

Only configurations for dch-z120 are:
Parameter 5, value 12
Parameter 7, value 22 is the best because sensor is more sensitive

@renesys

Now I modify it

@Mariano_Colmenarejo

What did you modify? :slight_smile:

@renesys

I have left the default values except parameters 5 and 7 with the values that you told me for the motion sensor.

DLINK_DCH_Z120 = {
    MATCHING_MATRIX = {
      mfrs = 0x0108,
      product_types = 0x0002,
      product_ids = 0x000D
    },
    CONFIGURATION = {
      {parameter_number = 5, size = 1, configuration_value = 12},  -- Operation Mode Bit3=1 ºC
      {parameter_number = 7, size = 1, configuration_value = 22}, -- Customer Function bit1=1, Enable sending motion OFF report
      {parameter_number = 12, size = 1, configuration_value = 12},  -- Auto Report Illumination Time. Default=12
      {parameter_number = 20, size = 1, configuration_value = 30}, --Auto Report Tick Interval. Default =30
      {parameter_number = 22, size = 1, configuration_value = 0} --Illumination Differential Report, default value = 0
    }
  },

Nothing is configured for the contact sensor in installation, will maintain the defaults it has.

The default illuminance hub libraries do not handle the scale: PERCENTAGE.

I have created a subdriver for these dlink sensors that will display values from 0% to 99%, but will display the lux units, since the illuminance capability in smartthings is defined with that lux unit.

The range of the smartthings capability is 0 to 100000 lux, once it works, I can try to do a conversion from % to Lux, assuming 0% = 0 lux and 99% = 100000 lux

Install this version with CLI command smartthings edge:drivers:install, and follow the steps in the CLI window.

You do not need uninstall devices

────────────────────────────────────────────────────
 Name         Z-Wave Sensor and Child Thermostat Mc 
 Version      2023-12-20T23:29:59.917117518
────────────────────────────────────────────────────

@Mariano_Colmenarejo I have installed using CLI, still does not show light. I have reset one motion sensor but does not add new parameters 5 or 7, added them manually but still doesn’t show light.

If it shows from 1 lux to 99 lux it is perfect :slight_smile: you don’t need to make a conversion. I don’t think it has 0 as a value, I think the values are from 1 to 99

It should work.

Capture the logs when the lighting changes, to see if any errors occur.

I’ll see it tomorrow, I’m going to sleep :zzz:

1 Like