-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 new thing type access point #17499
Conversation
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
It might make sense to inverse the "disabled" logic for this binding: it seems counter intuitive to switch an item ON to actually disable the access point... |
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
The more I thought about it and used the new things in my setup the more absurd it seemed to me. So I decided to invert the logic for now. Please advise if you think it should be done otherwise... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bundles/org.openhab.binding.unifi/src/main/resources/OH-INF/i18n/unifi_de.properties
Outdated
Show resolved
Hide resolved
...i/src/main/java/org/openhab/binding/unifi/internal/handler/UniFiAccessPointThingHandler.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.unifi/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
Co-authored-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: Thomas Lauterbach <2452988+DrRSatzteil@users.noreply.github.com>
Oh and I guess I have to add the site to the thing config just like for the Clients |
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the accessPoint. I've some style related comments.
...nhab.binding.unifi/src/main/java/org/openhab/binding/unifi/internal/api/dto/UniFiDevice.java
Outdated
Show resolved
Hide resolved
...g.unifi/src/main/java/org/openhab/binding/unifi/internal/api/cache/UniFiControllerCache.java
Outdated
Show resolved
Hide resolved
...i/src/main/java/org/openhab/binding/unifi/internal/handler/UniFiAccessPointThingHandler.java
Outdated
Show resolved
Hide resolved
...i/src/main/java/org/openhab/binding/unifi/internal/handler/UniFiAccessPointThingHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Only need to remove the already done ToDo
.
...i/src/main/java/org/openhab/binding/unifi/internal/handler/UniFiAccessPointThingHandler.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: Thomas Lauterbach <2452988+DrRSatzteil@users.noreply.github.com>
Yes that ToDo is done already. I removed the comment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only one minor comment, otherwise LGTM. I have also reopened a previous one regarding the channel id in the README.
bundles/org.openhab.binding.unifi/src/main/resources/OH-INF/i18n/unifi.properties
Outdated
Show resolved
Hide resolved
Signed-off-by: DrRSatzteil <thomas_lauterbach@arcor.de>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/ubiquiti-unifi-binding-feature-discussion/14520/1302 |
Signed-off-by: Thomas Lauterbach <thomas_lauterbach@arcor.de>
Signed-off-by: Thomas Lauterbach <thomas_lauterbach@arcor.de>
Signed-off-by: Thomas Lauterbach <thomas_lauterbach@arcor.de> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
[unifi] Add support for new thing type access point
Description
This PR adds a new thing type "accessPoint" to the unifi binding. Right now the binding allows you to disable complete wifi networks which affects all access points that are configured to provide this network. However it is not yet possible to just disable individual access points to disable wifi coverage in certain areas. Also disabling access points will switch off all radio activity of the device and may be used to reduce emissions and save power in in times when no wifi coverage is needed for the area covered by this access point.
Testing
https://openhab.jfrog.io/artifactory/libs-pullrequest-local/org/openhab/addons/bundles/org.openhab.binding.unifi/4.3.0-SNAPSHOT/org.openhab.binding.unifi-4.3.0-SNAPSHOT.jar