Myq componenet issues

Did you ever get the errors figured out? I’m getting the same errors (when it had been working, I believe). Now it no longer works. I have a standalone MyQ garage door opener with WiFi built in.

hmm. Let me try that. I am on an AIO installer RPi3

Still no luck. Copied it to /srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/cover in my case. I guess this just isn’t going to work for me. I have ordered a Garadget. Hopefully that works better for me. Thanks again for your help!

Sorry. I did what I could.

Everything was working perfect until today morning that is showing this on the log:

Feb 04 08:43:14 raspberrypi hass[1293]: ERROR:homeassistant.components.cover:Error while setting up platform myq
Feb 04 08:43:14 raspberrypi hass[1293]: Traceback (most recent call last):
Feb 04 08:43:14 raspberrypi hass[1293]: File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py”, line 151, in _async_setup_platform
Feb 04 08:43:14 raspberrypi hass[1293]: entity_platform.add_entities, discovery_info
Feb 04 08:43:14 raspberrypi hass[1293]: File “/usr/lib/python3.4/asyncio/futures.py”, line 388, in iter
Feb 04 08:43:14 raspberrypi hass[1293]: yield self # This tells Task to wait for completion.
Feb 04 08:43:14 raspberrypi hass[1293]: File “/usr/lib/python3.4/asyncio/tasks.py”, line 286, in _wakeup
Feb 04 08:43:14 raspberrypi hass[1293]: value = future.result()
Feb 04 08:43:14 raspberrypi hass[1293]: File “/usr/lib/python3.4/asyncio/futures.py”, line 277, in result
Feb 04 08:43:14 raspberrypi hass[1293]: raise self._exception
Feb 04 08:43:14 raspberrypi hass[1293]: File “/usr/lib/python3.4/concurrent/futures/thread.py”, line 54, in run
Feb 04 08:43:14 raspberrypi hass[1293]: result = self.fn(*self.args, **self.kwargs)
Feb 04 08:43:14 raspberrypi hass[1293]: File “/home/homeassistant/.homeassistant/custom_components/cover/myq.py”, line 70, in setup_platform
Feb 04 08:43:14 raspberrypi hass[1293]: in myq.get_garage_doors())
Feb 04 08:43:14 raspberrypi hass[1293]: File “/home/homeassistant/.homeassistant/custom_components/cover/myq.py”, line 151, in get_garage_doors
Feb 04 08:43:14 raspberrypi hass[1293]: devices = self.get_devices()
Feb 04 08:43:14 raspberrypi hass[1293]: File “/home/homeassistant/.homeassistant/custom_components/cover/myq.py”, line 128, in get_devices
Feb 04 08:43:14 raspberrypi hass[1293]: self._logged_in = self.login()
Feb 04 08:43:14 raspberrypi hass[1293]: File “/home/homeassistant/.homeassistant/custom_components/cover/myq.py”, line 119, in login
Feb 04 08:43:14 raspberrypi hass[1293]: auth = login.json()
Feb 04 08:43:14 raspberrypi hass[1293]: File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/requests/models.py”, line 866, in json
Feb 04 08:43:14 raspberrypi hass[1293]: return complexjson.loads(self.text, **kwargs)
Feb 04 08:43:14 raspberrypi hass[1293]: File “/usr/lib/python3.4/json/init.py”, line 318, in loads
Feb 04 08:43:14 raspberrypi hass[1293]: return _default_decoder.decode(s)
Feb 04 08:43:14 raspberrypi hass[1293]: File “/usr/lib/python3.4/json/decoder.py”, line 343, in decode
Feb 04 08:43:14 raspberrypi hass[1293]: obj, end = self.raw_decode(s, idx=_w(s, 0).end())
Feb 04 08:43:14 raspberrypi hass[1293]: File “/usr/lib/python3.4/json/decoder.py”, line 361, in raw_decode
Feb 04 08:43:14 raspberrypi hass[1293]: raise ValueError(errmsg(“Expecting value”, s, err.value)) from None
Feb 04 08:43:14 raspberrypi hass[1293]: ValueError: Expecting value: line 1 column 1 (char 0)

Did not change the credentials or anything on the MyQ app.

Thanks

Seeing same error today with myq component.

I’m not sure why you quoted me.

Yeah, same.

Something changed on the myq api side as other python projects on github are reporting the same issue. I tried manually authenticating via the endpoint and am getting a “Your request has been denied” message returned. I also got an update to my iOS app earlier this week, so thats probably not a coincidence.

When I saw that update to the app and began having trouble with even the homebridge-Chamberlain plugin, I returned my MyQ to Amazon and bought a Garadget. I’m thinking this will stay broken for a bit since Chamberlain is trying to sell a HomeKit compatible hub for these.

Interesting. Mine is still working but I have not restarted ha in a while.

Just restart and you will be surprised …

Might have sorted something out, as I found some new endpoints that are giving me data back. Will see if I can get things updated. If someone else beats me to it please let everyone know.

I have updated the file on github and the latest can be grabbed at:

https://raw.githubusercontent.com/arraylabs/myq/master/myq.py

I’ve only been able to test it with my opener (chamberlain) but its again working properly!

Great thank you very much !!!

One question now its showing “cover.garage_door_opener”

How can i just change that to “cover.garage_door”

All my auto and scripts are already with that name …

Thanks

Just submitted a PR to enable the universal MyQ retrofit kit. It has a unique DEVICE_TYPE_NAME for some reason.

What is that ?

It’s another variety of MyQ opener. That comment was directed at @lordsiris.

Also, @lordsiris, while I can open and close my garage door, it doesn’t appear to be reporting the status back to hass correctly. It always shows closed, with nothing in the error logs.

I think that changed a while back and is the name returned from MyQ. You could try changing line 222 from:

self._name = device['name']

to

self._name = 'garage_door'

Merged the PR, thanks!

Also pm’d you regarding some info on your status. I get valid status on my end, just wondering if different because of the device type you have.