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
[iotawatt] Initial contribution #16491
base: main
Are you sure you want to change the base?
Conversation
This pull request has been mentioned on openHAB Community. There might be relevant details there: |
4bc5416
to
17eb8d7
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.
Thansk for this contribution. In general it seems already solid. Besides the minor comments, i guess there are two areas that i have questions about:
- exception handling / thing status details, see comments.
- thing-types. I see several power/energy rel;ated channels that have diffent quantitytypes declared compare to others bindings that have the same channels. Please double check.
public IoTaWattHandlerFactory() { | ||
this.insecureClient = new HttpClient(new SslContextFactory.Client(true)); | ||
try { | ||
this.insecureClient.start(); |
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.
As you manually create and start the client. You should also stop and dispose it in this class to prevent any leaks.
...ding.iotawatt/src/main/java/org/openhab/binding/iotawatt/internal/client/IoTaWattClient.java
Outdated
Show resolved
Hide resolved
...ding.iotawatt/src/main/java/org/openhab/binding/iotawatt/internal/client/IoTaWattClient.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.iotawatt/src/main/resources/OH-INF/addon/addon.xml
Show resolved
Hide resolved
bundles/org.openhab.binding.iotawatt/src/main/resources/OH-INF/i18n/iotawatt.properties
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.iotawatt/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.iotawatt/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.iotawatt/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
1e99230
to
2f66691
Compare
Signed-off-by: Peter Rosenberg <prosenb.dev@gmail.com>
Signed-off-by: Peter Rosenberg <prosenb.dev@gmail.com>
Signed-off-by: Peter Rosenberg <prosenb.dev@gmail.com>
Signed-off-by: Peter Rosenberg <prosenb.dev@gmail.com>
Signed-off-by: Peter Rosenberg <prosenb.dev@gmail.com>
Signed-off-by: Peter Rosenberg <prosenb.dev@gmail.com>
Signed-off-by: Peter Rosenberg <prosenb.dev@gmail.com>
Co-authored-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Pete <8108165+PRosenb@users.noreply.github.com>
…/binding/iotawatt/internal/handler/IoTaWattHandler.java Co-authored-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Pete <8108165+PRosenb@users.noreply.github.com>
…/binding/iotawatt/internal/handler/IoTaWattHandler.java Co-authored-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Pete <8108165+PRosenb@users.noreply.github.com>
Signed-off-by: Peter Rosenberg <prosenb.dev@gmail.com>
…/thing/thing-types.xml Co-authored-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Pete <8108165+PRosenb@users.noreply.github.com>
…/thing/thing-types.xml Co-authored-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Pete <8108165+PRosenb@users.noreply.github.com>
…/thing/thing-types.xml Co-authored-by: lsiepel <leosiepel@gmail.com> Signed-off-by: Pete <8108165+PRosenb@users.noreply.github.com>
Signed-off-by: Peter Rosenberg <prosenb.dev@gmail.com>
Signed-off-by: Peter Rosenberg <prosenb.dev@gmail.com>
2f66691
to
89bfd10
Compare
Signed-off-by: Peter Rosenberg <prosenb.dev@gmail.com>
Signed-off-by: Peter Rosenberg <prosenb.dev@gmail.com>
Signed-off-by: Peter Rosenberg <prosenb.dev@gmail.com>
Signed-off-by: Peter Rosenberg <prosenb.dev@gmail.com>
Signed-off-by: Peter Rosenberg <prosenb.dev@gmail.com>
a03441a
to
b7a6564
Compare
Signed-off-by: Peter Rosenberg <prosenb.dev@gmail.com>
Signed-off-by: Peter Rosenberg <prosenb.dev@gmail.com>
Signed-off-by: Peter Rosenberg <prosenb.dev@gmail.com>
Signed-off-by: Peter Rosenberg <prosenb.dev@gmail.com>
Signed-off-by: Peter Rosenberg <prosenb.dev@gmail.com>
Signed-off-by: Peter Rosenberg <prosenb.dev@gmail.com>
This PR adds a new binding for IoTaWatt, an open source power measuring device.
The first version aims to get feedback from the community and provide initial, basic functionality to measure power consumption.
Limitations of this version:
Input
channels with select valuesShort discussion about the topic: Forum thread IoTaWatt
Any kinds of feedback is welcome, thank you.
Snapshot Download