stjohnjohnson / smartthings-mqtt-bridge

Bridge between SmartThings and MQTT
https://hub.docker.com/r/stjohnjohnson/smartthings-mqtt-bridge/
MIT License
368 stars 243 forks source link

mqtt-bridge stopped working, ECONNRESET #145

Closed mschwartz closed 6 years ago

mschwartz commented 6 years ago

This has been working for months for me.

Something happened overnight. When I woke up, mqtt-bridge no longer was working.

I see in docker logs:

info: Incoming message from MQTT: smartthings/Outdoor Lights/switch/set = off
info: Incoming message from MQTT: smartthings/Outdoor Lights/switch/set = off
info: Incoming message from MQTT: smartthings/Outdoor Lights/switch/set = off
info: Incoming message from MQTT: smartthings/Outdoor Lights/switch/set = off
error: Error from SmartThings Hub: Error: socket hang up
error: {
    "code": "ECONNRESET"
}
error:
info: Incoming message from MQTT: smartthings/Outdoor Lights/switch/set = off

In SmartThings IDE logs: image

MQTT Bridge Device events: image

mschwartz commented 6 years ago

I tried stopping docker and removing /var/lib/docker entirely. This forced mqtt-bridge, all layers, to download again.

I've power cycled the hub several times.

mschwartz commented 6 years ago

Magic.

Started working. I did nothing to fix it.