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

Add endpoint capability to lock type #25359

Merged
merged 7 commits into from
Jan 3, 2025

Conversation

Zitrium31
Copy link
Contributor

@Zitrium31 Zitrium31 commented Dec 28, 2024

Purpose of this change:

  • add endpoint support to lock type in homeassistant.ts
  • add test for home assistant discovery config for such device with made of several endpoints using state key in toZigbee converter : _onOff, windowCovering, lock_

In short, this change supplements issue #24352 for lock.

Prerequisite : Added tests required the dummy garage door and lock device model GADOLOCK in custom_devices_diy definitions with PR #8529 in ZHC repo.

🙂 Thanks in advance for the review of this PR. Should you have any remark, please ask.

@Nerivec
Copy link
Collaborator

Nerivec commented Dec 28, 2024

This should be implemented for an actual device, not a dummy one.

  • Don't want dummy devices bloating converters
  • Don't want a crafted dummy device to direct features testing since that could be different from an actual device
  • If no actual device uses this, no point in having it

This device does not fulfill zhc policy because it does not exist in real life.

This reverts commit 13a5f7c.
@Zitrium31
Copy link
Contributor Author

✅ Dummy garage door and lock device model GADOLOCK removed in zhc custom_devices_diy (Koenkk/zigbee-herdsman-converters@df76d75)
✅ And associated tests reverted (76b33da)

Zitrium31 and others added 2 commits January 3, 2025 20:25
No lock with endpoint available at the time being
Tested locally with a DIY lock device made of several endpoints
@Koenkk Koenkk enabled auto-merge (squash) January 3, 2025 19:57
@Koenkk Koenkk merged commit c586df8 into Koenkk:dev Jan 3, 2025
11 checks passed
@Koenkk
Copy link
Owner

Koenkk commented Jan 3, 2025

Thanks!

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

Successfully merging this pull request may close these issues.

3 participants