Chamberlain MyQ Binding

has anyone written a quick script to reset the binding as described in this thread? I’ve done the steps a couple of times (stop, remove, clear, replace, update, start) and so far I haven’t been able to get my binding to respond, and wife and kids are getting annoyed…

I just compiled the binding from Scooter’s source code. I haven’t had a chance to test it yet, but will do so tonight. Mine has been unresponsive for the last few weeks and finally had a sec to compile it.

https://drive.google.com/file/d/11C992XE9c86-5TlSaHp3gn9P_xT8IN_K/view?usp=sharing

I can’t get mine back working… tried with this new compilation…

Mine was working until Sunday or Monday of this week…

Can you try the file again? I just verified that my newly compiled version is working for me on my system. Make sure you don’t just try to wget the file from Google Drive. Download it to your desktop and then use a SFTP tool to drop it in your /usr/share/addons.

If that’s still not working, let me know what version of openHAB you are running and I’ll see if I can’t figure out what might be happening.

Hey Adam,

Just gave it a try again. I am running openHABian updated to the latest on a Raspberry Pi 4.

I went through the whole clear cache process after removing the jar file. Rebooted twice over 15 minutes as that is what it takes for all of my items to initialize properly after removing the cache. Downloaded the jar from your url again. I didn’t SFTP it, instead used OpenHABian’s Samba Shares to copy it over. Here are my logs:

2020-07-18 08:20:52.674 [hingStatusInfoChangedEvent] - 'chamberlainmyq:MyQDoorOpener:700cc11d:CG08100DA101' changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)
2020-07-18 08:20:52.683 [hingStatusInfoChangedEvent] - 'chamberlainmyq:MyQGateway:700cc11d' changed from UNINITIALIZED to INITIALIZING
==> /var/log/openhab2/openhab.log <==
2020-07-18 08:20:52.947 [ERROR] [handler.ChamberlainMyQGatewayHandler] - Requesting URL Failed
java.io.IOException: java.util.concurrent.ExecutionException: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
	at org.openhab.binding.chamberlainmyq.internal.HttpUtil.executeUrl(HttpUtil.java:148) ~[bundleFile:?]
	at org.openhab.binding.chamberlainmyq.handler.ChamberlainMyQGatewayHandler.request(ChamberlainMyQGatewayHandler.java:414) [bundleFile:?]
	at org.openhab.binding.chamberlainmyq.handler.ChamberlainMyQGatewayHandler.login(ChamberlainMyQGatewayHandler.java:224) [bundleFile:?]
	at org.openhab.binding.chamberlainmyq.handler.ChamberlainMyQGatewayHandler.validConfiguration(ChamberlainMyQGatewayHandler.java:137) [bundleFile:?]
	at org.openhab.binding.chamberlainmyq.handler.ChamberlainMyQGatewayHandler.initialize(ChamberlainMyQGatewayHandler.java:101) [bundleFile:?]
	at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source) ~[?:?]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_252]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_252]
	at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:152) [bundleFile:?]
	at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:52) [bundleFile:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_252]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_252]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_252]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_252]
Caused by: java.util.concurrent.ExecutionException: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
	at org.eclipse.jetty.client.util.FutureResponseListener.getResult(FutureResponseListener.java:118) ~[bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.client.util.FutureResponseListener.get(FutureResponseListener.java:101) ~[bundleFile:9.4.20.v20190813]
	at org.eclipse.jetty.client.HttpRequest.send(HttpRequest.java:685) ~[bundleFile:9.4.20.v20190813]
	at org.openhab.binding.chamberlainmyq.internal.HttpUtil.executeUrl(HttpUtil.java:128) ~[bundleFile:?]
	... 13 more
Caused by: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
	at org.eclipse.jetty.client.AuthenticationProtocolHandler$AuthenticationListener.onComplete(AuthenticationProtocolHandler.java:163) ~[?:?]
	at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:198) ~[?:?]
	at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:190) ~[?:?]
	at org.eclipse.jetty.client.HttpReceiver.terminateResponse(HttpReceiver.java:444) ~[?:?]
	at org.eclipse.jetty.client.HttpReceiver.responseSuccess(HttpReceiver.java:390) ~[?:?]
	at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.messageComplete(HttpReceiverOverHTTP.java:316) ~[?:?]
	at org.eclipse.jetty.http.HttpParser.handleContentMessage(HttpParser.java:574) ~[?:?]
	at org.eclipse.jetty.http.HttpParser.parseContent(HttpParser.java:1644) ~[?:?]
	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:1490) ~[?:?]
	at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.parse(HttpReceiverOverHTTP.java:172) ~[?:?]
	at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.process(HttpReceiverOverHTTP.java:135) ~[?:?]
	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:154) ~[?:?]
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) ~[?:?]
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) ~[?:?]
	at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:426) ~[?:?]
	at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:320) ~[?:?]
	at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:158) ~[?:?]
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) ~[?:?]
	at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) ~[?:?]
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336) ~[?:?]
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313) ~[?:?]
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171) ~[?:?]
	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129) ~[?:?]
	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:367) ~[?:?]
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:782) ~[?:?]
	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:918) ~[?:?]
	... 1 more
2020-07-18 08:20:52.975 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.initialize()' on 'org.openhab.binding.chamberlainmyq.handler.ChamberlainMyQGatewayHandler@1fefae8': null
java.lang.NullPointerException: null
	at org.openhab.binding.chamberlainmyq.handler.ChamberlainMyQGatewayHandler.login(ChamberlainMyQGatewayHandler.java:231) ~[?:?]
	at org.openhab.binding.chamberlainmyq.handler.ChamberlainMyQGatewayHandler.validConfiguration(ChamberlainMyQGatewayHandler.java:137) ~[?:?]
	at org.openhab.binding.chamberlainmyq.handler.ChamberlainMyQGatewayHandler.initialize(ChamberlainMyQGatewayHandler.java:101) ~[?:?]
	at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source) ~[?:?]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_252]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_252]
	at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:152) [bundleFile:?]
	at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:52) [bundleFile:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_252]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_252]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_252]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_252]
==> /var/log/openhab2/events.log <==
2020-07-18 08:20:52.982 [hingStatusInfoChangedEvent] - 'chamberlainmyq:MyQGateway:700cc11d' changed from INITIALIZING to UNINITIALIZED (HANDLER_INITIALIZING_ERROR)
==> /var/log/openhab2/openhab.log <==
2020-07-18 08:20:52.982 [ERROR] [core.thing.internal.ThingManagerImpl] - Exception occurred while initializing handler of thing 'chamberlainmyq:MyQGateway:700cc11d': null
java.lang.NullPointerException: null
	at org.openhab.binding.chamberlainmyq.handler.ChamberlainMyQGatewayHandler.login(ChamberlainMyQGatewayHandler.java:231) ~[?:?]
	at org.openhab.binding.chamberlainmyq.handler.ChamberlainMyQGatewayHandler.validConfiguration(ChamberlainMyQGatewayHandler.java:137) ~[?:?]
	at org.openhab.binding.chamberlainmyq.handler.ChamberlainMyQGatewayHandler.initialize(ChamberlainMyQGatewayHandler.java:101) ~[?:?]
	at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source) ~[?:?]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_252]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_252]
	at org.eclipse.smarthome.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:152) [bundleFile:?]
	at org.eclipse.smarthome.core.internal.common.Invocation.call(Invocation.java:52) [bundleFile:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_252]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_252]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_252]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_252]

and the addons directory:

[08:21:47] openhabian@pi-openhab:~$ ls -l /usr/share/openhab2/addons
total 2992
-rw-rw-r-- 1 openhabian openhabian 278514 Mar 17 20:22 netty-buffer-4.1.48.Final.jar
-rw-rw-r-- 1 openhabian openhabian 320017 Mar 17 20:22 netty-codec-4.1.48.Final.jar
-rw-rw-r-- 1 openhabian openhabian 611413 Mar 17 20:22 netty-codec-http-4.1.48.Final.jar
-rw-rw-r-- 1 openhabian openhabian 622330 Mar 17 20:22 netty-common-4.1.48.Final.jar
-rw-rw-r-- 1 openhabian openhabian 453889 Mar 17 20:22 netty-handler-4.1.48.Final.jar
-rw-rw-r-- 1 openhabian openhabian  33158 Mar 17 20:22 netty-resolver-4.1.48.Final.jar
-rw-rw-r-- 1 openhabian openhabian 473560 Mar 17 20:22 netty-transport-4.1.48.Final.jar
-rw-rw-r-- 1 openhabian openhabian 189066 Jun 17 08:19 org.openhab.binding.amazonechocontrol-2.5.6-fix-leaks-fix-connection.jar
-rw-rw-r-- 1 openhabian openhabian  46377 Jul 18 08:05 org.openhab.binding.chamberlainmyq-2.5.0-SNAPSHOT.jar
-rw-rw-r-- 1 openhab    openhab     10512 Oct  2  2019 org.openhab.ui.habpanel.widget.gauge-2.1.0-SNAPSHOT.jar
-rw-r--r-- 1 openhab    openhab        70 Jun 22 08:15 README

Perhaps I’m missing something but happy to test however you need me to…

Open Karaf and perform

bundle:list

See if you have the previous Chamberlain jar still loaded. Clearing the cache probably should have taken care of it, but worth a shot.

I only compiled it so I’m pretty much learning as I go. :sweat_smile:

openhab> bundle:list | grep q
228 │ Active  │  80 │ 1.1.2                   │ hivemq-mqtt-client
281 │ Waiting │  75 │ 2.5.6                   │ openHAB Add-ons :: Bundles :: IO :: MQTT Broker Moquette
openhab> bundle:list | grep Q
231 │ Active  │  80 │ 4.1.42.Final            │ Netty/Codec/MQTT
260 │ Active  │  80 │ 2.5.6                   │ openHAB Add-ons :: Bundles :: MQTT Broker Binding
261 │ Active  │  81 │ 2.5.6                   │ openHAB Add-ons :: Bundles :: MQTT Things and Channels
262 │ Active  │  82 │ 2.5.6                   │ openHAB Add-ons :: Bundles :: MQTT HomeAssistant Convention
263 │ Active  │  82 │ 2.5.6                   │ openHAB Add-ons :: Bundles :: MQTT Homie Convention
277 │ Active  │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: MQTT Transport
281 │ Waiting │  75 │ 2.5.6                   │ openHAB Add-ons :: Bundles :: IO :: MQTT Broker Moquette
303 │ Active  │  80 │ 2.5.0.202007161852      │ openHAB Add-ons :: Bundles :: ChamberlainMyQ Binding

Have you already tried deleting your bridge and garage door things and re-discovering? I have stopped and restarted my bundle, restarted openHAB, and everything still working fine with my compiled jar.

I removed all traces and restarted/reintalled/recreated… but before anyone feels that they need to do that, I very well may have done something dumb and missed a step or a configuration…

Thanks for the help

Hi All,

This probably isn’t the right thread for this issue, but when my MyQ binding stops working, I see a log entry in my openhab.log file of:

2020-07-22 09:58:23.045 [ERROR] [handler.ChamberlainMyQGatewayHandler] - An exception occurred while executing a request to the Gateway: ‘null’

I’m going to try compiling a few threads on logging & restarting the service (maybe an email or some notification too) when this happens. Not sure if that’s the best approach, but if not, I only find out it’s not working after it’s been down for potentially days or more.

I use OH to do recurring notifications when the doors are left open for too long, it plays out the Alexa’s with an announcement and also texts me sometimes.

Thanks again for all the work on the binding!

I have been having lots of issues with the myq service not working. Sometimes a restart of openHAB will fix it. This morning, it was not working again. I will try to look into it soon.

I also have been having the issues with the service randomly failing. I setup a rule to write a datetime stamp to an item so I can see when it fails. The errors I get are:

2020-07-25 12:20:03.848 [ERROR] [handler.ChamberlainMyQGatewayHandler] - Requesting URL Failed
java.io.IOException: java.util.concurrent.ExecutionException: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
        at org.openhab.binding.chamberlainmyq.internal.HttpUtil.executeUrl(HttpUtil.java:148) ~[?:?]
        at org.openhab.binding.chamberlainmyq.handler.ChamberlainMyQGatewayHandler.request(ChamberlainMyQGatewayHandler.java:415) ~[?:?]
        at org.openhab.binding.chamberlainmyq.handler.ChamberlainMyQGatewayHandler.getMyqData(ChamberlainMyQGatewayHandler.java:251) ~[?:?]
        at org.openhab.binding.chamberlainmyq.handler.ChamberlainMyQGatewayHandler.refreshDeviceState(ChamberlainMyQGatewayHandler.java:331) ~[?:?]
        at org.openhab.binding.chamberlainmyq.handler.ChamberlainMyQGatewayHandler.lambda$0(ChamberlainMyQGatewayHandler.java:321) ~[?:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_252]
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:1.8.0_252]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_252]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:1.8.0_252]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_252]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_252]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_252]
Caused by: java.util.concurrent.ExecutionException: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
        at org.eclipse.jetty.client.util.FutureResponseListener.getResult(FutureResponseListener.java:118) ~[bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.client.util.FutureResponseListener.get(FutureResponseListener.java:101) ~[bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.client.HttpRequest.send(HttpRequest.java:685) ~[bundleFile:9.4.20.v20190813]
        at org.openhab.binding.chamberlainmyq.internal.HttpUtil.executeUrl(HttpUtil.java:128) ~[?:?]
        ... 11 more
Caused by: org.eclipse.jetty.client.HttpResponseException: HTTP protocol violation: Authentication challenge without WWW-Authenticate header
        at org.eclipse.jetty.client.AuthenticationProtocolHandler$AuthenticationListener.onComplete(AuthenticationProtocolHandler.java:163) ~[bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:198) ~[bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.client.ResponseNotifier.notifyComplete(ResponseNotifier.java:190) ~[bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.client.HttpReceiver.terminateResponse(HttpReceiver.java:444) ~[bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.client.HttpReceiver.responseSuccess(HttpReceiver.java:390) ~[bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.messageComplete(HttpReceiverOverHTTP.java:316) ~[bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.http.HttpParser.handleContentMessage(HttpParser.java:574) ~[bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.http.HttpParser.parseContent(HttpParser.java:1644) ~[bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:1490) ~[bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.parse(HttpReceiverOverHTTP.java:172) ~[bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.process(HttpReceiverOverHTTP.java:135) ~[bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.client.http.HttpReceiverOverHTTP.receive(HttpReceiverOverHTTP.java:73) ~[bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.client.http.HttpChannelOverHTTP.receive(HttpChannelOverHTTP.java:133) ~[bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.client.http.HttpConnectionOverHTTP.onFillable(HttpConnectionOverHTTP.java:154) ~[bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) ~[bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) ~[bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:426) ~[bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:320) ~[bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:158) ~[bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) ~[bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) ~[bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336) ~[bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313) ~[bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171) ~[bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129) ~[bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:367) ~[bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:782) ~[bundleFile:9.4.20.v20190813]
        at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:918) ~[bundleFile:9.4.20.v20190813]
        ... 1 more
2020-07-25 12:20:03.860 [ERROR] [handler.ChamberlainMyQGatewayHandler] - An exception occurred while executing a request to the Gateway: 'null'

Hi,

i downloaded the computergeek Code and converted it to new Maven System.
Also i changed the Settings and the Communication.
For now it works and since you can change the Useragent and the Api Version it should work longer than the other builds…

Plz don’t cry it’s my first Time coding in Java :slight_smile:

https://gofile.io/d/30qysV

Thanks for your work on this @mmtnrw. For the first time in a long time I have some control over my doors in OH. Just a couple of questions on this binding. For the rollershutter control, it doesn’t appear that it can control a % (number) for the door opening - essentially it is just an On/Off control with Open/Closed contact. Is it possible with the API/binding to send a number to open the door some percentage (for example, open 20 on the scale of 0 to 100)? Also, it is possible to detect when the door is in motion (opening or closing)? I’m just curious as to whether it’s possible to have the degree of control as the original binding (the 1.x binding).

Thanks again for your work!

@RipNCode The MyQ API will display “Opening”, “Closing” when the door is moving. The hard part it catching it in that state if you only poll every 60 secs. There is no API to open the door a certain percentage. You sent an “open” or “close” command.

@mmtnrw Is your code publicly available? I would like to help if possible.

Thanks,
Scott

Thanks @scooter_seh. I figured it may be possible with the API - wasn’t sure. It seems I can catch at least a portion of the opening/closing state to use with a rule. Essentially, I’d like to update some things based on when the doors are moving (cues to let me know when it’s happening as I’m not always here).

For such a real time type response I’d suggest a local sensor. There are cheap zigbee ones that would accomplish this with precision. (IE SmartThings multipurpose sensor is a contact sensor with acceleration and temperature. Disclaimer being that I don’t use the zigbee stack in OpenHAB anymore so you’d want to confirm elsewhere that all of those fields work with your chosen device.)

Plus you always know the state of your door - regardless of the MyQ api.

I use a zWave tilt sensor on top of the Chamberlain IQ on the garage door itself. I group them together in OH and use the group to base decisions on.

Best, Jay

I just wanted to send it too you, since i only adopted it… Write PN with e-Mail, i will send it to you… I didn’t want to fork on git or something else…