Status seems broken

JBB
Posts: 10
Joined: Wed Apr 17, 2013 12:47 am

Status seems broken

Post by JBB »

I am using MyQ to try to control a gate operator. The MyQ app knows the status of whether the gate is open or closed (and can show it via the app). The MyQ plugin never seems to know the correct status (unless it is reloaded and logs in again) using the door state proprerty. If I open the gate from the plugin , the status changes to "unlocked" and never goes back to "locked", even after the gate closes automatically after a minute, and even after I manually send a status request. I then cannot open the gate again because the plugin thinks it is still unlocked. The plugin cannot lock it either, as the server doesn't seem to support this. Here is an example from the verbose logs. At 10:49:54 AM, the door state was closed, but the plugin thought it was open until it logged in again. Then the correct status was actually obtained at 10:51:16 AM.

Code: Select all

Oct 3, 2021 at 10:49:54 AM
   MyQ Debug                       actionControlDevice: Request Status
   MyQ Debug                       Send pymyq message: {"cmd": "accounts"}
   MyQ Debug                       Received pymyq message: {"msg": "echo", "request": {"cmd": "accounts"}}
   MyQ Debug                       Received pymyq message: {"msg": "account", "id": "8122d55a-d2ad-499c-a3cb-f737bc6509d8", "name": "myq"}
   MyQ Debug                       pymyq_read: account ID = 8122d55a-d2ad-499c-a3cb-f737bc6509d8, name = myq
   MyQ Debug                       Send pymyq message: {"cmd": "devices"}
   MyQ Debug                       Received pymyq message: {"msg": "echo", "request": {"cmd": "devices"}}
   MyQ Debug                       Received pymyq message: {"msg": "device", "id": "GW01000B88C2", "props": {"href": "/accounts/8122d55a-d2ad-499c-a3cb-f737bc6509d8/devices/gateway/GW01000B88C2", "serial_number": "GW01000B88C2", "device_family": "gateway", "device_platform": "myq", "device_type": "ethernetgateway", "device_model": "ethernetgateway", "name": "Gate", "created_date": "0001-01-01T00:00:00", "account_id": "8122d55a-d2ad-499c-a3cb-f737bc6509d8", "state": {"allow_bluetooth_lock": false, "firmware_version": "4.2", "homekit_capable": false, "homekit_enabled": false, "learn_mode": false, "updated_date": "2021-10-03T16:44:35.2557065Z", "physical_devices": [], "pending_bootload_abandoned": false, "supports_dealer_diagnostics": false, "online": true, "last_status": "2021-10-03T16:44:32.2458744Z"}}}
   MyQ Debug                       pymyq_read: device ID = GW01000B88C2, name = Gate, family = gateway
   MyQ Debug                       Received pymyq message: {"msg": "device", "id": "CG0A2001D942", "props": {"href": "/accounts/8122d55a-d2ad-499c-a3cb-f737bc6509d8/devices/garagedoor/CG0A2001D942", "serial_number": "CG0A2001D942", "device_family": "garagedoor", "device_platform": "myq", "device_type": "gate", "device_model": "gate", "name": "Gate Operator", "parent_device_id": "GW01000B88C2", "created_date": "0001-01-01T00:00:00", "account_id": "8122d55a-d2ad-499c-a3cb-f737bc6509d8", "state": {"door_state": "open", "last_update": "2021-10-03T16:48:33.6948568Z", "is_unattended_open_allowed": true, "is_unattended_close_allowed": true, "service_cycle_count": 0, "absolute_cycle_count": 0, "online": true, "last_status": "2021-10-03T16:48:34.8294353Z"}}}
   MyQ Debug                       pymyq_read: device ID = CG0A2001D942, name = Gate Operator, family = garagedoor
   MyQ Debug                       pymyq_read: door state = open
   MyQ Debug                       Checking Opener Device: Gate (CG0A2001D942) against CG0A2001D942
   MyQ Debug                       Skipping triggers, no linked sensor for MyQ device Gate

Oct 3, 2021 at 10:51:16 AM
   Reloading plugin "MyQ 7.7.1"
   Stopping plugin "MyQ 7.7.1" (pid 60067)
   MyQ                             Gate: Stopping myqOpener Device 1737994300
   MyQ Debug                       Gate: deviceStopComm: Removing device (1737994300) from self.myqOpeners
   MyQ                             Stopping MyQ
   Stopped plugin "MyQ 7.7.1"
   Starting plugin "MyQ 7.7.1" (pid 60730)
   Started plugin "MyQ 7.7.1"
   MyQ                             Starting MyQ
   MyQ Debug                       statusFrequency = 600.0
   MyQ                             Gate: Starting myqOpener Device 1737994300
   MyQ Debug                       Gate: deviceStartComm: Device version is up to date (2)
   MyQ Debug                       Gate: deviceStartComm: Adding device (1737994300) to self.myqOpeners
   MyQ Debug                       Send pymyq message: {"cmd": "accounts"}
   MyQ Debug                       Send pymyq message: {"cmd": "devices"}
   MyQ Debug                       Received pymyq message: {'id': '8122d55a-d2ad-499c-a3cb-f737bc6509d8', 'name': 'myq', 'created_by': 'a033bf62-b931-4f89-afab-dd499b2e46d4', 'max_users': {'guest': 5, 'co_owner': 2}}
   MyQ Warning                     Unable to convert JSON message from subprocess: '{'id': '8122d55a-d2ad-499c-a3cb-f737bc6509d8', 'name': 'myq', 'created_by': 'a033bf62-b931-4f89-afab-dd499b2e46d4', 'max_users': {'guest': 5, 'co_owner': 2}}'
   MyQ Debug                       Received pymyq message: {"msg": "status", "status": "Login Complete"}
   MyQ                             Login Complete
   MyQ Debug                       Received pymyq message: {"msg": "echo", "request": {"cmd": "accounts"}}
   MyQ Debug                       Received pymyq message: {"msg": "account", "id": "8122d55a-d2ad-499c-a3cb-f737bc6509d8", "name": "myq"}
   MyQ Debug                       pymyq_read: account ID = 8122d55a-d2ad-499c-a3cb-f737bc6509d8, name = myq
   MyQ Debug                       Received pymyq message: {"msg": "echo", "request": {"cmd": "devices"}}
   MyQ Debug                       Received pymyq message: {"msg": "device", "id": "GW01000B88C2", "props": {"href": "/accounts/8122d55a-d2ad-499c-a3cb-f737bc6509d8/devices/gateway/GW01000B88C2", "serial_number": "GW01000B88C2", "device_family": "gateway", "device_platform": "myq", "device_type": "ethernetgateway", "device_model": "ethernetgateway", "name": "Gate", "created_date": "0001-01-01T00:00:00", "account_id": "8122d55a-d2ad-499c-a3cb-f737bc6509d8", "state": {"allow_bluetooth_lock": false, "firmware_version": "4.2", "homekit_capable": false, "homekit_enabled": false, "learn_mode": false, "updated_date": "2021-10-03T17:48:10.4442119Z", "physical_devices": [], "pending_bootload_abandoned": false, "supports_dealer_diagnostics": false, "online": true, "last_status": "2021-10-03T17:48:07.4354203Z"}}}
   MyQ Debug                       pymyq_read: device ID = GW01000B88C2, name = Gate, family = gateway
   MyQ Debug                       Received pymyq message: {"msg": "device", "id": "CG0A2001D942", "props": {"href": "/accounts/8122d55a-d2ad-499c-a3cb-f737bc6509d8/devices/garagedoor/CG0A2001D942", "serial_number": "CG0A2001D942", "device_family": "garagedoor", "device_platform": "myq", "device_type": "gate", "device_model": "gate", "name": "Gate Operator", "parent_device_id": "GW01000B88C2", "created_date": "0001-01-01T00:00:00", "account_id": "8122d55a-d2ad-499c-a3cb-f737bc6509d8", "state": {"door_state": "closed", "last_update": "2021-10-03T17:00:47.6948744Z", "is_unattended_open_allowed": true, "is_unattended_close_allowed": true, "service_cycle_count": 0, "absolute_cycle_count": 0, "online": true, "last_status": "2021-10-03T17:48:10.7097099Z"}}}
   MyQ Debug                       pymyq_read: device ID = CG0A2001D942, name = Gate Operator, family = garagedoor
   MyQ Debug                       pymyq_read: door state = closed
   MyQ Debug                       Checking Opener Device: Gate (CG0A2001D942) against CG0A2001D942
   MyQ Debug                       Skipping triggers, no linked sensor for MyQ device Gate
User avatar
FlyingDiver
Posts: 7823
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Status seems broken

Post by FlyingDiver »

What do you have the update interval set to? And if you don't restart the plugin, and it just polls for status on it's own, does it ever get the correct state?
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
JBB
Posts: 10
Joined: Wed Apr 17, 2013 12:47 am

Re: Status seems broken

Post by JBB »

I've set the update interval to 5 minutes. If I open the gate from the plugin, it never is able to get the correct state again unless it's reloaded.
User avatar
FlyingDiver
Posts: 7823
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Status seems broken

Post by FlyingDiver »

Hmm. Not sure what's going on. I'll take a look when I can.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
ltlwood
Posts: 4
Joined: Sun Jan 21, 2018 7:08 pm

Re: Status seems broken

Post by ltlwood »

I am also having a problem with the plugin recently. It seems that mine is not letting me log in. I keep getting a "Log in to MyQ server failed". I know that I am entering the correct information as nothing has changed.

I can use the MyQ app, but for some reason Indigo is not able to communicate to the hubs.

Thanks for any time that you put towards this, and if you need more information please let me know.
elf55
Posts: 48
Joined: Mon Mar 19, 2012 4:30 pm

Re: Status seems broken

Post by elf55 »

Ditto with me. I get the error:

Error when trying to open Garage Dr: Error requesting data from https://account-devices-gdo.myq-cloud.c ... C290F/open: 403 - Forbidden

-Mike
User avatar
FlyingDiver
Posts: 7823
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Status seems broken

Post by FlyingDiver »

I think I fixed the status update problems in 7.7.2: https://github.com/FlyingDiver/Indigo-M ... /tag/7.7.2

Please test and let me know.

If anyone is having problems OTHER than the device status not getting updated properly, please start a new thread or, better yet, create an issue on GitHub: https://github.com/FlyingDiver/Indigo-MyQ/issues

If you report it here on the forums, and I think it's a new issue that isn't already in GitHub, then I'm going to ask you to report it there anyway.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Locked

Return to “MyQ”