Git Product home page Git Product logo

homebridge-myq's Introduction

homebridge-myq: Native HomeKit support for myQ garage door openers and other devices

Homebridge myQ

Downloads Version myQ@Homebridge Discord verified-by-homebridge

myQ garage door and other myQ-enabled device support for Homebridge.

homebridge-myq is a Homebridge plugin that makes myQ-enabled devices available to Apple's HomeKit smart home platform. myQ-enabled devices include many smart garage door openers made primarily by Liftmaster, Chamberlain, and Craftsman, but includes other brands as well. You can determine if your garage door or other device is myQ-enabled by checking the myQ compatibility check tool on the myQ website.

There are two ways to control a myQ-compatible garage door opener through HomeKit:

  1. Liftmaster and Chamberlain make a hardware HomeKit bridge also called Home Bridge (not to be confused with the open source Homebridge project). Unfortunately, some of us have encountered significant issues with the hardware bridge in a real world setting, where it either stops working or hangs for extended periods of time. That said, other users have encountered no issues and this hardware solution works well.

  2. A plugin for Homebridge like this one that emulates the capabilities of a myQ HomeKit bridge device.

Either solution will provide you with robust HomeKit integration, and you'll soon be automating your myQ smart garage with the richness of Apple's HomeKit ecosystem!

Why use this plugin for myQ support in HomeKit?

In a nutshell, the aim of this plugin for things to just work with minimal required configuration by users. The goal is to provide as close to a streamlined experience as you would expect from a first-party or native HomeKit solution. For the adventurous, those additional granular options are, of course, available to support more esoteric use cases or other unique needs.

What does just work mean in practice? It means that this plugin will discover all your myQ devices and poll at regular, reasonable intervals for changes in state of a garage door opener, lamp, or other myQ devices and inform HomeKit of those changes. By default. Without additional configuration beyond the login information required for myQ services.

homebridge-myq has been around a long time and is trusted by thousands of users. It's the first myQ Homebridge plugin to provide comprehensive support for various myQ features such as obstruction detection, and the first to provide support for multiple myQ device types. As more of the API can be decoded, my aim is to support as many device types as possible. I rely on this plugin every day and actively maintain and support it.

Features

  • Easy configuration - all you need is your myQ username and password to get started. The defaults work for the vast majority of users. When you want more, there are advanced options you can play with, if you choose.

  • Automatic detection and configuration of all lamps, garage door and gate openers. By default - all of your supported myQ devices are made available in HomeKit.

  • Obstruction detection on supported myQ garage door and gate openers. When a garage door or gate is obstructed, and the myQ API provides that information, you'll see an alert raised in the Home app.

  • Battery status detection on supported myQ door position sensor devices. If you have a myQ supported door position sensor, you'll see an alert raised in the Home app to inform you when the battery is running low.

  • The ability to selectively hide and show specific myQ devices. For those who only want to show particular devices in HomeKit, or particular homes, a flexible and intuitive way to configure device availability at a granular level is available.

  • Full MQTT support. For those who use MQTT, this plugin provides full MQTT support with a rich set of options. Read the MQTT documentation for more details.

How you can contribute and make this plugin even better

The myQ API is undocumented and implementing a plugin like this one is the result of many hours of reverse engineering, trial and error, and community support. This work stands on the shoulders of other myQ API projects out there and this project attempts to contribute back to that community base of knowledge to further improve myQ support for everyone.

I would love to support more types of myQ devices. Currently homebridge-myq supports the following device types:

  • Garage door and gate openers
  • Lamps and myQ switches

Additional device types will be added as time allows. It's unlikely I will add support for myQ locks due to their deprecated protocol support. myQ cameras may be added at some point, but there are additional non-technical considerations related to the paid myQ product that I want to be mindful of.

Documentation

  • Getting Started

  • Advanced Topics

    • Feature Options: granular options to allow you to show or hide specific garage door openers and more.
    • MQTT: how to configure MQTT support.
    • Advanced Configuration: complete list of configuration options available in this plugin.
    • Changelog: changes and release history of this plugin, starting with v2.0.

Installation

If you are new to Homebridge, please first read the Homebridge documentation and installation instructions before proceeding.

If you have installed the Homebridge Config UI, you can intall this plugin by going to the Plugins tab and searching for homebridge-myq and installing it.

Things To Be Aware Of

  • The myQ API has largely stabilized in recent years, particularly with the advent of the v6 version of the API. However, the myQ cloud can (and does) have occasional reliability challenges that can manifest through connectivity issues that you will see in the Homebridge logs related to this plugin. These are not bugs in homebridge-myq and there's not much we can do it aside from attempt to gracefully handle the errors when they occur. The myQ cloud is quite reliable the large majority (~93-95% by my estimate) of the time. Please do not open bug reports related to API issues - they'll be closed summarily unless it's a new API-specific issue that's emerged as a result of changes to the undocumented myQ API. These issues are largely harmless and resolve themselves on their own, usually in minutes, and occasionally in hours or days.

  • As a result of the above you will see errors similar to this on an occasional basis in the Homebridge logs:

    myQ API: Unable to update device status from the myQ API. Acquiring a new access token.
    

    These messages can be safely ignored. myQ API errors will inevtiably happen. The myQ cloud infrastructure from Liftmaster / Chamberlain is not completely reliable and occasionally errors out due to infrastructure maintenance, network issues, or other infrastructure hiccups that occur on the myQ end of things. This plugin has no control over this. The logging is informative and not a cause for significant concern unless it is constant and ongoing for multiple days, which would be indicative of the larger API issues referenced above. When one of these errors is detected, we log back into the myQ infrastructure, obtain new API security credentials, and attempt refresh our status in the next scheduled update, which by is roughly every 12 seconds by default.

  • Obstruction detection in myQ is more nuanced than one might think at first glance. When myQ detects an obstruction, that obstruction is only visible in the API for a very small amount of time, typically no more than a few seconds. This presents a user experience problem - if you remain completely faithful to the myQ API and only show the user the obstruction for the very short amount of time that it actually occurs, the user might never notice it because the alert is not visible for more than a few seconds. Instead, the design decision I've chosen to make is to ensure that any detected obstruction is alerted in HomeKit for 30 seconds from the last time myQ detected that obstruction. This ensures that the user has a reasonable chance of noticing there was an obstruction at some point in the very recent past, without having to have the user stare at the Home app constantly to happen to catch an ephemeral state.

Plugin Configuration

If you choose to configure this plugin directly instead of using the Homebridge Configuration web UI, you'll need to add the platform to your config.json in your home directory inside .homebridge.

"platforms": [{
    "platform": "myQ",
    "email": "[email protected]",
    "password": "password"
}]

For most people, I recommend using Homebridge Configuration web UI to configure this plugin rather than doing so directly. It's easier to use for most users, especially newer users, and less prone to typos, leading to other problems.

Plugin Development Dashboard

This is mostly of interest to the true developer nerds amongst us.

License Build Status Dependencies GitHub commits since latest release (by SemVer)

homebridge-myq's People

Contributors

adrum avatar barslev avatar brbeaird avatar byronavory avatar dependabot[bot] avatar dmblakeley avatar donavanbecker avatar dxdc avatar gschivley avatar hjdhjd avatar jarz avatar luisiam avatar patricegautier avatar randy3k avatar sailingsteve avatar sandeen avatar shamoon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

homebridge-myq's Issues

RFE: Door sensor battery status

I see that there is a battery status in the MYQ API:

      {
         "MyQDeviceTypeAttributeId": 132,
         "Value": "1",
         "UpdatedTime": "1590947380597",
         "IsDeviceProperty": false,
         "AttributeDisplayName": "dpsbatterystate",
         "IsPersistent": false,
         "IsTimeSeries": false,
         "IsGlobal": false,
         "UpdatedDate": "2020-05-31T17:49:40.5966181Z"
       },

Does the Homekit accessory support low battery status, and if so can this be added to the plugin?
I tried just hacking in a value:

// Method to update door state in HomeKit
MyQ2Platform.prototype.updateDoorStates = function (accessory) {
  accessory.getService(Service.GarageDoorOpener)
    .setCharacteristic(Characteristic.CurrentDoorState, accessory.context.currentState)
    .setCharacteristic(Characteristic.StatusLowBattery, 1);

and battery status is then shown, but I got:

HAP Warning: Characteristic 00000079-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 00000041-0000-1000-8000-0026BB765291. Adding anyway.

so maybe this isn't supported in HomeKit but I'm not too familiar; not sure if this is a homebridge limitation, a homekit limitation, or ...??? Thanks!

Stopped working

this randomly stopped working a month ago. No logs or errors... I used postman to duplicate the request its making, everything seems fine, except that its not working anymore. lol

So I switched to homebridge-chamberlain and that works flawlessly

Closing and Opening States Aren't Updated Consistently.

Garage Door accessory state accuracy in home app is unreliable. Current state is:

  • Toggle door closed: “Closing...”, stays hung up until force close. Sometimes, force close does not work, and a tap on accessory is only thing to clear it to correct state.
  • Toggle door open: Immediately jumps to “Open”, with no “Opening...” state.

Config value overrides for OpenDuration and CloseDuration do not alter this behavior.

This has an impact on automation functionality due to incorrect state being passed. This issue is similar but not entirely related to #53.

Need API v5

MyQ updated their api request and api v4 is no longer working.

Auto Close Garage Door

Hi
Currently, using the plugin it works great, just wondering if the Auto close function works.

I would like to close the garage door after 20sec. Can this be done on the json config?

myQ API error while logging in: 404 Not Found

No garage door is showing up.

I'm getting this in the homebridge logs.
[7/4/2020, 2:06:48 AM] [myQ] Successfully connected to the myQ API.
[7/4/2020, 2:06:48 AM] [myQ] myQ API error while logging in: 404 Not Found
[7/4/2020, 2:07:03 AM] [myQ] myQ API error while logging in: 404 Not Found

This is the config i am using:
{
"platform": "myQ",
"email": "[email protected]",
"password": "XXXXXX",
"verbose": true
}

Error getting MyQ devices: undefined

Was working yesterday.

[7/1/2020, 13:33:20] [MyQ2] Error getting MyQ devices: undefined
[7/1/2020, 13:33:36] [MyQ2] Error getting MyQ devices: undefined
[7/1/2020, 13:33:44] [Config] Starting terminal session

Plugin failing starting 2019-10-18

[10/18/2019, 2:34:32 PM] [MyQ2] Error polling MyQ servers: TypeError: Cannot read property 'length' of undefined                                              
[10/18/2019, 2:34:47 PM] [MyQ2] Error polling MyQ servers: TypeError: Cannot read property 'length' of undefined       

[7/3/2020, 19:04:40] Error: The requested platform 'MyQ2' was not registered by any plugin.

After the v2 update, I just keep getting this in my logs, and homebridge will not start.

[7/3/2020, 19:04:40] Error loading platform requested in your config.json at position 5
[7/3/2020, 19:04:40] Error: The requested platform 'MyQ2' was not registered by any plugin.
    at PluginManager.getPluginForPlatform (/usr/local/lib/node_modules/homebridge/src/pluginManager.ts:224:15)
    at /usr/local/lib/node_modules/homebridge/src/server.ts:387:37
    at Array.forEach (<anonymous>)
    at Server.loadPlatforms (/usr/local/lib/node_modules/homebridge/src/server.ts:374:27)
    at Server.start (/usr/local/lib/node_modules/homebridge/src/server.ts:153:29)
    at cli (/usr/local/lib/node_modules/homebridge/src/cli.ts:80:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (internal/modules/cjs/loader.js:1138:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
    at Module.load (internal/modules/cjs/loader.js:986:32)
    at Function.Module._load (internal/modules/cjs/loader.js:879:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47

Constant Polling of myqexternal.myqdevice.com

I am running homebridge on a Raspberry Pi that happens to have Pi-Hole on it. After less than 24 hours of installing the plugin, I noticed something amiss with the frequency of how often it's hammering the myqexternal.myqdevice.com host. I believe there is a bug in the polling reset logic somewhere because the plugin works but seems to be constantly updating the state or something to the external service.

Notice the screenshots show the disparity between the next top host requests. It's almost DDoSing the host with requests sometimes every second. Nearly 10,000 requests in a ~18 hour period isn't normal.

I've had to be a good citizen and uninstall this for the time being because I don't want to knowingly beat the Chamberlain servers. To reiterate, the plugin otherwise works fine and sends iOS alerts when the garage door is opened or closed. This isn't some edge case where the credentials are incorrect.

Screenshots

Screen Shot 2020-02-16 at 7 19 49 AM

Screen Shot 2020-02-16 at 7 20 04 AM

Screen Shot 2020-02-16 at 7 20 40 AM

Issues with default Polling values

My logs are getting flooded with updates every ~5 minutes (see below). I'm assuming this is due to the longPoll default being 300 seconds, so is there any disadvantage to setting this to a much higher (daily) value, or disabling it completely by setting polling to false?

[7/28/2019, 12:08:43 PM] [MyQ] Adding Device: "Garage 1" - Device ID: XXXXXXXXXX (Gateway: "My Home" - Gateway ID: XXXXXXXX)
[7/28/2019, 12:08:43 PM] [MyQ] Adding Device: "Garage 2" - Device ID: XXXXXXXXXX (Gateway: "My Home" - Gateway ID: XXXXXXXX)
[7/28/2019, 12:13:47 PM] [MyQ] Adding Device: "Garage 1" - Device ID: XXXXXXXXXX (Gateway: "My Home" - Gateway ID: XXXXXXXX)
[7/28/2019, 12:13:47 PM] [MyQ] Adding Device: "Garage 2" - Device ID: XXXXXXXXXX (Gateway: "My Home" - Gateway ID: XXXXXXXX)
[7/28/2019, 12:18:47 PM] [MyQ] Adding Device: "Garage 1" - Device ID: XXXXXXXXXX (Gateway: "My Home" - Gateway ID: XXXXXXXX)
[7/28/2019, 12:18:47 PM] [MyQ] Adding Device: "Garage 2" - Device ID: XXXXXXXXXX (Gateway: "My Home" - Gateway ID: XXXXXXXX)
[7/28/2019, 12:23:51 PM] [MyQ] Adding Device: "Garage 1" - Device ID: XXXXXXXXXX (Gateway: "My Home" - Gateway ID: XXXXXXXX)
[7/28/2019, 12:23:51 PM] [MyQ] Adding Device: "Garage 2" - Device ID: XXXXXXXXXX (Gateway: "My Home" - Gateway ID: XXXXXXXX)
[7/28/2019, 12:28:55 PM] [MyQ] Adding Device: "Garage 1" - Device ID: XXXXXXXXXX (Gateway: "My Home" - Gateway ID: XXXXXXXX)
[7/28/2019, 12:28:55 PM] [MyQ] Adding Device: "Garage 2" - Device ID: XXXXXXXXXX (Gateway: "My Home" - Gateway ID: XXXXXXXX)
[7/28/2019, 12:33:59 PM] [MyQ] Adding Device: "Garage 1" - Device ID: XXXXXXXXXX (Gateway: "My Home" - Gateway ID: XXXXXXXX)
[7/28/2019, 12:33:59 PM] [MyQ] Adding Device: "Garage 2" - Device ID: XXXXXXXXXX (Gateway: "My Home" - Gateway ID: XXXXXXXX)
[7/28/2019, 12:38:59 PM] [MyQ] Adding Device: "Garage 1" - Device ID: XXXXXXXXXX (Gateway: "My Home" - Gateway ID: XXXXXXXX)
[7/28/2019, 12:38:59 PM] [MyQ] Adding Device: "Garage 2" - Device ID: XXXXXXXXXX (Gateway: "My Home" - Gateway ID: XXXXXXXX)

The requested platform "myQ" was not registered by any plugin.

I went through previous issues and i could not solve what is wrong with my config. I uninstalled and reinstalled multiple times, made sure the config.json is clean and no remnants of old configs are there and restarted hb multiple times as well. Followed the formatting to the letter and i still see this error in logs. This is what is in my config:

{
"platform": "myQ",
"email": “**”,
"password": “
”,
"plugin_map": {
"plugin_name": "homebridge-myq2"
}
}

Sends out notification on HB Restart

When HB restarts, even if the door state hasn't changed, it sends out a notification. Not sure if this is by design, but certainly a change from previous plugin.

Not urgent, just wanted to ask and see what you thought about it.

Not registered plugin?

Since update to 2.0 I’m getting a crash, see below. Should I uninstall/ reinstall? Takes out homebridge too; Thanks for the help
�[37m[7/4/2020, 2:19:29 AM] �[39m�[31mError: The requested platform 'MyQ2' was not registered by any plugin.�[39m
�[31m at PluginManager.getPluginForPlatform (/usr/local/lib/node_modules/homebridge/src/pluginManager.ts:224:15)�[39m
�[31m at /usr/local/lib/node_modules/homebridge/src/server.ts:387:37�[39m
�[31m at Array.forEach ()�[39m
�[31m at Server.loadPlatforms (/usr/local/lib/node_modules/homebridge/src/server.ts:374:27)�[39m
�[31m at Server.start (/usr/local/lib/node_modules/homebridge/src/server.ts:153:29)�[39m
�[31m at cli (/usr/local/lib/node_modules/homebridge/src/cli.ts:80:10)�[39m
�[31m at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)�[39m
�[31m at Module._compile (internal/modules/cjs/loader.js:955:30)�[39m
�[31m at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)�[39m
�[31m at Module.load (internal/modules/cjs/loader.js:811:32)�[39m
�[37m[7/4/2020, 2:19:29 AM] �[39mGot SIGTERM, shutting down Homebridge...
�[37m[7/4/2020, 2:19:37 AM] �[39mLoaded config.json with 1 accessories and 3 platforms.

Closing door while it is opening causes unexpected behavior

This is a legacy issue from liftmaster2, thanks for reviving this project @hjdhjd!

Essentially, if you do the following:

  • Click 'Open' to open door on homekit
  • While door is opening, click 'Close'

It causes strange behavior. The door ends up thinking its closed (when it's open) and I'm not sure if an additional API call is sent. I'm not sure the best way to deal with this, but at the very least, the plugin knows when it is opening or closing and maybe could prevent API calls in this state and/or re-update the plugin's opening/closing state.

At least, there could be a timeout before allowing a user to send another request and the door state could remain in "opening" or "closing" mode until then.

Garage door shows up; gate does not

I have both a garage door opener and a gate opener. Both the garage door and gate show up in the logs but only the garage door is showing up in the Home app. For both openers, the logs say "garagedoor discovered". Any hints on how to get the gate opener working again? Was working great prior to the July 1st changes.

Still not up and running

So uninstalled plugin. Rebooted everything to be careful. Reinstalled.

Now I get:

7/4/2020, 3:46:47 PM Bridge is running on port 51826.7/4/2020, 3:51:45 PM Got SIGINT, shutting down Bridge...7/4/2020, 3:51:49 PM Loaded plugin "homebridge-myq2".7/4/2020, 3:51:49 PM The requested platform "myQ" was not registered by any plugin.7/4/2020, 3:51:49 PM Your config.json is requesting the platform "myQ" which has not been published by any installed plugins.

Went to advanced configuration and changed myQ to myQ2, I get this:

7/4/2020, 3:51:49 PM Bridge is running on port 51826.7/4/2020, 3:54:53 PM Got SIGINT, shutting down Bridge...7/4/2020, 3:54:57 PM Loaded plugin "homebridge-myq2".7/4/2020, 3:54:57 PM The requested platform "myQ2" was not registered by any plugin.7/4/2020, 3:54:57 PM Your config.json is requesting the platform "myQ2" which has not been published by any installed plugins.

Hmmm...

Still not seeing any accessories in HOOBS.

Status reflected in Home App on macOS or iOS

Wonderful plugin!

My only confusion is that I have the toggle switch to "Include in Status" but the summary on both the macOS and iOS versions of Home do not list garage door open/close in the status summary.
Screen Shot 2019-12-08 at 10 14 39 AM
Screen Shot 2019-12-08 at 10 15 34 AM
Screen Shot 2019-12-08 at 10 15 49 AM
In addition and probably relatedly, if I click on details under the status items, the new window does not list the garage door as one of the Status Details items.
Screen Shot 2019-12-08 at 10 14 52 AM

v2.0.0 npm release doesnt contain Config UI X schema

config.schema.json is missing, probably an error in the script youre using to generate npm packages. Also I dont see releases here on GH.

tar -tvf homebridge-myq2-2.0.0.tgz 
-rw-r--r--  0 0      0       14204 Oct 26  1985 package/dist/index.js
-rw-r--r--  0 0      0       12503 Oct 26  1985 package/dist/myq.js
-rw-r--r--  0 0      0        1232 Oct 26  1985 package/package.json
-rw-r--r--  0 0      0        9704 Oct 26  1985 package/dist/index.js.map
-rw-r--r--  0 0      0        8060 Oct 26  1985 package/dist/myq.js.map
-rw-r--r--  0 0      0        7292 Oct 26  1985 package/README.md

Error when running homebridge - UnhandledPromiseRejectionWarning: TypeError

I recently updated to the newest version of homebridge as well as the newest version of homebridge-myq2, and am now getting this error when running homebridge. I'm not quite sure how to debug this and wanted to see if you could help figure it out.

(node:104498) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'getCharacteristic' of undefined
    at /usr/lib/node_modules/homebridge-myq2/dist/index.js:238:21
    at Array.forEach (<anonymous>)
    at myQPlatform.myQUpdateDeviceList (/usr/lib/node_modules/homebridge-myq2/src/index.ts:264:22)
    at processTicksAndRejections (internal/process/task_queues.js:94:5)
    at myQPlatform.updateAccessories (/usr/lib/node_modules/homebridge-myq2/src/index.ts:423:5)
(node:104498) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)

Here's a sample of my config json:

{
        "bridge": {
                "name": "Homebridge",
                "username": "redacted",
                "port": 51826,
                "pin": "123-45-678"
        },
        "platforms": [
                {
                        "platform": "myQ",
                        "email": "redacted",
                        "password": "redacted"
                }
        ]
}

Thanks!

Door not closing

Hi there.
Having an issue with the door not closing. It’s perhaps a polling issue that I need to adjust - I'll accept the blame entirely! The door opens under command of either HomeKit or within Homebridge, but doesn’t close. I can only seem to make it close manually. Can you help? I’ve attached my logs from today.
logs.txt

Have tried the other Chamberlain apps but keep coming back to this one. Keep up the good work!

Error every 30minutes

It doesn't seem to be causing an issue, but every 30minutes I get this in my log file:

[MyQ2] Error polling MyQ servers: FetchError: request to https://myqexternal.myqdevice.com/api/v4/UserDeviceDetails/Get failed, reason: getaddrinfo ENOTFOUND myqexternal.myqdevice.com

It appears that my door and the home app work just fine, it's just something I noticed and am not sure if I really should worry with it.

Thanks,

ECONNRESET - Error polling MyQ servers: FetchError:

Error polling MyQ servers: FetchError: request to https://myqexternal.myqdevice.com/api/v4/UserDeviceDetails/Get failed, reason: read ECONNRESET

Hi Byron,
I saw this error this morning at 9:14AM, which made the plugin miss door status changes at 10:05AM. Till I triggered it manually by opening Home app, plugin was missing all status changes(as per the logs). This makes me think that the error made the plugin to stop and not retry.

I understand that these errors can happen as we don't have much control over MyQ servers, but if we can build a retry logic after these errors, it might help.

What do you think?

using gateways

Hi there -

Trying to use the gateways option to filter out some of the openers present in the online account, my home bridge config looks like:

   {
        "platform": "MyQ2",
        "email": "xx",
        "password": "yy",
	   "gateways": [ 9924957, 1807684652 ]
    }

but all I am able to get is something like:

[1/6/2020, 3:07:32 PM] [MyQ2] Error: Couldn't find a MyQ door device.

When I remove the gateways option, all the openers are correctly added, but I just want to skip some of them.

I tried using their names as well.. Any idea?

No Accessories showing up in v2.0.0

Used following config:

"platforms": [{
"platform": "myQ",
"email": "[email protected]",
"password": "password"
}]

But no myQ accessories are being discovered or shown in home app.

Reset homebridge persist and accessories, still no go.

EDIT: started HB in insecure mode to see if any accessories show in the web interface, and no myQ accessories show up there either.

issues with Siri Suggestions of MyQ garage doors in CarPlay (wrong or outdated doors)

Explain the issue occurring:
Hi, I'm a Noob at HOOBS so I understand very little of what I am doing, that said:
I switched over to this Plugin because I was having configuration issues with some of the others.
This issue is not unique to this MyQPlugin but maybe you can explain to me how to fix the problem.

I have two Garage doors hooked up to HomeKit via this plugin. In CarPlay when I am close to my home a garage door shows up on the dashboard (Siri Suggestion) to allow me to open the door.
While for a while it was showing me the correct door (mine), now it shows me my wife's which I have no use as I want to get into my garage. I have no idea how to change this.

What's worse is that since I uninstalled the other MyQ plugin that I was testing and installed this one I re-added the garage doors and changed their names both in the Plug-In and Home Kit. However, the Siri Suggestion garage door is an older name, not even part of my Home Kit setup anymore. So not only does the wrong Garage door show up as a Siri suggestion but it is the wrong version of that door so it reports as "unresponsive."

Expected Result
(Give a description of the expected behavior.)
I would love to be able to specify which garage door Siri suggestions displays on my CarPlay dashboard when I am close to my home. I have no idea if there is an Apple setting for this or a HOOBS plugin setting or an iPhone setting or a Carplay, however, since this is the most likely use case for MyQ in Homekit it would seem that it would be an issue that happens to many people with multiple garage doors.

Info
iOS Version: 13.6
Plugin Version: 1.2.22 published 5/20/2020
HomeBridge Version: HOOBS 3.2.6
Node/Npm Version:

Gateways and Openers constraints don't work through Config UI X

The current descriptors for Config UI are forcing the Arrays to come in quoted. Which isn't ready by the plugin appropriately. I'm hoping you an change the descriptor in Config UI X to be able to have the output in the config look like this instead which is much cleaner:

      "gateways": [
               6702872
           ],
           "openers": [
               9910182,
               9910311
           ],

Today the plugin puts it in this format which doesn't actually constrain anything as it is not an array, it's a string.

      "gateways": "[6702872]",
      "openers": "[9910182,9910311]",

Add addition button press to open

Find it too easy to mistakenly open the garage by clicking the button via a single tap. Possible to make it a double tap to open the door? Is this possible or a limitation of homekit?

FetchError

Getting:

Login error: FetchError: invalid json response body at https://myqexternal.myqdevice.com/api/v4/User/Validate reason: Unexpected number in JSON at position 115

as of 14:21 EST this afternoon. I'm not certain this is a server outage, or issue with v4 API?

Plugin logging often even with verbose false

  • homebridge 1.1.0
  • homebridge-myq2 v1.2.22
  • verbose = false (default)
homebridge.log
[6/10/2020, 4:03:02 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:03:05 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:10:23 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:10:27 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:12:15 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:12:18 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:15:24 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:15:27 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:16:55 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:16:58 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:22:00 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:22:03 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:24:24 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:24:26 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:25:21 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:25:24 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:27:45 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:27:48 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:28:45 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:28:48 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:30:18 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:30:21 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:34:24 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:34:27 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:36:22 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:36:24 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:42:45 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:42:48 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:46:59 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:47:02 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:48:33 PM] [MyQ2] Garage Door Opener is open.
[6/10/2020, 4:49:21 PM] [MyQ2] Garage Door Opener is open.
[6/10/2020, 4:49:24 PM] [MyQ2] Garage Door Opener is open.
[6/10/2020, 4:49:53 PM] [MyQ2] Garage Door Opener is open.
[6/10/2020, 4:49:57 PM] [MyQ2] Garage Door Opener is open.
[6/10/2020, 4:50:10 PM] [MyQ2] Garage Door Opener is set to closed.
[6/10/2020, 4:50:40 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:51:21 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:51:24 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:55:29 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:55:32 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:58:20 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:58:23 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:59:53 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 4:59:57 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:00:55 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:00:58 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:01:27 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:01:30 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:06:00 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:06:03 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:07:58 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:08:01 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:09:53 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:09:56 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:10:26 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:10:29 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:12:53 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:12:56 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:14:47 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:14:50 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:19:00 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:19:03 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:19:59 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:20:02 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:21:00 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:21:03 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:22:30 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:22:33 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:23:27 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:23:30 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:24:54 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:24:57 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:25:26 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:25:29 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:32:47 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:32:50 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:33:50 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:33:53 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:34:51 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:34:54 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:36:18 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:36:21 PM] [MyQ2] Garage Door Opener is closed.
[6/10/2020, 5:39:38 PM] [MyQ2] Garage Door Opener is open.
[6/10/2020, 5:40:29 PM] [MyQ2] Garage Door Opener is open.
[6/10/2020, 5:40:32 PM] [MyQ2] Garage Door Opener is open.
[6/10/2020, 5:41:13 PM] [MyQ2] Garage Door Opener is closed.

Error v2.0.11

72E46E47-A483-43AF-B2A9-CFAA675A2D7E

Not work for me, I uninstall, reinstall, work few moment but after 1 minute show error

Door state not updating

Hello, I have recently installed this plugin and the door state is not updating and remains stuck on either "Opening" or "Closing" and takes time to get the final state of Opened / Closed.

I'm not sure if I need to modify the polling states, etc.

Invalid Username or Password Given - Error

First: thanks for putting together such a great plugin. I updated to the new 2.0 version of the plugin, and it worked fine for a couple of days (I changed the config settings as indicated in the plugin page). However, after installing version 2.1.0, I'm getting the following errors:

[7/6/2020, 3:18:55 PM] [myQ] Invalid username or password given. Check your login and password.
[7/6/2020, 3:18:55 PM] [myQ] myQ API error: unable to refresh. Will retry later.

I checked the username and password and it was the same I had used before. I actually opened the Liftmaster MyQ App, changed the password and updated the config password with the new one and I get the same error.

Any thoughts?.

Notification is sometimes backwards?

Apologies for not having reliable steps to reproduce. I don't notice this all the time, and I'm not entirely sure under which conditions it occurs.

The problem is that I just had the door close through a time-based automation, but the HomeKit notification showed "Garage Door was opened." Checking the Home app the door shows as closed. Checking the actual door, it is closed.

Perhaps this is an issue when triggered to close by an automation? Maybe specifically with time based automations?

Same UUID as another bridged accessory

Plugin works great until a reboot. When launching Homebridge after reboot, the error following is displayed:

[MyQ2] Error polling MyQ servers: Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory:

and Homebridge fails to start

I updated to the new version today and my garage doors are not showing up at all.

They were there in the old version and gone after installing the current one in NPM (2.1.0 according to the home bridge web based UI). I removed all mention of the old plugin in the config manually, so no more error on startup. in fact the API is connecting, see log below, but no devices.

[7/6/2020, 15:58:21] [MyQ2] Successfully connected to the myQ API.

Any thoughts? Is there a cache I have to clear?

M

Update no release notes

Web ui
iPod touch
Safari
On selecting update it starts immediately without showing the release notes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.