aromka / myqcontroller Goto Github PK
View Code? Open in Web Editor NEWMyQ Controller for SmartThings
MyQ Controller for SmartThings
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] &
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
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!
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?
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.
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?
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.