Chamberlain MyQ Binding

I [quote=“tebore, post:288, topic:4192”]
Anyone having the same problem?
[/quote]

Yes but min has been showing things in the logs more than today. I can say today that I was not able to open the garage door while on myopenhab, but when in the garage and on my home network I was able to close it. If that matters. Logs are loaded with:

Caused by: java.io.EOFException: HttpConnectionOverHTTP@5566aa97(l:/192.168.0.50:41938 ↔ r:myqexternal.myqdevice.com/65.166.252.145:443,closed=false)=>HttpChannelOverHTTP@4d281933(exchange=HttpExchange@3e0f16db req=TERMINATED/null@null res=PENDING/null@null)[send=HttpSenderOverHTTP@39966cac(req=QUEUED,snd=COMPLETED,failure=null)[HttpGenerator@3a568973{s=START}],recv=HttpReceiverOverHTTP@37bafe8b(rsp=IDLE,failure=null)[HttpParser{s=CLOSED,0 of -1}]]<-DecryptedEndPoint@71c59f69{myqexternal.myqdevice.com/65.166.252.145:443<->/192.168.0.50:41938,OPEN,fill=-,flush=-,to=22/0}->HttpConnectionOverHTTP@5566aa97(l:/192.168.0.50:41938 ↔ r:myqexternal.myqdevice.com/65.166.252.145:443,closed=false)=>HttpChannelOverHTTP@4d281933(exchange=HttpExchange@3e0f16db req=TERMINATED/null@null res=PENDING/null@null)[send=HttpSenderOverHTTP@39966cac(req=QUEUED,snd=COMPLETED,failure=null)[HttpGenerator@3a568973{s=START}],recv=HttpReceiverOverHTTP@37bafe8b(rsp=IDLE,failure=null)[HttpParser{s=CLOSED,0 of -1}]]->SocketChannelEndPoint@7bbc6ef1{myqexternal.myqdevice.com/65.166.252.145:443<->/192.168.0.50:41938,ISHUT,fill=-,flush=-,to=29/0}{io=0/0,kio=0,kro=1}->SslConnection@75af7de4{NEED_WRAP,eio=-1/-1,di=-1}=>HttpConnectionOverHTTP@5566aa97(l:/192.168.0.50:41938 ↔ r:myqexternal.myqdevice.com/65.166.252.145:443,closed=false)=>HttpChannelOverHTTP@4d281933(exchange=HttpExchange@3e0f16db req=TERMINATED/null@null res=PENDING/null@null)[send=HttpSenderOverHTTP@39966cac(req=QUEUED,snd=COMPLETED,failure=null)[HttpGenerator@3a568973{s=START}],recv=HttpReceiverOverHTTP@37bafe8b(rsp=IDLE,failure=null)[HttpParser{s=CLOSED,0 of -1}]]
at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.earlyEOF(HttpReceiverOverHTTP.java:338) ~[?:?]
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:1557) ~[?:?]
at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.shutdown(HttpReceiverOverHTTP.java:209) ~[?:?]
at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.process(HttpReceiverOverHTTP.java:147) ~[?:?]
at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.receive(HttpReceiverOverHTTP.java:73) ~[?:?]
at org.eclipse.jetty.client.http.HttpChannelOverHTTP.receive(HttpChannelOverHTTP.java:133) ~[?:?]
at org.eclipse.jetty.client.http.HttpConnectionOverHTTP.onFillable(HttpConnectionOverHTTP.java:155) ~[?:?]
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281) ~[?:?]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102) ~[?:?]
at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:291) ~[?:?]
at org.eclipse.jetty.io.ssl.SslConnection$3.succeeded(SslConnection.java:151) ~[?:?]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102) ~[?:?]
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118) ~[?:?]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333) ~[?:?]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310) ~[?:?]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168) ~[?:?]
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126) ~[?:?]
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366) ~[?:?]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:762) ~[?:?]
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:680) ~[?:?]
… 1 more

Thanks

JR

Also new 2.5 snapshot not working for me:

2019-02-28 16:58:31.674 [WARN ] [org.apache.felix.fileinstall ] - Error while starting bundle: file:/usr/share/openhab2/addons/org.openhab.binding.chamberlainmyq-2.5.0-SNAPSHOT.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.chamberlainmyq [14]
Unresolved requirement: Import-Package: com.google.common.collect

    at org.eclipse.osgi.container.Module.start(Module.java:444) ~[?:?]
    at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383) ~[?:?]
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) [10:org.apache.felix.fileinstall:3.6.4]
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) [10:org.apache.felix.fileinstall:3.6.4]
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:520) [10:org.apache.felix.fileinstall:3.6.4]
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [10:org.apache.felix.fileinstall:3.6.4]
    at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [10:org.apache.felix.fileinstall:3.6.4]

I’m going to have to revert. Now the website won’t even come up.

Edit: reverted and put the 2.5 back again but now getting a really long thing I can’t fully copy:

2019-02-28 17:10:49.427 [ERROR] [core.thing.internal.ThingManagerImpl] - Exception occurred while calling thing handler factory ‘org.openhab.binding.chamberlainmyq.internal.ChamberlainMyQHandlerFactory@794b5f09’: null
java.lang.NullPointerException: null
at org.openhab.binding.chamberlainmyq.config.ChamberlainMyQDeviceConfig.(ChamberlainMyQDeviceConfig.java:49) ~[?:?]
at org.openhab.binding.chamberlainmyq.handler.ChamberlainMyQHandler.(ChamberlainMyQHandler.java:59) ~[?:?]
at org.openhab.binding.chamberlainmyq.handler.ChamberlainMyQDoorOpenerHandler.(ChamberlainMyQDoorOpenerHandler.java:46) ~[?:?]
at org.openhab.binding.chamberlainmyq.internal.ChamberlainMyQHandlerFactory.createHandler(ChamberlainMyQHandlerFactory.java:54) ~[?:?]
at org.eclipse.smarthome.core.thing.binding.BaseThingHandlerFactory.registerHandler(BaseThingHandlerFactory.java:128) ~[?:?]
at org.eclipse.smarthome.core.thing.internal.ThingManagerImpl.doRegisterHandler(ThingManagerImpl.java:600) ~[?:?]
at org.eclipse.smarthome.core.thing.internal.ThingManagerImpl.registerHandler(ThingManagerImpl.java:581) ~[?:?]
at org.eclipse.smarthome.core.thing.internal.ThingManagerImpl.registerAndInitializeHandler(ThingManagerImpl.java:1073) ~[?:?]
at org.eclipse.smarthome.core.thing.internal.ThingManagerImpl.lambda$10(ThingManagerImpl.java:1056) ~[?:?]
at java.util.concurrent.CopyOnWriteArrayList.forEach(CopyOnWriteArrayList.java:891) ~[?:?]
at java.util.concurrent.CopyOnWriteArraySet.forEach(CopyOnWriteArraySet.java:404) ~[?:?]
at org.eclipse.smarthome.core.thing.internal.ThingManagerImpl.lambda$9(ThingManagerImpl.java:1053) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) [?:?]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) [?:?]
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) [?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) [?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) [?:?]
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) [?:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) [?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) [?:?]
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) [?:?]
at org.eclipse.smarthome.core.thing.internal.ThingManagerImpl.handleThingHandlerFactoryAddition(ThingManagerImpl.java:1052) [109:org.eclipse.smarthome.core.thing:0.10.0.oh240]
at org.eclipse.smarthome.core.thing.internal.ThingManagerImpl.addThingHandlerFactory(ThingManagerImpl.java:1023) [109:org.eclipse.smarthome.core.thing:0.10.0.oh240]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
at org.apache.felix.scr.impl.inject.methods.BaseMethod.invokeMethod(BaseMethod.java:228) [39:org.apache.felix.scr:2.1.2]
at org.apache.felix.scr.impl.inject.methods.BaseMethod.access$500(BaseMethod.java:41) [39:org.apache.felix.scr:2.1.2]
at org.apache.felix.scr.impl.inject.methods.BaseMethod$Resolved.invoke(BaseMethod.java:664) [39:org.apache.felix.scr:2.1.2]
at org.apache.felix.scr.impl.inject.methods.BaseMethod.invoke(BaseMethod.java:510) [39:org.apache.felix.scr:2.1.2]
at org.apache.felix.scr.impl.inject.methods.BindMethod.invoke(BindMethod.java:42) [39:org.apache.felix.scr:2.1.2]
at org.apache.felix.scr.impl.manager.DependencyManager.doInvokeBindMethod(DependencyManager.java:1809) [39:org.apache.felix.scr:2.1.2]
at org.apache.felix.scr.impl.manager.DependencyManager.invokeBindMethod(DependencyManager.java:1784) [39:org.apache.felix.scr:2.1.2]
at org.apache.felix.scr.impl.manager.SingleComponentManager.invokeBindMethod(SingleComponentManager.java:409) [39:org.apache.felix.scr:2.1.2]
at org.apache.felix.scr.impl.manager.DependencyManager$MultipleDynamicCustomizer.addedService(DependencyManager.java:333) [39:org.apache.felix.scr:2.1.2]
at org.apache.felix.scr.impl.manager.DependencyManager$MultipleDynamicCustomizer.addedService(DependencyManager.java:302) [39:org.apache.felix.scr:2.1.2]
at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1216) [39:org.apache.felix.scr:2.1.2]

JR

Cool
Again thanks for getting on it so fast

  1. Force remove all your MyQ related Things.
  2. Remove the binding from the binding menu if you used paperui to install binding otherwise skip.
  3. Stop OH2.
    4 Clear cache by deleting the files and folders under tmp and cache.
  4. Place the new 2.5SS jar in to the addon folders.
  5. Restart OH2.
  6. Manually Add your gateway
  7. Do a search and all your lights and garage openers should be detected.

Your gateway has a new ThingID. Update your items files respectively with it.

JT, that is not really great. I know every time I’ve cleared the cache my system never comes back again. Including this time, which fortunately I’m running VM and can revert to a prior snapshot. Once I clear the cache it’s like a festival of missing stuff that starts complaining in the logs.

Thanks.

JR

What is the location of the addons folder on an Ubuntu system? /usr/share/openhab2/addons doesn’t have any jar files.

Has anyone managed to get this working again? If so, what version of Openhab and what version of the binding worked?

Thanks

It’s working for me.

I’m running the following:

  • openHAB snapshot build 1502
  • MyQ binding version 2.5.0.201902280358 (from this post above)

I deleted (Force Removed) all my existing MyQ things (Gateway and Garage Door), then readded them.

One odd thing I noticed… It added 2 Garage Door things to the inbox yet I have only one opener…

2 Likes

I removed the 1.13 MyQ binding through my addons.cfg, stopped openhab 2.4, added the new 1.14 snapshot jar to the addons folder, and started up openhab back up. It worked for me after that. I still need to test the 2.5 snapshot some more. With all the github repo changes it is very hard to get 2.x building at the moment.

Thanks,
Scott

2 Likes

Only manually installed jar files will be installed here, addons installed through paperui are in another location

1 Like

Using the 2.5 SS jar here.
For the most part it’s working. It even got rid of that URL error that used to come up.

The only problem I have right now is periodically my light switches will all switch from ONLINE and OFFLINE and back again. I’m not sure if this is because of the binding or because of Chamberlain’s crap infrastructure and the binding is losing connection with it.

I’ll report back if I have any problems.

Cleaned cache and tmp directories. When I deleted the directories, openhab would not come up. I had to make sure that the cache and tmp directories existed and empty.
Works now. No more cookie errors also. Thank you.

Worked Solidly for one day.

Then I’m getting this error again. Lights status not reporting correctly. I can’t tell if it’s problem with the binding or their servers tho.

2019-03-01 18:44:14.309 [ERROR] [handler.ChamberlainMyQGatewayHandler] - Requesting URL Failed

java.io.IOException: java.util.concurrent.ExecutionException: java.io.EOFException: HttpConnectionOverHTTP@1808f7e(l:/192.168.3.50:44220 <-> r:myqexternal.myqdevice.com/65.166.252.145:443,closed=false)[HttpChannelOverHTTP@19d82d8(exchange=HttpExchange@118fb13 req=TERMINATED/null@null res=PENDING/null@null)[send=HttpSenderOverHTTP@17d9627(req=QUEUED,snd=COMPLETED,failure=null)[HttpGenerator@5f1749{s=START}],recv=HttpReceiverOverHTTP@18dc098(rsp=IDLE,failure=null)[HttpParser{s=CLOSED,0 of -1}]]]

at org.openhab.binding.chamberlainmyq.internal.HttpUtil.executeUrl(HttpUtil.java:163) [196:org.openhab.binding.chamberlainmyq:2.5.0.201902280358]

at org.openhab.binding.chamberlainmyq.handler.ChamberlainMyQGatewayHandler.request(ChamberlainMyQGatewayHandler.java:366) [196:org.openhab.binding.chamberlainmyq:2.5.0.201902280358]

at org.openhab.binding.chamberlainmyq.handler.ChamberlainMyQGatewayHandler.executeMyQCommand(ChamberlainMyQGatewayHandler.java:225) [196:org.openhab.binding.chamberlainmyq:2.5.0.201902280358]

at org.openhab.binding.chamberlainmyq.handler.ChamberlainMyQLightHandler.setLightState(ChamberlainMyQLightHandler.java:85) [196:org.openhab.binding.chamberlainmyq:2.5.0.201902280358]

at org.openhab.binding.chamberlainmyq.handler.ChamberlainMyQLightHandler.handleCommand(ChamberlainMyQLightHandler.java:71) [196:org.openhab.binding.chamberlainmyq:2.5.0.201902280358]

Yes that’s the folder. There are JAR files in there including the 2.3 chamberlain binding.

Thanks.

JR

1 Like

Just updated to 1.14.0 snapshot and everything start working back. Thank you!

My logs are all clean finally. I removed this binding. The 2.x version anyway. Should I be going to the 1.14 version and manually configuring the settings in files? I have been unable to get back to the 2.x version by removing the 2.3 version and going to 2.5. If it’s working, cleaning the cache folder system never starts again.

Thanks.

JR

The discovery format changed between openhab 2.3 and 2.4. Binding jar files built with 2.4/2.5 will not work on 2.3. I recommend you update to 2.4.

I’m on 2.4 of Openhab, but when I put in the 2.5 JAR it had a lot of errors in the log above and when I cleared the cache it wouldn’t start again.

JR

Okay, how do we force remove them? I think I know the answer but want to double check.

This way didn’t work for me:
Vaderchoke