Coder Social home page Coder Social logo

myqcontroller's People

Contributors

aromka avatar natejgreene avatar

Stargazers

 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

myqcontroller's Issues

Getting device list

I have followed the readme on both Mac and raspberry pi, and the console stops on "Getting device list..." every time. I have refreshed/reinstalled/deleted/etc, but I cannot get past this step.

Login error when retrieving devices

No issues getting the SmartApp added, have tried running the node server on both OSX and alpine linux and am having an issue when retrieving devices.

When the request is made to https://myqexternal.myqdevice.com/api/v4/userdevicedetails/get I receive the following response:

{"ReturnCode":"-3333","ErrorMessage":"Login error. Please login again. (-3333)","CorrelationId":"CorrelationId"}

I've tried restarting the server, re-adding the smart app and configuring on my phone and I still get this response.

Failed sending event: Error: connect ECONNREFUSED [your-localIP]:39500

Hello!

Took me a couple of hours to find this out, but I'm suggesting a change within the README.md.

Under: # Raspberry Pi setup
Section: ## Running the server on the background / after startup

You can add a command to your /etc/rc.local

sudo nano /etc/rc.local

and add the following content right before exit 0

exec 2> /tmp/rc.local.log      # send stderr from rc.local to a log file
exec 1>&2                      # send stdout to the same log file
set -x                         # tell sh to display commands before execution

node /home/pi/Apps/myqcontroller/server [your-localIP] &

[your-localIP] Issue with Log example

The [your-localIP] should be [your-STlocalIP].

I kept receiving an error message when the Raspberry Pi IP address [your-localIP] was used.

=== === === MyQ Controller === === ===
[22/07 14:15:30] Retrieved config for server: [your-localIP]:39500
[22/07 14:15:30] Config loaded
[22/07 14:19:02] Handling request for: /ping
[22/07 14:19:02] Getting ping... replying pong
[22/07 14:19:08] Handling request for: /init
[22/07 14:19:08] Received init request
[22/06 14:19:08] Initializing...
[22/06 14:19:08] Getting device list...
[22/07 14:19:09] Sending event to ST: Discovered device "Garage Door" <xxxxxx>
[22/07 14:19:09] Sending event to ST: Discovered device "Exterior Garage Door" <xxxx>
[22/07 14:19:09] Failed sending event: Error: connect ECONNREFUSED [your-localIP]:39500
[22/07 14:19:09] Error getting event request: Error: connect ECONNREFUSED [your-localIP]:39500
[22/07 14:19:09] Failed sending event: Error: connect ECONNREFUSED [your-localIP]:39500
[22/07 14:19:09] Error getting event request: Error: connect ECONNREFUSED [your-localIP]:39500

Changed from [your-localIP] to [your-STlocalIP] Example

After changing the IP address from the Raspberry Pi [your-localIP] to ST [your-STlocalIP], the communication started to function as expected.

=== === === MyQ Controller === === ===
[22/07 14:33:07] Retrieved config for server: [your-STlocalIP]:39500
[22/07 14:33:07] Config loaded
[22/07 14:33:08] Handling request for: /init
[22/07 14:33:08] Received init request
[22/06 14:33:08] Initializing...
[22/06 14:33:08] Getting device list...
[22/07 14:33:08] Sending event to ST: Discovered device "Garage Door" <xxxxx>
[22/07 14:33:08] Sending event to ST: Discovered device "Exterior Garage Door" <xxxxx>
[22/07 14:33:38] Handling request for: /ping
[22/07 14:33:38] Getting ping... replying pong
[22/07 14:33:41] Handling request for: /init
[22/07 14:33:41] Received init request
[22/06 14:33:41] Initializing...
[22/06 14:33:41] Getting device list...
[22/07 14:34:09] Sending event to ST: Device "Exterior Garage Door" <xxx> changed its "data-door" value from "closed" to "open"
[22/07 14:35:10] Sending event to ST: Device "Exterior Garage Door" <xxx> changed its "data-door" value from "open" to "unknown"
[22/07 14:35:12] Sending event to ST: Device "Exterior Garage Door" <xxx> changed its "data-door" value from "unknown" to "closed"
[22/07 14:35:40] Sending event to ST: Device "Exterior Garage Door" <xxx> changed its "data-door" value from "closed" to "unknown"
[22/07 14:36:02] Sending event to ST: Device "Exterior Garage Door" <xxx> changed its "data-door" value from "unknown" to "closed"
[22/07 14:36:31] Sending event to ST: Device "Exterior Garage Door" <xxx> changed its "data-door" value from "closed" to "open"
[22/07 14:37:21] Sending event to ST: Device "Exterior Garage Door" <xxx> changed its "data-door" value from "open" to "unknown"
[22/07 14:37:31] Sending event to ST: Device "Exterior Garage Door" <xxx> changed its "data-door" value from "unknown" to "closed"

I hope this information help others!

Garage doors only open a few inches

Hi, great job on this plug-in. Sometimes, it works perfectly... I can open/close the garage doors with no problem. (I have 3 garage doors with MyQ.) However, other times the garage doors (any/all of them) will only open about 2-3 inches and then stop. It seems that I lose control over the garage door for 30-60 seconds. After that, I can close/open them correctly again. Anything I can look at (logs? debug statements?) to help investigate this?

Device switch in Google Home/Alexa

This is more of a feature request. I love the idea behind this app. I have one request; after everything is published it works great for me however in Google Home (I assume also Alexa) there is no control from there. I think all it needs are buttons put in so Google Home has something it can turn on or off. For some reason the defauly tile doesn't show up in GH. Is there any way I could get you to add something like this so it could be controlled by GH or Alexa etc?

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.