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

feat!: Improve permit join. #1214

Merged
merged 3 commits into from
Oct 11, 2024
Merged

Conversation

Nerivec
Copy link
Collaborator

@Nerivec Nerivec commented Oct 7, 2024

  • Match Controller API more closely to Adapter: (time, device?)
  • Clamp time to [0-254] (never forever)
  • Remove "forever permit join" (security concerns + sometimes unstable behavior)
  • Remove reason (unused)
  • getPermitJoinTimeout returns [0-254] range, with 0 being "not permitting joining".
  • Remove getPermitJoin => use getPermitJoinTimeout instead (boolean easily determined on other end of mqtt transaction -see below-)
  • For Z2M: Less unnecessary mqtt data required/published in various places (/bridge/info, /request/permit_join)

TODO:

  • fix: Improve permit join zigbee2mqtt#24257
  • Remove unnecessary mqtt publish of /bridge/info every time the permit join timer ticks (the other end of mqtt transaction should be responsible for the ticks, and z2m should only publish begin -possibly end for extra sync purposes-).

@Koenkk
Copy link
Owner

Koenkk commented Oct 10, 2024

Could you target this against feat/2.0.0?

@Nerivec Nerivec changed the base branch from master to feat/3.0.0 October 10, 2024 16:33
@Koenkk Koenkk marked this pull request as ready for review October 11, 2024 14:06
@Koenkk Koenkk merged commit 4367bec into Koenkk:feat/3.0.0 Oct 11, 2024
1 check passed
@Nerivec Nerivec deleted the 2.0.0-permit-join branch November 28, 2024 13:16
Koenkk pushed a commit that referenced this pull request Dec 1, 2024
* feat!: Improve permit join.

* Fix permitJoinTimeout never `undefined` (`0` equals disabled).

* Dont allow >254sec for permit join.
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.

[Proposal] Removal of "forever" Permit Join
2 participants