-
-
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
[OmniLink] Binding Initial Contribution #8922
Conversation
Hi @ecdye to be clear, you are submitting the work that @boc-tothefuture, @craigham, and myself had worked on as part of the OH2/3 port that we never got across the line for review (my guess is there will be a lot of review issues). Are you volunteering to maintain this code going forward and update it as necessary, both when this gets reviewed and after it gets published? Have you contributed any code to this binding yet other than some cosmetic logging changes? If you are planning on maintaining and improving it that would be awesome, but if not i would want our reviewers to know as there is a lot of code to review. |
I also noticed you forked my jomnilink project , made a small change to use a newer java version, then repointed this binding to your own version instead of submitting a PR on my project? any reason why? Would be nice to update the main one which gets pushed to maven central and used by other people. |
Correct.
Yes, for the foreseeable future.
Nothing major, I have rewritten small parts for OH3 and fixed broken support for certain 'Things' like the Console Thing. Additionally, I have rewritten parts of the code as necessary in order to incorporate null annotations. I do not know how many new features I would add but I would certainly like to improve the current ones and make the binding more user friendly overall. |
I was simply testing a change that I intend to submit to your repo but haven't yet. The change was relating to the only outstanding issue in your jomnilink repo. I will make a PR for you to review and incorporate in the next few days. |
@ecdye I think it is important to note @digitaldan contributions to this binding and the openhab library. It wasn't just @craigham and myself.. I am also willing to support this binding going forward along with you. I just didn't have the time to put into the documentation to get it ready. |
Sounds great, happy to see someone pushing this across the line, although its a pity Leviton discontinued the Omni line of panels. Awesome that @boc-tothefuture volunteered to help, I'm available if you get stuck as well, although I just ordered a konnected.io system and plan to play around with that + noonlight for monitoring in leu of my omni, but thats a little ways off from being proved out, so my omni is still in use for the foreseeable future. |
I would like to see @craigham sign off on this as well.. As it is his original work we all iterated off of. I would also think that the three of us (@digitaldan, @craigham and myself) would need to officially sign this work since we wrote the majority of it? |
I have no problem handing this off to someone that can try and get this accepted. Lately I have become more of a user of openhab rather than helping develop bindings. I do have 1 question. I have worked on several bindings in the past and it was nice to have each in a different branch within my addons fork. This PR looks to be merging to main. Is this necessary, or could it be done on a more specifically named branch? What do you think @boc-tothefuture, @digitaldan ? |
I think it goes to main when we PR it for official review. |
I agree, it would be important for @digitaldan to sign it off, I am merely the one who is facilitating the review and submission of this.
The main branch is used to facilitate the central deployment and development of bindings, in my branch of the openhab-addons repo, it is being developed on a separate branch. |
ah, i see. it's going getting submitted now to openhab for review. great,
that would be nice.
If there is something I can help with, I will. I've given up keeping an up
to date dev environment for openhab, but I could get it going again if i
can help.
Is there a formal way I need to sign off on any of the code?
Would be really nice to see the binding approved...
…On Mon, 2 Nov 2020 at 09:10, boc-tothefuture ***@***.***> wrote:
I have no problem handing this off to someone that can try and get this
accepted. Lately I have become more of a user of openhab rather than
helping develop bindings.
I do have 1 question. I have worked on several bindings in the past and it
was nice to have each in a different branch within my addons fork. This PR
looks to be merging to main. Is this necessary, or could it be done on a
more specifically named branch?
What do you think @boc-tothefuture <https://github.com/boc-tothefuture>,
@digitaldan <https://github.com/digitaldan> ?
I think it goes to main when we PR it for official review.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8922 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACXGUXQCRFCRCHHZY7L5CHDSN3RZ5ANCNFSM4TGIOUMQ>
.
|
I have now linked everyone who helped in the creation of this binding as co-authors in the commit. |
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 reviewed 17 / 55 files that you get an impression what needs to be done.
Is the library jomnilink used by other projects than OH? How many active maintainers does it have?
...ing.omnilink/src/main/java/org/openhab/binding/omnilink/internal/OmnilinkHandlerFactory.java
Outdated
Show resolved
Hide resolved
...ing.omnilink/src/main/java/org/openhab/binding/omnilink/internal/OmnilinkHandlerFactory.java
Outdated
Show resolved
Hide resolved
...ing.omnilink/src/main/java/org/openhab/binding/omnilink/internal/OmnilinkHandlerFactory.java
Outdated
Show resolved
Hide resolved
...ink/src/main/java/org/openhab/binding/omnilink/internal/handler/AbstractOmnilinkHandler.java
Outdated
Show resolved
Hide resolved
...c/main/java/org/openhab/binding/omnilink/internal/handler/AbstractOmnilinkStatusHandler.java
Outdated
Show resolved
Hide resolved
...omnilink/src/main/java/org/openhab/binding/omnilink/internal/handler/AudioSourceHandler.java
Outdated
Show resolved
Hide resolved
...omnilink/src/main/java/org/openhab/binding/omnilink/internal/handler/AudioSourceHandler.java
Outdated
Show resolved
Hide resolved
...omnilink/src/main/java/org/openhab/binding/omnilink/internal/handler/AudioSourceHandler.java
Outdated
Show resolved
Hide resolved
@fwolter Thanks for the suggestions, I have made many uncommitted improvements as well and will add these concerns into my changes. jomnilink is not used by any other OH addons however it is essential to communicating with the OmniPro or Lumina controller, it is maintained by primarily @digitaldan with minor contributions from myself and @boc-tothefuture. I currently have an outstanding PR on the jomnilink repo that will provide the solution for many of the uncomitted changes that I mentioned. Overall, once completed, with your suggestions, I feel that this PR will be much closer to a finished product. |
@ecdye I’m starting to dabble with OH3. If you need a tester, I’d be happy to help. |
That would be great, mostly I going by what I know works because I use it. Right now I'm just waiting for @digitaldan to finish getting a PR for jomnilink so I can push a bunch of new changes. |
Thanks so much @ecdye and @digitaldan for reviving the jomnilink binding for OH3. Is there a date you are working towards to getting this released? Cheers, |
Not right now, still waiting on @digitaldan but he is busy, I don't see any need to rush. |
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.
Your code doesn't compile.
OmnilinkHandlerFactory.java:[37,8] The import org.openhab.binding.omnilink.internal.handler.units cannot be resolved
among others
...ing.omnilink/src/main/java/org/openhab/binding/omnilink/internal/OmnilinkHandlerFactory.java
Outdated
Show resolved
Hide resolved
...openhab.binding.omnilink/src/main/java/org/openhab/binding/omnilink/internal/SystemType.java
Show resolved
Hide resolved
...openhab.binding.omnilink/src/main/java/org/openhab/binding/omnilink/internal/SystemType.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/openhab/binding/omnilink/internal/discovery/OmnilinkDiscoveryService.java
Outdated
Show resolved
Hide resolved
...inding.omnilink/src/main/java/org/openhab/binding/omnilink/internal/handler/ZoneHandler.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/binding/binding.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/bridge.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/bridge.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/unit.xml
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
...ing.omnilink/src/main/java/org/openhab/binding/omnilink/internal/OmnilinkHandlerFactory.java
Show resolved
Hide resolved
@fwolter I'm not sure how to fix it, but since I changed the Discovery Service implementation I can no longer scan to discover new items in the openHAB UI any ideas on how to fix this? |
@ecdye its hard for others to help if you force push every change as we can not see the change history, so it's not clear what the discovery looked like before and after. I'm guessing you are relying on the bridge handler now being passed in by the framework, have you added logging to make sure this is happening, can you narrow down if anything is being called in that class? |
Also i noticed this is in the logs when i start the binding:
|
I understand this, but what I am referring to is @fwolter directed me to change the Discovery Service implementation to use Before the service was using a componenet annotation and was working properly. I simply can't find any documentation about this issue as the documentation provided by @fwolter does not indicate that anything else needs to be done for this to work. |
Did you see the error message i posted above ^^, there is an exception being thrown when it tries to register that class, its telling you |
Apparently I cannot read, testing now. |
@ecdye - Thanks so much for your work on this binding port! I can confirm that I can successfully discover my OMNI items and that so far all functionality is working well. Will let you know if I run into any issues. |
@J-N-K Any chance you could help get this in before the next release? |
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. I have left some comments inside. Please make sure to go through all occurences of the points I mentioned (regarding REFRESH handlig, channelLinked
handling, logging, datatypes - DecimalType vs. QuantityType).
....openhab.binding.omnilink/src/main/java/org/openhab/binding/omnilink/internal/AreaAlarm.java
Outdated
Show resolved
Hide resolved
....openhab.binding.omnilink/src/main/java/org/openhab/binding/omnilink/internal/AreaAlarm.java
Outdated
Show resolved
Hide resolved
...penhab.binding.omnilink/src/main/java/org/openhab/binding/omnilink/internal/AudioPlayer.java
Outdated
Show resolved
Hide resolved
....omnilink/src/main/java/org/openhab/binding/omnilink/internal/handler/TemperatureFormat.java
Outdated
Show resolved
Hide resolved
....omnilink/src/main/java/org/openhab/binding/omnilink/internal/handler/TemperatureFormat.java
Outdated
Show resolved
Hide resolved
....omnilink/src/main/java/org/openhab/binding/omnilink/internal/handler/ThermostatHandler.java
Outdated
Show resolved
Hide resolved
....omnilink/src/main/java/org/openhab/binding/omnilink/internal/handler/units/FlagHandler.java
Outdated
Show resolved
Hide resolved
...nilink/src/main/java/org/openhab/binding/omnilink/internal/handler/units/UpbRoomHandler.java
Outdated
Show resolved
Hide resolved
...ilink/src/main/java/org/openhab/binding/omnilink/internal/handler/OmnilinkBridgeHandler.java
Outdated
Show resolved
Hide resolved
@J-N-K I have updated the files to all use REFRESH would you take a look and see what you think? |
@J-N-K Any chance for a quick finish up of this PR? |
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.
Last comment from my side.
...mnilink/src/main/java/org/openhab/binding/omnilink/internal/handler/AbstractAreaHandler.java
Outdated
Show resolved
Hide resolved
@J-N-K Done. Can you approve and merge? |
Just waiting for Jenkins. |
Signed-off-by: Ethan Dye <[email protected]> Co-authored-by: Dan Cunningham <[email protected]> Co-authored-by: Craig Hamilton <[email protected]> Co-authored-by: Brian O'Connell <[email protected]>
What changed with your last push? If you force push the changes can‘t be shown. |
Hmm, nothing changed... I updated for upstream change to allow PR to build correctly as @fwolter described. |
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.
Ok
All tests are good. I think we are ready. |
Signed-off-by: Ethan Dye <[email protected]> Co-authored-by: Dan Cunningham <[email protected]> Co-authored-by: Craig Hamilton <[email protected]> Co-authored-by: Brian O'Connell <[email protected]> Co-authored-by: Dan Cunningham <[email protected]> Co-authored-by: Craig Hamilton <[email protected]> Co-authored-by: Brian O'Connell <[email protected]> Signed-off-by: John Marshall <[email protected]>
Signed-off-by: Ethan Dye <[email protected]> Co-authored-by: Dan Cunningham <[email protected]> Co-authored-by: Craig Hamilton <[email protected]> Co-authored-by: Brian O'Connell <[email protected]> Co-authored-by: Dan Cunningham <[email protected]> Co-authored-by: Craig Hamilton <[email protected]> Co-authored-by: Brian O'Connell <[email protected]>
Signed-off-by: Ethan Dye <[email protected]> Co-authored-by: Dan Cunningham <[email protected]> Co-authored-by: Craig Hamilton <[email protected]> Co-authored-by: Brian O'Connell <[email protected]> Co-authored-by: Dan Cunningham <[email protected]> Co-authored-by: Craig Hamilton <[email protected]> Co-authored-by: Brian O'Connell <[email protected]>
Initial contribution / migration from OH1 of the OmniLink Binding. Ported with permission from @craigham and @boc-tothefuture who were the primary developers of this code.
This was created to add support to the main OH code-base for the OmniLink protocol to allow for more usage of it's abilities.
Signed-off-by: Ethan Dye [email protected]