I was able to get the devices loaded into Smartthings. However, when I lock my computer I am unable to access the server and the devices go offline. I am trying to run the docker in detach (background) mode, but I cannot figure out how to do this. I went into the docker container and tried to use the exec setting to do this. When I use “docker run -d --name=‘smartthings-myq-edge’ --network=host 'brbeaird/smartthings-myq-edge:latest’h” it tells me docker:not found.
I tried changing the name and still got the same error. Am I doing this in the right place of the docker? I am very new to this.
Are you running on a Pi or something else? If the container is already running, you should stop it (docker stop smartthings-myq-edge) and then try running the command again. I also see some extra characters at the end of the command you ran.
Confirm you are running this
docker run -d --name=‘smartthings-myq-edge’ --network=host ‘brbeaird/smartthings-myq-edge:latest’
Whenever my MyQ Edge server stops working I run the following sequence of commands to reset/refresh it and it usually fixes things. It’s a big hammer but I don’t need to think about it.
sudo docker rm --force smartthings-myq-edge
sudo docker system prune --all --force
sudo docker run --detach --restart=always --name smartthings-myq-edge --network=host brbeaird/smartthings-myq-edge
I am back up now. I stopped my bridge server for about 10 minutes and then started it back. I also changed the refresh interval up to 60 seconds. This is a setting in the SmartThings app on the MyQ-Controller device.
I was up and down for about 15 minutes this morning, but have been error-free since. My polling interval remains at 10 seconds; it feels like 60 would be too long for certain automations. I have sometimes thought, however, that it would be nice if we modify the polling interval based on various conditions (time, presence, or whatever).
After trying multiple times yesterday and today it appears to be working this afternoon? Maybe 8th time is the charm. No changes made to MyQ account or credentials. I just restarted the server, added the controller in ST, input credentials (unchanged since yesterday), and it now works. Hopefully for a while.
Spoke too soon.
“myQ API error: API call returned error: 429.”
And smartthings says
“Error: bridge server unable to refresh myq devices. Refresh failed.”
That’s a throttling error - not much we can do about those. You can try shutting down your bridge server for an hour or so and also lengthen your refresh interval to something closer to 10-15 seconds.