-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[GPIO] Update GPIO binding to fix issues and provide new functionality #13643
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
Conversation
|
PR does not compile and is not properly signed. |
|
Unfortunately, my main programming language is not Java. I'm fighting with
the Null annotations. It compiles without warning on my Centos 8
environment with openjdk 11.0.15 2022-04-19 LTS, but does not in your
environment. I have to figure out what the differences are.
Regards,
Jeremy
…On Thu, Nov 3, 2022 at 4:08 AM lolodomo ***@***.***> wrote:
PR does not compile and is not properly signed.
—
Reply to this email directly, view it on GitHub
<#13643 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATUYTTPR5EFCZKDKERAHTGLWGNXHNANCNFSM6AAAAAARUTDWIY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
|
The PR is now building. But not yet properly signed off. |
…ality. * Add the ability to recover from network disconnects to pigpiod. * Provide actions to what the binding does on pigpiod connect/disconnect/reconnect. * Provide the ability to pulse outputs in a one-shot/momentary fashion. * Provide edge level configuration for gpio outputs. Workaround: openhab#11039 Fixes: openhab#11038 Fixes: openhab#13376 Signed-off-by: Jeremy Rumpf <rumpf.99@gmail.com>
Signed-off-by: Jeremy Rumpf <rumpf.99@gmail.com>
Signed-off-by: Jeremy Rumpf <rumpf.99@gmail.com>
Signed-off-by: Jeremy Rumpf <rumpf.99@gmail.com>
Signed-Off-By: Jeremy Rumpf <rumpf.99@gmail.com> Signed-off-by: Jeremy Rumpf <rumpf.99@gmail.com>
lsiepel
left a 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.
Minor typo and codestyle. looks good
| } | ||
|
|
||
| protected void setChannelJPigpio(@Nullable JPigpio jPigpio) throws PigpioException { | ||
| if (this.channelHandlers.isEmpty()) |
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.
minor checkstyle, please add braces
...inding.gpio/src/main/java/org/openhab/binding/gpio/internal/handler/PigpioRemoteHandler.java
Show resolved
Hide resolved
Signed-off-by: Jeremy Rumpf <rumpf.99@gmail.com>
…nHAB. Signed-off-by: Jeremy Rumpf <rumpf.99@gmail.com>
…ut. Attempt to clarify plurals. Signed-off-by: Jeremy Rumpf <rumpf.99@gmail.com>
conflicts. Signed-off-by: Jeremy Rumpf <rumpf.99@gmail.com>
Signed-off-by: Jeremy Rumpf <rumpf.99@gmail.com>
|
Can we merge this one? |
lsiepel
left a 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.
Thanks for the PR. I left some questions and some suggestions. Mainly logging and style.
Please don't forget to run the mvn i18n:generate-default-translations
....gpio/src/main/java/org/openhab/binding/gpio/internal/handler/PigpioDigitalInputHandler.java
Outdated
Show resolved
Hide resolved
....gpio/src/main/java/org/openhab/binding/gpio/internal/handler/PigpioDigitalInputHandler.java
Show resolved
Hide resolved
....gpio/src/main/java/org/openhab/binding/gpio/internal/handler/PigpioDigitalInputHandler.java
Outdated
Show resolved
Hide resolved
...io/src/main/java/org/openhab/binding/gpio/internal/configuration/GPIOInputConfiguration.java
Outdated
Show resolved
Hide resolved
...io/src/main/java/org/openhab/binding/gpio/internal/configuration/GPIOInputConfiguration.java
Outdated
Show resolved
Hide resolved
jlaur
left a 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.
Thanks for the fixes and improvements. In addition to @lsiepel's comments I have added a few minor ones.
Signed-off-by: Jeremy Rumpf <rumpf.99@gmail.com>
|
Hi, any news here? Can I help? |
Signed-off-by: Jeremy Rumpf <rumpf.99@gmail.com>
jlaur
left a 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.
I have provided some additional feedback after going through changed files, since I didn't remember how I left it in last iteration. I think this can be merged soon, but especially the formatting of the documentation looks strange, so it would be nice if you could have a look here.
....gpio/src/main/java/org/openhab/binding/gpio/internal/handler/PigpioDigitalInputHandler.java
Outdated
Show resolved
Hide resolved
....gpio/src/main/java/org/openhab/binding/gpio/internal/handler/PigpioDigitalInputHandler.java
Outdated
Show resolved
Hide resolved
....gpio/src/main/java/org/openhab/binding/gpio/internal/handler/PigpioDigitalInputHandler.java
Outdated
Show resolved
Hide resolved
...inding.gpio/src/main/java/org/openhab/binding/gpio/internal/handler/PigpioRemoteHandler.java
Outdated
Show resolved
Hide resolved
|
Gentle ping @jeremyrumpf hope you can address the last review comments so this can be merged? |
|
It would be really great to get this one merged. Anything I can do to help? |
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
|
As the requested changes are mainly documentation layout and logging related, i took the oppertunity to add some commits and address these. @jeremyrumpf i hope you are okay with that. |
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
I believe they were mostly formatting related. I'm not most creative using markdown, so anything you think is appropriate will be welcome. The two logging level messages can be moved to debug. I do not really have a preference, if that is more inline with OpenHAB's best practices. If there's anything else you need, let me know. |
In that case this PR is ready to be merged from my perspective |
jlaur
left a 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.
LGTM. @jeremyrumpf - thanks for your contribution, and thank you @lsiepel for helping getting this to the finish line.
openhab#13643) * [GPIO] Update the GPIO binding to fix issues and provide new functionality. * Add the ability to recover from network disconnects to pigpiod. * Provide actions to what the binding does on pigpiod connect/disconnect/reconnect. * Provide the ability to pulse outputs in a one-shot/momentary fashion. * Provide edge level configuration for gpio outputs. * Fix automated style checks. * Attempt to squash jenkins build warnings/errors. * Correct Null annotations and adjust log levels in certain areas. * Fix bracing per checkstyle review. * Normalize gpiod/pigpiod to pigpiod. openhab/openHAB normalized to OpenHAB. * Fix a copy/paste error. Output channels should not be referred as input. Attempt to clarify plurals. * Convert strings to defined constants. * Convert pulse command strings to binding constants. * Java17 instanceof pattern matching. * Nit, fix missed pulse command string to binding constant. * Add missing quotes in demo.things file definition. Workaround openhab#11039 Fixes openhab#11038 Fixes openhab#13376 Signed-off-by: Jeremy Rumpf <rumpf.99@gmail.com>
openhab#13643) * [GPIO] Update the GPIO binding to fix issues and provide new functionality. * Add the ability to recover from network disconnects to pigpiod. * Provide actions to what the binding does on pigpiod connect/disconnect/reconnect. * Provide the ability to pulse outputs in a one-shot/momentary fashion. * Provide edge level configuration for gpio outputs. * Fix automated style checks. * Attempt to squash jenkins build warnings/errors. * Correct Null annotations and adjust log levels in certain areas. * Fix bracing per checkstyle review. * Normalize gpiod/pigpiod to pigpiod. openhab/openHAB normalized to OpenHAB. * Fix a copy/paste error. Output channels should not be referred as input. Attempt to clarify plurals. * Convert strings to defined constants. * Convert pulse command strings to binding constants. * Java17 instanceof pattern matching. * Nit, fix missed pulse command string to binding constant. * Add missing quotes in demo.things file definition. Workaround openhab#11039 Fixes openhab#11038 Fixes openhab#13376 Signed-off-by: Jeremy Rumpf <rumpf.99@gmail.com> Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
Attempting to improve the reliability and usefulness of the GPIO binding in OpenHAB
This should provide a workaround for #11039 by allowing the user to configure the output channels to refresh/sync their channel state with pigpiod upon connect/reconnect.
#11038 is corrected. The binding now polls the remote pigpiod instance to determine connectivity and reconnects on connection loss.
This should also provide the same corrective action as PR #13376
Fixes #11038