Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.94k stars 1.66k forks source link

[Wrong device]: Water leak detector detected as SNZB-03 #24141

Open robygi opened 1 week ago

robygi commented 1 week ago

Link

https://it.aliexpress.com/item/1005006966713885.html?spm=a2g0o.order_list.order_list_main.29.42823696auD73k&gatewayAdapt=glo2ita

Model

SQ510A

Description

Zigbee Water leakage detector

Vendor

Ewelink

Picture (link)

https://www.zigbee2mqtt.io/devices/TS0207_water_leak_detector_1.html

Database entry

{"id":4,"type":"EndDevice","ieeeAddr":"0xa4c138f219c054ff","nwkAddr":7582,"manufId":4742,"manufName":"eWeLink","powerSource":"Battery","modelId":"SNZB-03","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":1026,"inClusterList":[0,3,1,1280,32],"outClusterList":[25],"clusters":{"genBasic":{"attributes":{"hwVersion":0,"manufacturerName":"eWeLink"}},"ssIasZone":{"attributes":{"iasCieAddr":"0x8c65a3fffeb0972b","zoneState":1}},"genPollCtrl":{"attributes":{"checkinInterval":14400}},"genPowerCfg":{"attributes":{"batteryVoltage":27,"batteryPercentageRemaining":182}}},"binds":[{"cluster":32,"type":"endpoint","deviceIeeeAddress":"0x8c65a3fffeb0972b","endpointID":1},{"cluster":1,"type":"endpoint","deviceIeeeAddress":"0x8c65a3fffeb0972b","endpointID":1}],"configuredReportings":[{"cluster":1,"attrId":32,"minRepIntval":3600,"maxRepIntval":7200,"repChange":0},{"cluster":1,"attrId":33,"minRepIntval":3600,"maxRepIntval":7200,"repChange":0}],"meta":{}}},"appVersion":113,"stackVersion":2,"hwVersion":0,"swBuildId":"0122052017","zclVersion":3,"interviewCompleted":true,"meta":{"configured":-268385843},"lastSeen":1727610099649,"checkinInterval":3600}

Notes

I'm using Z2M in a docker container running on a Debian 12 machine. The coordinator is a Sonoff Zigbee 3.0 USB dongle Plus V2. The device is paired without problems but it is wrongly detected as a movement sensor SONOFF SNZB-03. The sensor is functioning, signaling Clear when no water is sensed and Occupied when water is sensed. Is there anything I could do to make it recognized as it should be?

mrwogu commented 1 week ago

Same here. Here is external definition:

const {battery, iasZoneAlarm} = require('zigbee-herdsman-converters/lib/modernExtend');

const definition = {
    zigbeeModel: ['SNZB-03'],
    model: 'SNZB-03',
    vendor: 'eWeLink',
    description: 'Automatically generated definition',
    extend: [battery(), iasZoneAlarm({"zoneType":"generic","zoneAttributes":["alarm_1","alarm_2","tamper","battery_low"]})],
    meta: {},
};

module.exports = definition;
KarlAzytzeen commented 1 day ago

Same here.

const {battery, iasZoneAlarm} = require('zigbee-herdsman-converters/lib/modernExtend');

const definition = { zigbeeModel: ['SNZB-03'], model: 'SNZB-03', vendor: 'eWeLink', description: 'Automatically generated definition', extend: [battery(), iasZoneAlarm({"zoneType":"generic","zoneAttributes":["alarm_1","alarm_2","tamper","battery_low"]})], meta: {}, };

module.exports = definition;

Should be identified as this: https://www.zigbee2mqtt.io/devices/TS0207_water_leak_detector.html or this https://www.zigbee2mqtt.io/devices/TS0207_water_leak_detector_1.html mine is the second one butr at logic and software level must be the same.

Koenkk commented 17 hours ago

Could you check if the issue is fixed with the following external converter:

KarlAzytzeen commented 11 hours ago

Thansk for your fast support. Sorry, didnt work. Here are images about how it is just in case i did something wrong. I fully reset the HA server. It is running HAOS bare metal. Sonnof dongle on ember driver. If you need any more info to adress this issue, please, let me know.

Captura de pantalla (626)

Captura de pantalla (627)

Captura de pantalla (628)

Koenkk commented 1 hour ago

@KarlAzytzeen could you provide the data/database.db entry of your device?