-
-
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
[asuswrt] Initial contribution - new binding to get informations from Asus-Routers #13815
Conversation
75ba861
to
c17f5ca
Compare
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 submitting the PR! I also have an ASUS router running Merlin and had plans to create a binding for it one day. So now I can help with testing/reviewing instead. 😉 Here are a few initial comments while quickly scrolling through the code:
...ontrol/src/main/java/org/openhab/binding/tapocontrol/internal/TapoControlHandlerFactory.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.asuswrt/src/main/feature/feature.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.asuswrt/src/main/resources/OH-INF/i18n/asuswrt.properties
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.asuswrt/src/main/resources/OH-INF/binding/binding.xml
Outdated
Show resolved
Hide resolved
You can probably fix the build by also adding the add-on to: bom/openhab-addons/pom.xml |
409b9ec
to
18368a2
Compare
Now that the build succeeds, the latest PR build is also available here: You can bypass the annoying JFrog login screen by clicking the (hard to see) grey "X" in the top right corner... or just use |
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/asuswrt-new-binding-to-get-infromations-from-asus-routers/141431/15 |
bundles/org.openhab.binding.asuswrt/src/main/resources/OH-INF/binding/binding.xml
Outdated
Show resolved
Hide resolved
Signed-off-by: Christian Wild <christian@wild-cs.de>
Signed-off-by: Christian Wild <christian@wild-cs.de>
Signed-off-by: Christian Wild <christian@wild-cs.de>
Signed-off-by: Christian Wild <christian@wild-cs.de>
Signed-off-by: Christian Wild <christian@wildclan.de>
* revised complete code Signed-off-by: Christian Wild <christian@wildclan.de>
Signed-off-by: Christian Wild <christian@wildclan.de>
438ec0d
to
b85a650
Compare
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.
Some feedback, did not look at the .java files.
bundles/org.openhab.binding.asuswrt/src/main/resources/OH-INF/i18n/tapocontrol.properties
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.asuswrt/src/main/resources/OH-INF/i18n/asuswrt.properties
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.asuswrt/src/main/resources/OH-INF/addon/addon.xml
Outdated
Show resolved
Hide resolved
...swrt/src/main/java/org/openhab/binding/asuswrt/internal/constants/AsuswrtErrorConstants.java
Show resolved
Hide resolved
bundles/org.openhab.binding.asuswrt/src/main/resources/OH-INF/addon/addon.xml
Show resolved
Hide resolved
Co-authored-by: Wouter Born <github@maindrain.net> Signed-off-by: Christian Wild <christian@wildclan.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 adressing the comments and rebasing the PR.
I finally found some time to give it a test and it works very well so far. 👍
I've also added a few more review comments.
bundles/org.openhab.binding.asuswrt/src/main/resources/OH-INF/thing/client.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.asuswrt/src/main/resources/OH-INF/i18n/asuswrt.properties
Outdated
Show resolved
Hide resolved
...ng.asuswrt/src/main/java/org/openhab/binding/asuswrt/internal/structures/AsuswrtTraffic.java
Outdated
Show resolved
Hide resolved
...binding.asuswrt/src/main/java/org/openhab/binding/asuswrt/internal/things/AsuswrtClient.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.asuswrt/src/main/resources/OH-INF/thing/channels.xml
Show resolved
Hide resolved
...rt/src/main/java/org/openhab/binding/asuswrt/internal/constants/AsuswrtBindingConstants.java
Outdated
Show resolved
Hide resolved
...rt/src/main/java/org/openhab/binding/asuswrt/internal/constants/AsuswrtBindingConstants.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Wouter Born <github@maindrain.net> Signed-off-by: Christian Wild <christian@wildclan.de>
Thanks for reviewing 👍 |
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.
Thank you for all the rework! I found some more time to review this and added some more comments:
...ding.asuswrt/src/main/java/org/openhab/binding/asuswrt/internal/AsuswrtDiscoveryService.java
Outdated
Show resolved
Hide resolved
...ding.asuswrt/src/main/java/org/openhab/binding/asuswrt/internal/AsuswrtDiscoveryService.java
Outdated
Show resolved
Hide resolved
...ding.asuswrt/src/main/java/org/openhab/binding/asuswrt/internal/AsuswrtDiscoveryService.java
Outdated
Show resolved
Hide resolved
...ding.asuswrt/src/main/java/org/openhab/binding/asuswrt/internal/AsuswrtDiscoveryService.java
Outdated
Show resolved
Hide resolved
...ding.asuswrt/src/main/java/org/openhab/binding/asuswrt/internal/AsuswrtDiscoveryService.java
Outdated
Show resolved
Hide resolved
...binding.asuswrt/src/main/java/org/openhab/binding/asuswrt/internal/helpers/AsuswrtUtils.java
Outdated
Show resolved
Hide resolved
...binding.asuswrt/src/main/java/org/openhab/binding/asuswrt/internal/helpers/AsuswrtUtils.java
Outdated
Show resolved
Hide resolved
...binding.asuswrt/src/main/java/org/openhab/binding/asuswrt/internal/helpers/AsuswrtUtils.java
Outdated
Show resolved
Hide resolved
...binding.asuswrt/src/main/java/org/openhab/binding/asuswrt/internal/helpers/AsuswrtUtils.java
Outdated
Show resolved
Hide resolved
...binding.asuswrt/src/main/java/org/openhab/binding/asuswrt/internal/helpers/AsuswrtUtils.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Wouter Born <github@maindrain.net> Signed-off-by: Christian Wild <40909464+wildcs@users.noreply.github.com>
Co-authored-by: Wouter Born <github@maindrain.net> Signed-off-by: Christian Wild <christian@wildclan.de>
Okay i think i changed almost of your requested changes. |
Signed-off-by: Wouter Born <github@maindrain.net>
Signed-off-by: Wouter Born <github@maindrain.net>
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.
Thank you for the nice binding! 👍 It still works after all the changes. I also did some more cleanups so it can be merged and be part of the OH4 M5 milestone. 🙂
Signed-off-by: Christian Wild <christian@wildclan.de> Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
[ASUSWRT]
This is the initial contribution for my new binding to get informations from Asus-Routers.
It's possible to connect to routers from asus with AsusWRT or AsusWRT-Merlin OS an get some networking informations.
You can also monitor connected clients.
Readme and Download: here
Link to community thread: here