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

Hide double/long press action in Home app when disabled (#143) #144

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dominick-han
Copy link

@dominick-han dominick-han commented Dec 26, 2023

Only add DOUBLE_PRESS/LONG_PRESS to ProgrammableSwitchEvent's validValues when the option(s) are enabled

Tested locally on all 4 scenarios

  • Single
  • Single/Double
  • Single/Long
  • Single/Double/Long

One issue: When changing between enabled/disabled, user needs to delete the accessary cache on Homebridge web UI, then restart the bridge. User will lose existing settings

(Might look into this later)

dependabot bot and others added 2 commits December 1, 2023 16:38
Bumps [jsonwebtoken](https://github.com/auth0/node-jsonwebtoken) to 9.0.2 and updates ancestor dependency [homebridge-config-ui-x](https://github.com/homebridge/homebridge-config-ui-x). These dependencies need to be updated together.


Updates `jsonwebtoken` from 8.5.1 to 9.0.2
- [Changelog](https://github.com/auth0/node-jsonwebtoken/blob/master/CHANGELOG.md)
- [Commits](auth0/node-jsonwebtoken@v8.5.1...v9.0.2)

Updates `homebridge-config-ui-x` from 4.50.5 to 4.53.0
- [Release notes](https://github.com/homebridge/homebridge-config-ui-x/releases)
- [Changelog](https://github.com/homebridge/homebridge-config-ui-x/blob/latest/CHANGELOG.md)
- [Commits](homebridge/homebridge-config-ui-x@4.50.5...4.53.0)

---
updated-dependencies:
- dependency-name: jsonwebtoken
  dependency-type: indirect
- dependency-name: homebridge-config-ui-x
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
)

Only add DOUBLE_PRESS/LONG_PRESS to ProgrammableSwitchEvent's validValues when the option(s) are enabled
Copy link
Author

@dominick-han dominick-han left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested this locally
Only issue is cached accessory not updating, which seems to be a homebridge issue?

@thenewwazoo
Copy link
Owner

I thiiiiiiink it’s a HomeKit issue, where characteristic existence/absence is immutable after instantiation (but I’m not an authority)

@dominick-han
Copy link
Author

Sooo, should we add a message in the webpage saying if user enable/disables long/double click, they should remove it from cache and re-generate?

@donavanbecker
Copy link
Collaborator

@dominick-han thoughts on #157

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