Skip to content
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

[New device support]: Tuya Zigbee Water Leak Detector #24759

Closed
MilesTEG1 opened this issue Nov 13, 2024 · 7 comments
Closed

[New device support]: Tuya Zigbee Water Leak Detector #24759

MilesTEG1 opened this issue Nov 13, 2024 · 7 comments
Labels
new device support New device support request

Comments

@MilesTEG1
Copy link

MilesTEG1 commented Nov 13, 2024

Link

https://fr.aliexpress.com/item/1005006512619030.html

Database entry

{"id":74,"type":"EndDevice","ieeeAddr":"0xa4c1382c55337701","nwkAddr":59608,"manufId":4742,"manufName":"_TZ3000_upgcbody","powerSource":"Battery","modelId":"SNZB-05","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":1026,"inClusterList":[0,3,1,1280,32],"outClusterList":[25],"clusters":{"genBasic":{"attributes":{"hwVersion":0}},"ssIasZone":{"attributes":{"iasCieAddr":"0x847127fffedfe3cd","zoneState":1}},"genPollCtrl":{"attributes":{"checkinInterval":14400}},"genPowerCfg":{"attributes":{"batteryPercentageRemaining":114}}},"binds":[{"cluster":32,"type":"endpoint","deviceIeeeAddress":"0x847127fffedfe3cd","endpointID":1},{"cluster":1,"type":"endpoint","deviceIeeeAddress":"0x847127fffedfe3cd","endpointID":1}],"configuredReportings":[{"cluster":1,"attrId":33,"minRepIntval":3600,"maxRepIntval":65000,"repChange":10}],"meta":{}}},"appVersion":113,"stackVersion":2,"hwVersion":0,"swBuildId":"0122052017","zclVersion":3,"interviewCompleted":true,"meta":{"configured":332242049},"lastSeen":1731510955140,"checkinInterval":3600}

Zigbee2MQTT version

1.41.0

Comments

I paired the device, a Tuya Zigbee Water Leak Detector that is a Tuya TS0207_water_leak_detector_1, but it doesn't been supported, nor detected as TS0207_water_leak_detector_1.
Instead, Z2M says that it's unsupported and this:

  • Modèle Zigbee: SNZB-05
  • Constructeur Zigbee: _TZ3000_upgcbody

It should be detected as TS0207_water_leak_detector_1.

External definition

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

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

module.exports = definition;

What does/doesn't work with the external definition?

alarm_1 is working: a water leak is detect when sensor in water.
alarm_2 isn't working: nothing happens when sensor in water.

tamper: I don't know how to trigger this.
battery_low: my battery is at 57%, so I don't know if it's working for now.
battery indicate a %, so it seems to be working.

@MilesTEG1 MilesTEG1 added the new device support New device support request label Nov 13, 2024
@Koenkk
Copy link
Owner

Koenkk commented Nov 14, 2024

Added!

Changes will be available in the dev branch in a few hours from now.

@MilesTEG1
Copy link
Author

Hello @Koenkk Nice! Thank you!
I have to figure out how to change the HA Z2M Addon to the Dev Branch without loosing any configuration data :) If it's possible.

@MilesTEG1
Copy link
Author

MilesTEG1 commented Nov 14, 2024

@Koenkk
I just switched to the Edge version on HA Addon (after refreshing the repository as described in the Edge version doc).
I put my configuration from stable version, and launched it.
No problems, all my devices are working fine.

But... my leak sensor isn't detected as a TS0207_water_leak_detector_1 as it should be, but it is detected as a IH-K665 which is not.
image

Can you do a correction of that please?
and reopen this issue for now until this is fixed?

By the way, the exposes sensors are OK.
If I simulate a water leak, it's being detected:
CleanShot 2024-11-14 at 23 36 35@2x

Thanks very much.

Koenkk added a commit to Koenkk/zigbee-herdsman-converters that referenced this issue Nov 18, 2024
@Koenkk
Copy link
Owner

Koenkk commented Nov 18, 2024

Fixed!

Changes will be available in the dev branch in a few hours from now.

@MilesTEG1
Copy link
Author

Thanks you very much! 😇

@Peter915671
Copy link

Isn’t SNZB-05 Sonoff?
Wouldn’t it be better to use that name instead of Tuya?

@cypherbits
Copy link

cypherbits commented Dec 28, 2024

Upgraded to 1.42.0 and my device (https://es.aliexpress.com/item/1005005942065429.html) changed its image to this commit one. I mean, my device is round like the link... and the id is _TZ3000_upgcbody too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new device support New device support request
Projects
None yet
Development

No branches or pull requests

4 participants