Goose66 / myq-polyglotv2

Nodeserver for Chamberlain/LiftMaster MyQ Cloud Service for Polyglot v2
4 stars 1 forks source link

MyQ polyglot connection error #6

Closed ghost closed 3 years ago

ghost commented 3 years ago

This stopped working sometime this week - I noticed yesterday. I uninstalled MyQ node server and reinstalled, with same issue.

Log file below. The MyQ app still works.

2020-12-17 08:15:24,378 MainThread polyinterface INFO polylogger:set_basic_config: set_basic_config: enable=True level=30 2020-12-17 08:15:25,722 MainThread polyinterface INFO polyinterface:init_interface: Received Config from STDIN. 2020-12-17 08:15:25,724 MainThread polyinterface INFO init:: UDI Polyglot v2 Interface 2.1.0 Starting... 2020-12-17 08:15:27,270 MainThread polyinterface DEBUG polyinterface:get_network_interface: gws: {'default': {2: ('192.168.50.1', 'igb0')}, 2: [('192.168.50.1', 'igb0', True)]} 2020-12-17 08:15:27,271 MainThread polyinterface DEBUG polyinterface:get_network_interface: gw: default=('192.168.50.1', 'igb0') 2020-12-17 08:15:27,272 MainThread polyinterface DEBUG polyinterface:get_network_interface: ifad: igb0=[{'addr': '192.168.50.246', 'netmask': '255.255.255.0', 'broadcast': '192.168.50.255'}] 2020-12-17 08:15:27,273 MainThread polyinterface INFO polyinterface:init: Connect: Network Interface: {'addr': '192.168.50.246', 'netmask': '255.255.255.0', 'broadcast': '192.168.50.255'} 2020-12-17 08:15:27,276 Interface polyinterface INFO polyinterface:_startMqtt: Connecting to MQTT... localhost:1883 2020-12-17 08:15:27,565 MQTT polyinterface INFO polyinterface:_connect: MQTT Connected with result code 0 (Success) 2020-12-17 08:15:27,568 MQTT polyinterface INFO polyinterface:_connect: MQTT Subscribing to topic: udi/polyglot/ns/3 - MID: 1 Result: 0 2020-12-17 08:15:27,568 MQTT polyinterface INFO polyinterface:_connect: MQTT Subscribing to topic: udi/polyglot/connections/polyglot - MID: 2 Result: 0 2020-12-17 08:15:27,570 MQTT polyinterface INFO polyinterface:_connect: Sent Connected message to Polyglot 2020-12-17 08:15:27,658 MQTT polyinterface INFO polyinterface:_subscribe: MQTT Subscribed Succesfully for Message ID: 1 - QoS: (0,) 2020-12-17 08:15:27,732 MQTT polyinterface INFO polyinterface:_subscribe: MQTT Subscribed Succesfully for Message ID: 2 - QoS: (0,) 2020-12-17 08:15:27,946 NodeServer polyinterface INFO myq-poly:start: Started MyQ Node Server... 2020-12-17 08:15:27,947 NodeServer polyinterface INFO polyinterface:removeNotice: Sending removenotice to Polyglot for index {'key': 'login_error'} 2020-12-17 08:15:28,160 NodeServer polyinterface DEBUG myqapi:loginToService: in API loginToService()... 2020-12-17 08:15:28,533 NodeServer polyinterface WARNING myqapi:_call_api: Network/server error in HTTP POST in _call_api(): ('Connection aborted.', OSError("(54, 'ECONNRESET')")) 2020-12-17 08:15:28,535 NodeServer polyinterface INFO polyinterface:addNotice: Sending addnotice to Polyglot: {'key': 'login_error', 'value': 'There was an error connecting to the MyQ service. Please check the log files and correct the issue before restarting the nodeserver.'} 2020-12-17 08:15:28,537 NodeServer polyinterface INFO myq-poly:stopMe: Asking Polyglot to stop me. 2020-12-17 08:15:28,825 MQTT polyinterface DEBUG polyinterface:_message: Received stop from Polyglot... Shutting Down. 2020-12-17 08:15:28,826 MQTT polyinterface INFO polyinterface:stop: Disconnecting from MQTT... localhost:1883 2020-12-17 08:15:28,828 MQTT polyinterface INFO polyinterface:reportDriver: Updating Driver controller - ST: 0, uom: 2 2020-12-17 08:15:28,830 MQTT polyinterface INFO polyinterface:_disconnect: MQTT Graceful disconnection. 2020-12-17 08:15:28,832 MQTT polyinterface DEBUG polyinterface:_startMqtt: MQTT Done:

BreakTheBonds commented 3 years ago

I just off of the phone with Liftmaster Support. They stated that the latest updates to their system will no longer allow connections to their API from third party applications that they have not approved as compatible. He stated that in order for devices to connect, that they must agree to their new TOS as a "partner". I would not be surprised if this wasn't pushed by Amazon, as their Alexa and Ring products love to take control by limiting the competition, since MyQ is now accessible through the Ring app.

ghost commented 3 years ago

Figured it was something like that. Any work arounds? I don't know enough to really understand how/why, but in the last 24 hours there are a few posts on GitHub about a "random user agent" and some code to do it?

Goose66 commented 3 years ago

Added the "random user agent" fix from pyMyQ. Now version 2.1.13. Should be available for update in Polyglot at 3:43 PM EST. Don't know how long this fix will work, however.

BreakTheBonds commented 3 years ago

Thanks Goose. It isn't like they make it easy for you.

BreakTheBonds commented 3 years ago

Connection has been restored and all is functioning as was previously. Thanks again.

moabrocks commented 3 years ago

restored for me as well. thx