Skip to content

DDF for HZC S900W-ZG water leak sensor #6832

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

Merged

Conversation

agramner
Copy link
Contributor

@agramner agramner commented Mar 29, 2023

Copied DDF from bosch water leak sensor and modified for this sensor.

These entities popped up in Home Assistant for the sensor (after a restart of HA):
image

Confirmed that binary_sensor.water_x works
Haven't confirmed the rest of the sensors.
sensor.water_x_battery is still 100% so can't be sure it works.
Not sure if tampered is relevant for this sensor. How could that trigger?

fixes #6831

@BabaIsYou
Copy link
Contributor

Nice and easy ! ;-)

Just a few comments :

  • Would have may be used constant "$TYPE_WATER_LEAK_SENSOR" instead of directly "ZHAWater" as type for subdevice
  • Using fingerprint then perhaps have it complete with all in clusters, a suggestion as it works like this too.
  • Is it realistic to report battery every minute ? With the risk of ... draining battery ? Suggest a min of 3600 and max of 14400. BTW if battery changes for 1% it will reports.

About your question for tampered, not exposed by this device, could be deleted.

@agramner
Copy link
Contributor Author

Thanks for the suggestions :). Seems very reasonable.
What is fingerprint used for? Can't find any information about that.
The binding for cluster 0x500 doesn't have report. How does that work? When does it report changes?

@BabaIsYou
Copy link
Contributor

Thanks for the suggestions :). Seems very reasonable. What is fingerprint used for? Can't find any information about that. The binding for cluster 0x500 doesn't have report. How does that work? When does it report changes?

What a bunch of good questions ;-)
I can make reference to already answered parts here : #6368 (comment) ans there https://forum.phoscon.de/t/ddf-documentation/1401/5

@agramner agramner force-pushed the ddf-hcz-s900w-zg-water-leak-sensor branch from 05c5d23 to 3217c35 Compare March 30, 2023 21:32
@agramner
Copy link
Contributor Author

Thanks, pushed your suggested changes

@manup manup added this to the v2.22.0-beta milestone Apr 3, 2023
@manup manup merged commit a9131bb into dresden-elektronik:master Apr 5, 2023
@agramner agramner deleted the ddf-hcz-s900w-zg-water-leak-sensor branch April 13, 2023 16:38
ebaauw added a commit that referenced this pull request Sep 16, 2023
* Update general.xml

Additional clusters for IKEA Vindstyrka, see #6756.

* Update device_access_fn.cpp

Fix `numtostr` and add debug log message.

* Create vindstyrka_air_quality_sensor.json

See #6756.

* Update device_access_fn.cpp

Typo in comment.

* IKEA Symfonisk Sound Remote gen2

See #6775

* Update button_maps.json

Validator nonsense.

* Update button_maps.json

More validator nonsense

* Update button_maps.json

And even more validator nonsense

* Update button_maps.json

And even more validation nonsense

* Validation blues.

* Bug fix: SYMFONISK support broken

See #6803.

* Revert "Bug fix: SYMFONISK support broken"

This reverts commit af37958.

* Update general.xml

Remove workaround for GUI bug #6832.
Fix indentation.

* Update general.xml

Refine definitions of:
- _Hue Capabilities_ command in _Basic_ cluster;
- _Hue Button_ cluster.

* Reformat generic JSON files

- Indent of two spaces;
- Line termination using CR.

* Reformat `ikea` JSON files

- Indent of two spaces;
- Line termination using CR.

* Update light_zb3_C.json

Reformat

* Fix eslint warnings

* Use `let` instead of `var`

duktape doesn't support `let`, but loader translates it to `var`.
ebaauw added a commit that referenced this pull request Sep 16, 2023
* Update general.xml

Additional clusters for IKEA Vindstyrka, see #6756.

* Update device_access_fn.cpp

Fix `numtostr` and add debug log message.

* Create vindstyrka_air_quality_sensor.json

See #6756.

* Update device_access_fn.cpp

Typo in comment.

* IKEA Symfonisk Sound Remote gen2

See #6775

* Update button_maps.json

Validator nonsense.

* Update button_maps.json

More validator nonsense

* Update button_maps.json

And even more validator nonsense

* Update button_maps.json

And even more validation nonsense

* Validation blues.

* Bug fix: SYMFONISK support broken

See #6803.

* Revert "Bug fix: SYMFONISK support broken"

This reverts commit af37958.

* Update general.xml

Remove workaround for GUI bug #6832.
Fix indentation.

* Update general.xml

Refine definitions of:
- _Hue Capabilities_ command in _Basic_ cluster;
- _Hue Button_ cluster.

* Update resource.cpp

Bump `state/eventduration` to 32-bit unsigned integer.

* Update state_eventduration_item.json

Bump `state/eventduration` to 32-bit unsigned integer.

Dunno why it said "not implemented yet"; the Hue dimmer switch family has been using it for a long time.

* Update general.xml

FC06 cluster for Hue secure contact sensor.

* Create soc001_contact_sensor.json

* Reformat generic JSON files

- Indent of two spaces;
- Line termination using CR.

* Reformat `ikea` JSON files

- Indent of two spaces;
- Line termination using CR.

* Update light_zb3_C.json

Reformat

* Fix eslint warnings

* Use `let` instead of `var`

duktape doesn't support `let`, but loader translates it to `var`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HCZ electric S900W-ZG Water leak sensor
3 participants