-
-
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
[amberelectric] Initial contribution #16850
Conversation
Signed-off-by: Paul Smedley <paul@smedley.id.au>
Signed-off-by: Paul Smedley <paul@smedley.id.au>
Signed-off-by: Paul Smedley <paul@smedley.id.au>
Signed-off-by: Paul Smedley <paul@smedley.id.au>
Signed-off-by: Paul Smedley <paul@smedley.id.au>
Signed-off-by: Paul Smedley <paul@smedley.id.au>
I've done my best to include as many relevant fixes from #16667 as possible, as all my bindings run off a similar codebase. |
Signed-off-by: Paul Smedley <paul@smedley.id.au>
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 your contribution! I have provided some quick feedback from a first round. In general the code looks good and to the point.
bundles/org.openhab.binding.amberelectric/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.amberelectric/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.amberelectric/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.amberelectric/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.amberelectric/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
...relectric/src/main/java/org/openhab/binding/amberelectric/internal/AmberElectricHandler.java
Outdated
Show resolved
Hide resolved
...relectric/src/main/java/org/openhab/binding/amberelectric/internal/AmberElectricHandler.java
Show resolved
Hide resolved
...relectric/src/main/java/org/openhab/binding/amberelectric/internal/AmberElectricHandler.java
Outdated
Show resolved
Hide resolved
...relectric/src/main/java/org/openhab/binding/amberelectric/internal/AmberElectricHandler.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.amberelectric/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
Signed-off-by: Paul Smedley <paul@smedley.id.au>
Signed-off-by: Paul Smedley <paul@smedley.id.au>
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 quickly addressing review comments. 👍 I have provided a few new comments. I don't see any major issues in general in the binding, so I'll see if I can complete my review tomorrow.
...relectric/src/main/java/org/openhab/binding/amberelectric/internal/AmberElectricHandler.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.amberelectric/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.amberelectric/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.amberelectric/src/main/resources/OH-INF/thing/thing-types.xml
Show resolved
Hide resolved
bundles/org.openhab.binding.amberelectric/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
...ectric/src/main/java/org/openhab/binding/amberelectric/internal/AmberElectricWebTargets.java
Outdated
Show resolved
Hide resolved
…H-INF/thing/thing-types.xml Co-authored-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: Paul Smedley <paul@smedley.id.au>
Co-authored-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: Paul Smedley <paul@smedley.id.au>
Co-authored-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: Paul Smedley <paul@smedley.id.au>
…enhab/binding/amberelectric/internal/AmberElectricWebTargets.java Co-authored-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: Paul Smedley <paul@smedley.id.au>
Signed-off-by: Paul Smedley <paul@smedley.id.au>
Signed-off-by: Paul Smedley <paul@smedley.id.au>
4.1.3 |
Signed-off-by: Paul Smedley <paul@smedley.id.au>
That should be fine since openhab/openhab-core#4016 was backported.
And what is your currency provider settings when you are getting the error? Did you have a look at #16085 and #16217, I don't know if this would provide any hints? |
...relectric/src/main/java/org/openhab/binding/amberelectric/internal/AmberElectricHandler.java
Outdated
Show resolved
Hide resolved
The currency provider setting was not set when I was getting the error. |
Signed-off-by: Paul Smedley <paul@smedley.id.au>
As already posted, have a look here: Lines 500 to 513 in 790d4d0
The issue is that AUD is not known as a valid unit when no currency provider is set. It's not ideal, but currently has to be handled/worked around. |
Signed-off-by: Paul Smedley <paul@smedley.id.au>
Should be fixed in latest commit :) |
...relectric/src/main/java/org/openhab/binding/amberelectric/internal/AmberElectricHandler.java
Outdated
Show resolved
Hide resolved
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, thanks!
Now, you could add your binding's logo to the openHAB website. See https://next.openhab.org/docs/developer/addons/#add-your-add-on-s-logo-to-the-openhab-website-and-the-ui
@psmedley - sorry, two small things before merging:
|
...relectric/src/main/java/org/openhab/binding/amberelectric/internal/AmberElectricHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Paul Smedley <paul@smedley.id.au>
Just wanted to say thanks for @jlaur for his prompt reviews and patience with me in getting this to the point of being merged! |
https://github.com/psmedley/openhab-docs/tree/amberelectric is ready to create the PR once merge occurs. |
Signed-off-by: Paul Smedley <paul@smedley.id.au>
Signed-off-by: Paul Smedley <paul@smedley.id.au> Signed-off-by: Patrik Gfeller <patrik.gfeller@proton.me>
Signed-off-by: Paul Smedley <paul@smedley.id.au>
Signed-off-by: Paul Smedley <paul@smedley.id.au>
No description provided.