[ST Edge] SmartThings MyQ Edge

Success! Thank you, I found the image, downloaded and installing/on general settings dialog box now.

Complete success! Image started in Docker, logged in on mobile app, all 3 garage doors show up and I set them up as locks.

2 Likes

Here is a system.d service script for those that want to run this in linux without Docker. Place the executable with +x rights into /usr/local/bin/ or modify the code as needed based on your location of choice. Also add the user credentials you want to use:

[Unit]
Description=myQ Garage Door Smartthings Service
After=network.target

[Service]
User=CHANGE THIS TO YOUR PREFERENCE
Group=CHANGE THIS TO YOUR PREFERENCE

Type=simple
ExecStart=/usr/local/bin/myQBridgeServer-linux-x64
TimeoutStopSec=20
KillMode=process
Restart=on-failure

[Install]
WantedBy=multi-user.target

Now you can use the command: systemctl start myQ to start and stop the service (assuming you named the service file as myQ.service of course)

[UPDATE: This was a firewall issue. I needed to enable a dual-direction passthrough for the .exe]

I’m getting a message on the ST app: ā€œSearching for bridge serverā€ with a brief message of ā€œError: MyQ Bridge Offline: http://ā€¦ā€ then back to the ā€œSearching forā€¦ā€ message. Back and forth.

On the Win x64 .exe (running on Windows 7), I see…
3/4/2023, 6:09:49 PM | HTTP server listening on port 49927
3/4/2023, 6:09:49 PM | SSDP server up and listening for broadcasts: urn:SmartThi
ngsCommunity:device:MyQController
3/4/2023, 6:09:54 PM | Detected SSDP broadcast. Posting details back to server a
t http://192.168.86.22:37611/ping
3/4/2023, 6:09:54 PM | Detected SSDP broadcast. Posting details back to server a
t http://192.168.86.22:37611/ping
3/4/2023, 6:09:54 PM | Got status 200 from hub.
3/4/2023, 6:09:54 PM | Got status 200 from hub.
3/4/2023, 6:10:09 PM | Detected SSDP broadcast. Posting details back to server a
t http://192.168.86.22:37611/ping
3/4/2023, 6:10:09 PM | Detected SSDP broadcast. Posting details back to server a
t http://192.168.86.22:37611/ping
3/4/2023, 6:10:10 PM | Got status 200 from hub.
3/4/2023, 6:10:10 PM | Got status 200 from hub.
3/4/2023, 6:10:19 PM | Detected SSDP broadcast. Posting details back to server a
t http://192.168.86.22:37611/ping
3/4/2023, 6:10:19 PM | Detected SSDP broadcast. Posting details back to server a
t http://192.168.86.22:37611/ping
3/4/2023, 6:10:19 PM | Got status 200 from hub.
3/4/2023, 6:10:19 PM | Got status 200 from hub.

Any ideas? Thanks!

As I cannot get this bridge to work in my environment, I am super intrigued by using IFTTT and a Virtual Switch instead. The problem is: I have no idea how to go about doing this! I am actually a technical guy, but I feel like a dunce right now.

I’ve installed @TAustin’s virtual switch, and selected ā€œGarage Doorā€ as the type, but I cannot for the life of me understand how that will actually connect to my MyQ opener.

Any tips/insights to share? Thx.

Connect SmartThings to IFTTT
Connect myQ to IFTTT
Two recipes in IFTTT:

  1. if ā€œvirtual doorā€ turns on in ST, open MyQ door.
  2. if ā€œvirtual doorā€ turns off in ST, close MyQ door.

You may need a third and fourth routine to sync this in the other direction as well, so that ST would show correctly if you opened the door with a remote/button/keypad or directly in MyQ, but I’m not sure whether that would create an infinite loop - I’m using the server so I haven’t needed to set it up this way.

Thank you for this. But, FWIW, here’s the rub. For likely safety/security reasons, the MyQ service on IFTTT doesn’t include ā€œopen doorā€ as an available action.

This approach is therefore limited AFAIK to only closing the MyQ door via ST. Sigh…

the usual questions:

  • any windows firewall that could be blocking the port?
  • you entered the data in the ST app in MyQ Connector for login ID/password and server IP#, port?

Yup! It was a firewall issue. I had added a pass-through for one direction, but not other. All works now. Thank you! I’ll update the initial post and remove the h/t to brbeaird as well. I’m sure he’s busy enough with other issues.

Thanks again.

2 Likes

Anyone know how to run the executable on a raspberry pi? I’d like to just run the executable as the docker route does not seem to be an option with my pi.

I’ve downloaded the arm executable (I have an arm processor) but I do not understand how to run it.

if you have docker installed on the pi, simply enter the following in the terminal for your pi:

 docker run -d --name='smartthings-myq-edge' --network=host --restart=always -e 'MYQ_SERVER_PORT'='8090' -p '8090:8090/tcp' -p '1900:1900/udp' 'brbeaird/smartthings-myq-edge:latest'

An alernative method for installing the MyQ Edge server is by installing portainer.io (free edition) on your pi to manage docker. It is a web-based interface that simplifies everything for you from creating containers to viewing logs.

in portainer, you can create a stack to load MyQ Edge.

here is what you put into the stack:

version: "2"
services:
  smartthings-myq-edge:
    image: brbeaird/smartthings-myq-edge:latest
    container_name: smartthings-myq-edge
    ports:
      - 8090:8090/tcp
      - 1900:1900/udp
    restart: always
    network_mode: host
    security_opt:
      - seccomp:unconfined
    volumes:
        - ./smartthings-myq-edge:/smartthings-myq-edge
1 Like

Did you ever get your MyQ Controller up and running? I had exact same problem where ā€œAwaiting Credentialsā€ was hanging. I fixed by reinstalling the Docker over and ensured I was using the most updated docker run code. Running on RPi.

Hello all,
I have a question. When I had created MyQ account, I chose the easy route of using my Google credentials.
Now getting stuck in the MyQ-Controller credential section in Smart Things. Anyone has any suggestions?
Do I need to switch my MyQ account to use regular login method?

Thank You

I bailed on it. I don’t want to depend on the latest Smartthings programming changes to determine whether or not I can use Smartthings to control my garage doors. I’ve decided instead to go with the Zooz Z-Wave Plus S2 MultiRelay switch in a soldered connection with a Chamerlain remote control. I think this gets me away from most of the programming issues with Smartthings. I hope to have it set up in the next few days. Here is a useful website that describes this process (note that the driver installation has changed since this was written): How To Install The Zooz Multi-Relay Device Handler In SmartThings

Yes, OAuth logins like Google are not supported with this.

Ahh I see. Good luck with the Zooz integration. And thanks for the tip. Not sure how old the instructions are, but yes, I noticed the instructions requires adding custom device handlers on the Groovy website- which is no longer available to add. I assume there are new Zooz Edge Drivers to use now? You may want to check into that before you do your soldering.

That’s right. It’s pretty easy.

I created a co-owner account and used that as an alternative.

Thank You

1 Like

Ah yes, I forgot that was an alternative. I really need to add that to the repo instructions.

1 Like

For those of you who don’t want to continuously run a computer, or if you struggled to figure out Brian’s setup, to open and close the Chamberlain doors with Z-wave and and voice commands, there is an alternative using the Zooz MultiRelay. First, I want to say that Brian Beaird is brilliant and does great work. That said, I think this is a pretty good alternative to what Brian has done. The main thing that is lacking is that the MultiRelay doesn’t specify door direction. It only acts as a toggle because it deploys an actual Chamberlain remote control to communicate with the door controller in the garage. Like any other remote control, you also have to make sure you keep a good battery in it.

For some good instructions on how to do this, see: https://www.budshomeautomation.com/post/how-to-install-the-zooz-multi-relay-device-handler-in-smartthings

Bud recommended, and I also used, the Zooz MultiRelay Zen16. His site is set up for the Groovy Device Handlers, which are obsolete. The Zooz website has alternative instructions for setting up the current Edge drivers here: How to Add Your ZEN16 MultiRelay to SmartThings - Zooz Support Center

Once you set up the drivers and get the device connected to Smartthings, you can follow Bud’s instructions.

The hardest part is soldering the wires to the remote circuit board. I managed to do it, but it is some fairly challenging soldering for the novice. Here is what my soldering looked like:

It ain’t purty, but it works. As Bud suggested, I used the soldering gun to cut holes in the plastic remote shell for the egress of the wires from the circuit board to the multirelay.

Once it’s all put together, here’s what it looks like:

Make sure you use the exact 1 amp power supply that is recommended by Bud. Using the wrong power supply can fry the Zooz device. When setting up the relays, tell it to set up individual child devices in Smartthings. On the individual relays, I specified the auto-off to occur after two seconds. That’s equivalent to holding the button on the remote for two seconds. I then set up scenes for both of my garage doors that function as toggles for the doors. Be careful with this because you need to be sure whether your door is going up or down. You can check by looking on the MyQ app, or the old fashioned way, which is to look at your door.

So, Brian’s method is probably superior, but this is a functional alternative that doesn’t require a continuously running computer. It appears to be working well, but we’ll see how it goes.

1 Like