tl;dr: To get this leak detector to work on the Z-Box, save the below template as a json file, upload that template to the device in your hub, and set parameter 121 to value 16.
Longer version: Moving my many years’ of old devices to the Z-Box hub I found that this leak detector is not properly supported. It shows up as a “Binary Sensor” which is okay, but it doesn’t handle when water is detected on the contacts at all. After some research, I was able to create a parameter template to upload to the device. That allowed changing what the sensor reports using parameter 121 from “basic set” to “binary sensor” and now it works fine as a leak sensor.
Here’s the json template:
{
"description": "Water leak Sensor DSB45",
"parameters": [
{
"parameterNumber": 1,
"label": {
"en": "Sensor Binary Report"
},
"description": {
"en": "Toggle the sensor binary report value"
},
"size": 1,
"defaultValue": 0,
"format": {
"type": "enumerated",
"values": [
{
"type": "value",
"value": 0,
"description": {
"en": "Open: 00, Close: FF"
}
},
{
"type": "value",
"value": 1,
"description": {
"en": "Open: FF, Close: 00"
}
}
]
}
},
{
"parameterNumber": 2,
"label": {
"en": "Wake up"
},
"description": {
"en": "Enable wake up 10 minutes when the power is switched on."
},
"size": 1,
"defaultValue": 0,
"format": {
"type": "enumerated",
"values": [
{
"type": "value",
"value": 0,
"description": {
"en": "Disable"
}
},
{
"type": "value",
"value": 1,
"description": {
"en": "Enable"
}
}
]
}
},
{
"parameterNumber": 3,
"label": {
"en": "Basic set value"
},
"description": {
"en": "Toggle the basic set value when the switch is opened /closed."
},
"size": 1,
"defaultValue": 0,
"format": {
"type": "enumerated",
"values": [
{
"type": "value",
"value": 0,
"description": {
"en": "Open: 00, Close: FF"
}
},
{
"type": "value",
"value": 1,
"description": {
"en": "Open: FF, Close: 00"
}
}
]
}
},
{
"parameterNumber": 121,
"label": {
"en": "Reports that will be sent"
},
"description": {
"en": "This is a 4-byte number, a bitwise combination of reports to be sent. Add the values for the reports to send: 1 - Battery - Send battery report when water changes; 16 - Sensor Binary - The Sensor Binary flag signals that Water Sensor sends; 256 - Basic Set - The Basic set flag signals that Water Sensor sends; 4096 - Alarm - The Alarm flag signals that Water Sensor sends. Note: Binary Sensor and Battery are the only useful reports with Z-Box."
},
"size": 4,
"defaultValue": 16,
"format": {
"type": "enumerated",
"values": [
{
"type": "value",
"value": 16,
"description": {
"en": "Report Binary Sensor only (16)"
}
},
{
"type": "value",
"value": 256,
"description": {
"en": "Report Basic Set only (256)"
}
},
{
"type": "value",
"value": 4096,
"description": {
"en": "Report Alarm only (4096)"
}
},
{
"type": "value",
"value": 4368,
"description": {
"en": "Report All except Battery (4368)"
}
},
{
"type": "value",
"value": 17,
"description": {
"en": "Report Binary Sensor and Battery (17)"
}
},
{
"type": "value",
"value": 257,
"description": {
"en": "Report Basic Set and Battery (257)"
}
},
{
"type": "value",
"value": 4097,
"description": {
"en": "Report Alarm and Battery (4097)"
}
},
{
"type": "value",
"value": 4369,
"description": {
"en": "Report All (4369)"
}
}
]
}
}
]
}