Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"The serial number was invalid." error #12

Closed
FlyingDiver opened this issue Dec 11, 2019 · 4 comments
Closed

"The serial number was invalid." error #12

FlyingDiver opened this issue Dec 11, 2019 · 4 comments
Assignees

Comments

@FlyingDiver
Copy link
Owner

Catalina 10.15.1 (19B88)

Dec 9, 2019 at 11:09:30 AM
Reloading plugin "MyQ 7.4.4"
Stopping plugin "MyQ 7.4.4" (pid 5586)
MyQ Shutting down MyQ
Stopped plugin "MyQ 7.4.4"
Starting plugin "MyQ 7.4.4" (pid 5590)
Started plugin "MyQ 7.4.4"
MyQ Starting MyQ
MyQ Error Garage Door : changeDevice failure, code: 400, response: {"code":"400.301","message":"Bad Request","description":"The serial number was invalid. Please try again."}
@FlyingDiver
Copy link
Owner Author

FlyingDiver commented Dec 11, 2019

Happens when sending a control message to MyQ.

   MyQ Debug                       Garage Door : changeDevice: new state = open
   MyQ Threaddebug                 Garage Door : changeDevice: 
   url = https://api.myqdevice.com/api/v5/Accounts/b9c7e13f-3499-4c75-9f89-46d119d86654/Devices//actions, 
   data = = 
{   
    'action_type': 'open'
}, 
    headers = = 
{
    'MyQApplicationId': 'JVM/G9Nwih5BwKgNCjLxiFUQxQijAebyyg8QUHr7JOrP+tuPb8iHfRHKwTmDzHOu', 
    'Content-Type': 'application/json', 
    'SecurityToken': u'a965d6cc-285f-4b65-ae59-a90c478ea0e5'
}
   MyQ Error                       Garage Door : changeDevice failure, code: 400, response: 
{
    "code":"400.301",
    "message":"Bad Request",
    "description":"The serial number was invalid. Please try again."
}

@FlyingDiver
Copy link
Owner Author

   MyQ Debug                       actionControlDevice: Unlock Garage Door 
   MyQ Debug                       myqLogin response = {"SecurityToken":"a965d6cc-285f-4b65-ae59-a90c478ea0e5"}
   MyQ Debug                       myqLogin successful
   MyQ Threaddebug                 myqLogin account_info = 
{
    u'UserName': u'agggggg@gmail.com', 
    u'Account': {
        u'Name': u"xxxxxxx's Account", 
        u'Roles': {
            u'href': u'http://api.myqdevice.com/api/v5/Accounts/b9c7e13f-3499-4c75-9f89-46d119d86654/Roles'
        }, 
        u'UserAllowance': 4, 
        u'DirectoryCodeLength': 0, 
        u'AccessGroups': {
            u'href': u'http://api.myqdevice.com/api/v5/Accounts/b9c7e13f-3499-4c75-9f89-46d119d86654/AccessGroups'
        }, 
        u'Devices': {
            u'href': u'http://api.myqdevice.com/api/v5/Accounts/b9c7e13f-3499-4c75-9f89-46d119d86654/Devices'
        }, 
        u'Id': u'b9c7e13f-3499-4c75-9f89-46d119d86654', 
        u'Zones': {
            u'href': u'http://api.myqdevice.com/api/v5/Accounts/b9c7e13f-3499-4c75-9f89-46d119d86654/Zones'
        }, 
        u'Phone': u'5555555555', 
        u'href': u'http://api.myqdevice.com/api/v5/Accounts/b9c7e13f-3499-4c75-9f89-46d119d86654', 
        u'ContactName': u'xxxxxxx, 
        u'Address': {
            u'PostalCode': u'11111-1030', 
            u'City': u'city', 
            u'State': u'NY', 
            u'Country': {
                u'href': u'http://api.myqdevice.com/api/v5/Countries/USA', 
                u'Code': u'USA', 
                u'IsEEACountry': False
            }, 
            u'AddressLine1': u'xxxxxx'
        }, 
        u'TimeZone': u'America/New_York', 
        u'AccessSchedules': {
            u'href': u'http://api.myqdevice.com/api/v5/Accounts/b9c7e13f-3499-4c75-9f89-46d119d86654/AccessSchedules'
        }, 
        u'Email': u'axxxxxx@gmail.com', 
        u'Users': {
            u'href': u'http://api.myqdevice.com/api/v5/Accounts/b9c7e13f-3499-4c75-9f89-46d119d86654/Users'
        }
    }, 
    u'Users': {
        u'href': u'http://api.myqdevice.com/api/v5/My/Users'
    }, 
    u'FirstName': u'xxxxx', 
    u'Admin': False, 
    u'AnalyticsId': u'de2b3bb2-5732-4e92-a2c5-ebfed3980249', 
    u'DiagnosticDataOptIn': True, 
    u'Address': {
        u'PostalCode': u'11111-1030', 
        u'City': u'city', 
        u'Country': {
            u'href': u'http://api.myqdevice.com/api/v5/Countries/USA', 
            u'Code': u'USA', 
            u'IsEEACountry': False
        }, 
        u'AddressLine1': u'xxxxxxx'
    }, 
    u'UserId': u'b9c7e13f-3499-4c75-9f89-46d119d86654', 
    u'RequestAccountLinkInfo': False, 
    u'CultureCode': u'en', 
    u'Phone': u'5555555555', 
    u'LastName': u'xxxxx', 
    u'TimeZone': {
        u'Id': u'America/New_York', 
        u'Name': u'America/New_York'
    }, 
    u'Email': u'xxxxx@gmail.com', 
    u'MailingListOptIn': False
}

@FlyingDiver
Copy link
Owner Author

MyQ Threaddebug                 getDevices device_info = 
{
    u'count': 2, 
    u'items': 
    [
        {
            u'name': u'Garage Door Opener', 
            u'parent_device_id': u'GW0100018358', 
            u'device_family': u'garagedoor', 
            u'state': {
                u'use_aux_relay': False, 
                u'max_invalid_attempts': 0, 
                u'control_from_browser': False, 
                u'close': u'http://api.myqdevice.com/api/v5/accounts/b9c7e13f-3499-4c75-9f89-46d119d86654/devices/CG0810207427/close', 
                u'open': u'http://api.myqdevice.com/api/v5/accounts/b9c7e13f-3499-4c75-9f89-46d119d86654/devices/CG0810207427/open', 
                u'aux_relay_behavior': u'None', 
                u'invalid_shutout_period': u'00:00:00', 
                u'rex_fires_door': False, 
                u'last_update': u'2019-12-11T03:21:27.5176452Z', 
                u'passthrough_interval': u'00:00:00', 
                u'attached_work_light_error_present': False, 
                u'online': True, 
                u'report_ajar': False, 
                u'door_state': u'closed', 
                u'invalid_credential_window': u'00:00:00', 
                u'report_forced': False, 
                u'last_status': u'2019-12-11T11:30:49.8523524Z', 
                u'command_channel_report_status': False, 
                u'gdo_lock_connected': False, 
                u'door_ajar_interval': u'00:00:00', 
                u'is_unattended_open_allowed': True, 
                u'aux_relay_delay': u'00:00:00', 
                u'is_unattended_close_allowed': True
            }, 
            u'href': u'http://api.myqdevice.com/api/v5/accounts/b9c7e13f-3499-4c75-9f89-46d119d86654/devices/CG0810207427', 
            u'parent_device': u'http://api.myqdevice.com/api/v5/accounts/b9c7e13f-3499-4c75-9f89-46d119d86654/devices/GW0100018358', 
            u'device_type': u'garagedooropener', 
            u'created_date': u'2015-10-22T18:14:44.95', 
            u'serial_number': u'CG0810207427', 
            u'device_platform': u'myq'
        }, 
        {
            u'name': u'Home', 
            u'device_family': u'gateway', 
            u'state': {
                u'updated_date': u'2019-12-11T11:30:49.8679742Z', 
                u'physical_devices': [], 
                u'learn_mode': False, 
                u'homekit_enabled': False, 
                u'online': True, 
                u'homekit_capable': False, 
                u'last_status': u'2019-12-11T11:30:49.8523524Z', 
                u'learn': u'http://api.myqdevice.com/api/v5/accounts/b9c7e13f-3499-4c75-9f89-46d119d86654/devices/GW0100018358/learn', 
                u'firmware_version': u'4.2', 
                u'pending_bootload_abandoned': False
            }, 
            u'href': u'http://api.myqdevice.com/api/v5/accounts/b9c7e13f-3499-4c75-9f89-46d119d86654/devices/GW0100018358', 
            u'device_type': u'ethernetgateway', 
            u'created_date': u'2015-10-22T17:42:45.007', 
            u'serial_number': u'GW0100018358', 
            u'device_platform': u'myq'
        }
    ], 
    u'href': u'http://api.myqdevice.com/api/v5/accounts/b9c7e13f-3499-4c75-9f89-46d119d86654/devices'
}

@FlyingDiver FlyingDiver self-assigned this Jan 26, 2020
@FlyingDiver
Copy link
Owner Author

Unable to replicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant