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

[unifi] Add support for guest Wi-Fi vouchers #14284

Merged
merged 3 commits into from
Jan 28, 2023

Conversation

mherwege
Copy link
Contributor

@mherwege mherwege commented Jan 27, 2023

This PR adds support for creating guest wifi hotspot vouchers. The PR adds channels to the site thing for showing the next available hotspot voucher and triggering generation for new hotspot vouchers. Channel configuration paramaters allow tailoring the specifications of the vouchers generated.

Signed-off-by: Mark Herwege [email protected]

Signed-off-by: Mark Herwege <[email protected]>
@mherwege mherwege added the enhancement An enhancement or new feature for an existing add-on label Jan 27, 2023
Signed-off-by: Mark Herwege <[email protected]>
@mherwege mherwege changed the title [unifi] guest wifi vouchers [unifi] Guest wifi vouchers Jan 27, 2023
Copy link
Member

@Hilbrand Hilbrand left a comment

Choose a reason for hiding this comment

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

Just some style comments.

You could also consider adding an action with the parameters. That would make it possible to more dynamically create the vouchers from rules, and/or create virtual items where the user can set the configuration options that are passed when the rule is triggered.

Signed-off-by: Mark Herwege <[email protected]>
@mherwege
Copy link
Contributor Author

mherwege commented Jan 27, 2023

@Hilbrand thank you for the quick review. I incorporated your feedback, but did not implement an action yet.
I have not done that before, so would need a bit more time for it. It makes sense though, but probably as an alternative to and on top of the simple solution with already in this PR. I can do this in this PR or do it in a follow-up PR.

Copy link
Member

@Hilbrand Hilbrand left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@jlaur jlaur left a comment

Choose a reason for hiding this comment

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

Thanks for adding this feature, looks good to me!

@jlaur jlaur merged commit 16f3a3e into openhab:main Jan 28, 2023
@jlaur jlaur added this to the 4.0 milestone Jan 28, 2023
@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/unifi-binding-beta-3-2-0-4-0-0/131156/1

@jlaur jlaur changed the title [unifi] Guest wifi vouchers [unifi] Add guest Wi-Fi vouchers Feb 5, 2023
@jlaur jlaur changed the title [unifi] Add guest Wi-Fi vouchers [unifi] Add support for guest Wi-Fi vouchers Feb 5, 2023
nemerdaud pushed a commit to nemerdaud/openhab-addons that referenced this pull request Feb 28, 2023
* guest voucher support

Signed-off-by: Mark Herwege <[email protected]>
renescherer pushed a commit to renescherer/openhab-addons that referenced this pull request Mar 23, 2023
* guest voucher support

Signed-off-by: Mark Herwege <[email protected]>
FordPrfkt pushed a commit to FordPrfkt/openhab-addons that referenced this pull request Apr 20, 2023
* guest voucher support

Signed-off-by: Mark Herwege <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants