[ST Edge] SmartThings MyQ Edge (Obsolete)

make your life easier and install Portainer :slight_smile:

then create a stack… much easier

but I see you are missing -d

docker run -d --name=ā€˜smartthings-myq-edge’ --network=host ā€˜brbeaird/smartthings-myq-edge:latest’`

I left out the -d because when I ran it detached it wasn’t working and I had no insight into what happened. Without the -d it ran in the foreground so I could see the error (Maybe there’s a better way to do that…)

Quick update: I realized I’m not on Bullseye, currently updating. Will see if that helps.

1 Like

I had much more success and an easier time after I updated my OLD Pi to a fresh SD card made using all the latest software.

OK, I was able to get this to work inside Docker, thanks for he pointers. NOTE: I’m now Docker on Mac. BTW - thanks for the great work with SmartThings Edge Drivers, much appreciated!

Fresh install - everything works. Not sure if it was because I wasn’t on bullseye originally, or something else…but works is works.

1 Like

Hi all, I am confused… Further up this thread, there is a reference to a config.json file that should be used for Windows and a link, that link no longer works. I have the exe starting on boot by simply putting a shortcut to it in the startup folder and rules in windows firewall to allow the exe in and out. The issue is, I need to set the port but cannot it seems? Thanks @brbeaird

@Chase84 - Im running the windows app through task scheduler. I use a custom bat file to set the port and check if the exe is running before it attempts to start the exe. IIRC its running a few times per day but only does something if it doesnt find the exe file brbeaird created running.

Would you be interested in the files im using? Happy to send info your way if you would find it useful!

1 Like

While I’m using docker on a mac, and at one point mac server not on docker, I confirmed I didn’t need the config.json and just had to configure it in the smartthings controller setup.

Hey, I’d be very interested in this! I am not sure though how you can specify/pass the port through to the exe file with a .bat file. What sorcery is this? LOL

@Chase84

Here are the contents of the bat file I have task scheduler run. Task scheduler is set to run with 2 triggers, system startup and every day at 3am repeating every 6 hours.

::Run MyQBridge if not running
CD C:\SmartThings\MyQBridge
SET MYQ_SERVER_PORT=8125
tasklist /nh /fi ā€œimagename eq myQBridgeServer-win.exeā€ | find /i ā€œmyQBridgeServer-win.exeā€ > nul ||( start myQBridgeServer-win.exe )

What I’m doing with that bat file is setting the environment variable for port number to be the port I want. The next lines checks to see if the myQBridgeServer-win.exe process can be found in tasklist, if its not found it starts the exe. You’ll want to update that name if you renamed it.

I’m sure there is a more elegant way to do this, but this has worked well for me!

1 Like

Problem is when the always on box reboots, which I have it do one a week, the port changes. So I need to specify it so it remains static on the hosting box.

The latest version does not use a config file. Username and password are set in the SmartThings mobile app in the MyQ-Controller device.

Thank you!!!
I used the Docker on my Synology NAS to get it set up. Had trouble at first as it didn’t find the server with my credentials and the default settings. Until I added the IP address and the local port and it connected right away. So far the initial test worked now on to setting up some automations.

1 Like

I’m going to jump back into the MyQ integration. I want to buy a cheap Rasberry PI 3 A+ or B+. Would either of those work? Would it be that hard to setup?

The only other device that perhaps could run this would be my Nvidia Shield Pro — could that be an option?

Any help would be appreciated!

1 Like

I have a RPI 1 (with DietPi installed for other apps) and have it installed on it without any issues. I followed the instructions below to install Docker on it and then followed the GitHub instructions in the 1st post of this thread.

Install Docker on Raspberry Pi: A Complete Guide | Simplilearn

1 Like

Hey I would be really interested in what you did to get this running in Docker on your Synology NAS. I got it running, I set it up to use the host port (not as a bridge). But I think I must have missed some other networking config since my SmartThing app is not finding anything…

I think I got the driver setup; I added the channel, then picked the MyQ Connector (I assume that’s the only one I needed?) Was there anything else I needed to do other than that?

Is your nas in same subnet as st hub? Did you enter all the info into myq connector settings in the app including ip# and port of the myq server on the nas?

Oh look at that. They are on different subnets… Let me fix that!

1 Like

And I appologize in advance, but where do I enter the myq connector settings??