Chamberlain MyQ Binding

Any chance you could release a JAR for those of us still on the OH3 branch?

Would love to test this but, and forgive my ignorance, I have no idea how to implement the git changes into my openhab implementation. Would there be a JAR file for OH4 as well?

You can get a jar from our build server here:

https://openhab.jfrog.io/artifactory/libs-pullrequest-local/org/openhab/addons/bundles/org.openhab.binding.myq/4.1.0-SNAPSHOT/org.openhab.binding.myq-4.1.0-SNAPSHOT.jar

Probably not, i donā€™t have my system setup for 3.x development and Iā€™m not clear if we are doing 3.x patch releases at this point. If we are doing 3.x patch releases then this could be cherry picked into the next one.

1 Like

Thx. Iā€™m on OH4.1.0.M2 on bullseye/rpi4 and with the jar file provided I get the following error on startupā€¦


Confirmed in the console that the old MyQ addon is removed, and the new binding is indeed installed. Tried clearing cache and restarting but no luck. Also double checked the file permissions and ran the openhabian-config updated permissions function for good measure.

Any thoughts?
Cheers

I just pulled that jar but I still get ā€œCould not load login pageā€
Pretty sure Iā€™m using the latest code because the client id was changed to ANDROID_CGI_MYQ.

2023-10-14 23:09:27.359 [DEBUG] [q.internal.handler.MyQAccountHandler] - Sending GET to https://partner-identity.myq-cloud.com/connect/authorize?client_id=ANDROID_CGI_MYQ<redacted>
2023-10-14 23:09:27.387 [DEBUG] [q.internal.handler.MyQAccountHandler] - Login Code 429 Response {
  "isOk": false,
  "reason": "Too Many Requests",
  "id": 5
}
2023-10-14 23:09:27.389 [DEBUG] [q.internal.handler.MyQAccountHandler] - MyQ communication error
org.openhab.binding.myq.internal.handler.MyQAccountHandler$MyQCommunicationException: Could not load login page

Iā€™ll disable the add-on for now and try again later in case this is them actually throttling my ip.

I cherry-picked your fix into 4.0.x to be included in next hotfix. I donā€™t think anyone is currently supporting 3.4.x.

2 Likes

From /usr/share/addons run:

wget https://jsoup.org/packages/jsoup-1.14.3.jar

Thereā€™s probably a better way through karaf console but above worked for me.

Thanks so much, that was the missing piece. Updated binding seems to work fine now.

Cheers

bundle:install https://jsoup.org/packages/jsoup-1.14.3.jar :wink:

2 Likes

Iā€™ve run into other unresolved requirements:

Unresolved requirement: Import-Package: com.google.gson

I found and installed:

bundle:install https://search.maven.org/remotecontent?filepath=com/google/code/gson/gson/2.10.1/gson-2.10.1.jar

Then I get:

Unresolved requirement: Import-Package: org.slf4j; version=ā€œ[2.0.0,3.0.0)ā€

I havenā€™t been able to find the right package to resolve that one. Seems like thatā€™s a large group of packages.

Iā€™m on 4.0.1.

Youā€™ll need to wait for them to release the JAR or patch up for 4.0.x.

The posted jar is for 4.1.

uhg, usually when they post these, we can use them in our stable versions. Can we get a jar for stable? I donā€™t like running on milestone/snapshot builds.

Edit: I see laursenā€™s post now. I had misread it as for 3.x. I guess Iā€™ll have to wait for that.

Am I correct in saying that there is no solution for users who are running openHAB 3.X.X? Is the solution in the works or do we just need to upgrade?

Same for me, Iā€™m on 4.0.3-1 currently. Any luck?

after finding & adding 2.0.9 of slf4j.jar, I started getting other dependencies and didnā€™t want to keep going down the rabbit hole

 Unresolved requirement: Import-Package: org.slf4j; version="[2.0.0,3.0.0)"
    -> Export-Package: org.slf4j; bundle-symbolic-name="slf4j.api"; bundle-version="2.0.9"; version="2.0.9"; uses:="org.slf4j.event,org.slf4j.helpers,org.slf4j.spi"
       slf4j.api [286]
         Unresolved requirement: Require-Capability: osgi.serviceloader; osgi.serviceloader="org.slf4j.spi.SLF4JServiceProvider"; filter:="(osgi.serviceloader=org.slf4j.spi.SLF4JServiceProvider)"

And for some reason the 3.4.5 binding reconnected today.

Same thing happened to me.

Is there a place we can pull a copy of the cherry picked 4.0.x ahead of a full 4.0.4 or whatever the release will be? The garage doors have already strained my marriage :smiley:

Error again todayā€¦

As of this writing is the latest stable version openHAB 4.0.3? thats what Iā€™m on.

Correct, Iā€™m on 4.0.3 now. I patched up to .3 the other day after typing that. Release notes had been suggesting there was no ā€œneedā€ to move to .2 and .3 unless you needed something which I hadnā€™t.

At this point, Iā€™m just searching for where there might be a backported version of this myq binding jar so that I donā€™t have to move my production instance to the snapshot builds.

Thanks. Let me know if you find anything!