-
-
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
[MyQ] Initial commit of the MyQ binding for OH3 #9347
Conversation
I've tested the binary you provided. I'm getting errors in the log showing info below. The redacted JSON had all my info in it so I'm assuming it did in fact find my account.
|
Are you configuring this with things files? Auto discovery ? Can you describe the steps you took to configure this? Also it seems the jar you have might be a few revisions behind (logging looks outdated). Can you download again from https://github.com/digitaldan/openhab-addons/releases/tag/myq-wip-1 ? I update that with the last build time and a new jar instead of creating new revisions. Any other logging or info would be helpful. Thanks! |
Actually the logging does not look outdated, my guess is you do have a updated version, so info on how you configured this would be helpful, thanks! |
Configured as:
I will say the JSON from the original posting looked "OK". It had my email, name, address, etc. I would assume it was a valid reply. |
can you download org.openhab.binding.myq-3.0.0-SNAPSHOT.jar and try again? For some reason i don't think it liked the |
I'd say closer but still missing something. The JSON that starts with Users is now about twice as long as it was with the last version. I still get the 404.401 error however after that. |
Try it again ? I missed a spot where i needed to use that new ID , thanks. |
There we go! I'll start to test/monitor actual usage now. |
Thanks for testing, appreciate it ! |
This is now ready for review, thanks! |
Do you have a final JAR you want me to test out to confirm it's all solid here? |
@computergeek1507 thanks for helping with the light. I'm not sure how you made those changes as i don't see a branch they were committed from or a sign off message. In fact , some how you modified my personal branch on my repo. If we change that UID to lamp, we also need to modify the thing definition to match, i will update that myself, and make sure things compile and work as much as i can.. |
@computergeek1507 is it possible to remove your changes? I'm not sure now how to get my branch in sync with those changes. |
df398a6
to
60c6511
Compare
@computergeek1507 I updated the binding to use "lamp" vs "light" throughout the binding so there is consistency with the MyQ naming conventions. I updated the jar at https://github.com/digitaldan/openhab-addons/releases/download/myq-wip-1/org.openhab.binding.myq-3.0.0-SNAPSHOT.jar with these changes. If you previously added a lamp/light, you will need to remove it and let the binding find the lamp again. Thanks for the pointer. If you have a json dump of a lamp that would be helpful. @fwolter i will update it to the latest milestone shortly, thanks. |
@digitaldan I sent the JSON to you over on the community forum |
I totally missed that , thank you! Looking at the json and my recent changes, it seems like it should work. Let me know if thats the case or not. |
@fwolter, done! |
I Just rebased to main and updated license headers to get the build passing |
👀 |
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.
Looks way better with the ThingHandlerService
!
....openhab.binding.myq/src/main/java/org/openhab/binding/myq/internal/MyQDiscoveryService.java
Outdated
Show resolved
Hide resolved
....openhab.binding.myq/src/main/java/org/openhab/binding/myq/internal/MyQDiscoveryService.java
Outdated
Show resolved
Hide resolved
....openhab.binding.myq/src/main/java/org/openhab/binding/myq/internal/MyQDiscoveryService.java
Outdated
Show resolved
Hide resolved
...ab.binding.myq/src/main/java/org/openhab/binding/myq/internal/handler/MyQAccountHandler.java
Outdated
Show resolved
Hide resolved
...ab.binding.myq/src/main/java/org/openhab/binding/myq/internal/handler/MyQAccountHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
Thanks, changes done. |
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
Unless there are any major issues, i would love to see this merged soon. Thanks. |
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
👀 |
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.
Only a few small suggestions.
...ab.binding.myq/src/main/java/org/openhab/binding/myq/internal/handler/MyQAccountHandler.java
Outdated
Show resolved
Hide resolved
...ab.binding.myq/src/main/java/org/openhab/binding/myq/internal/handler/MyQAccountHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Dan <dan@MacBook-Pro.digitaldan.com>
Signed-off-by: Dan Cunningham <dan@digitaldan.com>
Just realized my last commit was missing a sign off. Should be ready now @cpmeister |
👀 |
👀 😢 |
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
Updated to S2225 which includes this. Everything looks good. Thank you @digitaldan !!!!! |
This pull request has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/newbie-question-myq-binding/118091/2 |
* Rebase with main, update license headers * Small PR cleanups * One last small PR cleanup * Syntactical sugar * Updated error handling * Spelling mistake Signed-off-by: Dan Cunningham <dan@digitaldan.com> Signed-off-by: John Marshall <john.marshall.au@gmail.com>
* Rebase with main, update license headers * Small PR cleanups * One last small PR cleanup * Syntactical sugar * Updated error handling * Spelling mistake Signed-off-by: Dan Cunningham <dan@digitaldan.com>
* Rebase with main, update license headers * Small PR cleanups * One last small PR cleanup * Syntactical sugar * Updated error handling * Spelling mistake Signed-off-by: Dan Cunningham <dan@digitaldan.com>
* Rebase with main, update license headers * Small PR cleanups * One last small PR cleanup * Syntactical sugar * Updated error handling * Spelling mistake Signed-off-by: Dan Cunningham <dan@digitaldan.com>
Signed-off-by: Dan Cunningham dan@digitaldan.com
This introduces a new MyQ binding for openHAB to replace the 1.x version. Feedback welcome.
This will replace the 1.x myq binding referenced in #6179