-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Develco water leak detector FLSZB-110 #7219
Comments
I tried following guide to add this device in a docker compose instance, but not there fully "FLSZB-110.js" any ideas? This should probably be inserted later in Develco.js FLSZB-110.js const definition = { module.exports = definition; |
Here is the manufacturer page about FLSZB-110, One can find "Water Leak Detector Technical Manual" from here also Seems there was try to add it from deconz earlier also |
Here the json line from database.db
|
It should work with the following external converter config (see https://www.zigbee2mqtt.io/how_tos/how_to_support_new_devices.html#how-to-support-new-devices how to enable it) const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const extend = require('zigbee-herdsman-converters/lib/extend');
const e = exposes.presets;
const ea = exposes.access;
const definition = {
zigbeeModel: ['FLSZB-110'],
model: 'FLSZB-110',
vendor: 'Develco',
description: 'Flood alarm device ',
fromZigbee: [fz.ias_water_leak_alarm_1],
toZigbee: [],
exposes: [e.battery_low(), e.tamper(), e.water_leak()],
};
module.exports = definition; |
It's works in HA @Koenkk , From the manual I assume:
|
For temperature try with: const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const extend = require('zigbee-herdsman-converters/lib/extend');
const e = exposes.presets;
const ea = exposes.access;
const definition = {
zigbeeModel: ['FLSZB-110'],
model: 'FLSZB-110',
vendor: 'Develco',
description: 'Flood alarm device ',
fromZigbee: [fz.ias_water_leak_alarm_1, fz.temperature],
toZigbee: [],
exposes: [e.battery_low(), e.tamper(), e.water_leak(), e.temperature()],
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(1);
const binds = ['msTemperatureMeasurement'];
await reporting.temperature(endpoint);
},
};
module.exports = definition; You might need to repair the device, if it doesn't work after that please share the data/database.db entry. |
Seems to be some error from the logs, this is after deleting all database.db and rejoin the devices
And here the database.db
|
And with: const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const extend = require('zigbee-herdsman-converters/lib/extend');
const e = exposes.presets;
const ea = exposes.access;
const definition = {
zigbeeModel: ['FLSZB-110'],
model: 'FLSZB-110',
vendor: 'Develco',
description: 'Flood alarm device ',
fromZigbee: [fz.ias_water_leak_alarm_1, fz.temperature],
toZigbee: [],
exposes: [e.battery_low(), e.tamper(), e.water_leak(), e.temperature()],
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(38);
const binds = ['msTemperatureMeasurement'];
await reporting.temperature(endpoint);
},
};
module.exports = definition; |
Some new is found in database.db
|
And with: const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const extend = require('zigbee-herdsman-converters/lib/extend');
const e = exposes.presets;
const ea = exposes.access;
const definition = {
zigbeeModel: ['FLSZB-110'],
model: 'FLSZB-110',
vendor: 'Develco',
description: 'Flood alarm device ',
fromZigbee: [fz.ias_water_leak_alarm_1, fz.temperature],
toZigbee: [],
exposes: [e.battery_low(), e.tamper(), e.water_leak(), e.temperature()],
meta: {configureKey: 1},
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(38);
const binds = ['msTemperatureMeasurement'];
await reporting.temperature(endpoint);
},
};
module.exports = definition; |
@andy778 added, What do you mean with |
By looking on the other develco devices I assembled, and that actually reports battery voltage in mV ( But I haven't figured out how to get parsing working to get it into the framework) zigbee2mqtt | Zigbee2MQTT:info 2021-05-18 21:14:12: MQTT publish: topic 'zigbee2mqtt/0x0015bc0033000b82', payload '{"battery":null,"battery_low":false,"linkquality":89,"tamper":false,"temperature":23.87,"voltage":3100,"water_leak":false}
|
Good, added the voltage. |
Configure key is not needed anymore in the latest dev (only in 1.18.3 release) |
Yes you are right, I was just pasting in the code first in 1.18.3 "FLSZB-110.js" now I have changed to the "latest-dev" tag docker image and no errors from "docker-compose logs zigbee2mqtt" Only thing I see is that it should be added unit mV instead of V, and I assume the image comes on the release... and here the database.db just for info
|
Fixed, assuming this can be closed now. Changes will be available in the dev branch tomorrow (https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html) |
This device was paired but not supported: Develco water leak detector FLSZB-110
The text was updated successfully, but these errors were encountered: