sgupta999 / mqtt-bridge-smartthings

MQTT Bridge To SmartThings [MBS]
MIT License
27 stars 15 forks source link

EHOSTUNREACH from Docker container on Windows #35

Open robross0606 opened 3 years ago

robross0606 commented 3 years ago

I followed all the instructions as indicated on the README and DOCKER.md files. My container starts up and clearly receives both configuration messages from the MBS SmartApp, as well as from the MQTT server. However, it appears to attempt to change a device in Smartthings and get a bounceback due to EHOSTUNREACH:

2020-11-30 02:10:03 AM info: MQTT --> ST - Topic: [smartthings/Side Door/contact/cmd][closed] [Side Door][contact][closed]
2020-11-30 02:10:05 AM error: Error from SmartThings Hub: Error: connect EHOSTUNREACH 172.18.10.3:39500
2020-11-30 02:10:05 AM error: {
"errno": -113,
"code": "EHOSTUNREACH",
"syscall": "connect",
"address": "172.18.10.3",
"port": 39500
}
2020-11-30 02:10:05 AM error: undefined

This set of messages happens once each time a device status is attempted to set on Smartthings hub (172.18.10.3). I double-checked the firewall rule setup in Windows and even tried disabling the firewall completely. This feels like a routing issue in Docker Desktop and WSL2, but you have instructions for using it this way so I'm not sure what is wrong.

sgupta999 commented 3 years ago

I think I mention somewhere that if u r using docker, docker container had it own virtual Mac and IP so u might need to play with that

Sent from my iPhone

On Nov 29, 2020, at 8:16 PM, robross0606 notifications@github.com wrote:

 I followed all the instructions as indicated on the README and DOCKER.md files. My container starts up and clearly receives both configuration messages from the MBS SmartApp, as well as from the MQTT server. However, it appears to attempt to change a device in Smartthings and get a bounceback due to EHOSTUNREACH:

2020-11-30 02:10:05 AM error: Error from SmartThings Hub: Error: connect EHOSTUNREACH 172.18.10.3:39500 2020-11-30 02:10:05 AM error: { "errno": -113, "code": "EHOSTUNREACH", "syscall": "connect", "address": "172.18.10.3", "port": 39500 } 2020-11-30 02:10:05 AM error: undefined This set of messages happens once for each device status it attempts to set on Smartthings hub (172.18.10.3). I double-checked the firewall rule setup in Windows and even tried disabling the firewall completely. This feels like a routing issue in Docker Desktop and WSL2, but you have instructions for using it this way so I'm not sure what is wrong.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

robross0606 commented 3 years ago

I can't find where you mention that. If you happen to find the URL, I really appreciate it.