jimpastos / wink-relay-manager

Manage Wink Relay's native sensors and publish to MQTT
46 stars 24 forks source link

Relay stops posting to MQTT #2

Closed DanielGalle closed 6 years ago

DanielGalle commented 6 years ago

I have the same issue like I had with the wink-relay-handler - the relay stops posting to the MQTT topic. It looks like it loses the connection to the broker.

Any ideas?

jimpastos commented 6 years ago

Can you try enabling debug and check logs/logcat?

DanielGalle commented 6 years ago

[1970-01-02 00:00:06.831] [wink_manager] [error] Connect failed, rc 0 [2018-04-17 20:49:24.410] [wink_manager] [debug] Sending "20.090000" on [Relay_Kitchen/sensors/temperature] [2018-04-17 20:49:24.410] [wink_manager] [error] Failed to send payload, return code -3 [2018-04-17 20:49:26.423] [wink_manager] [debug] Sending "56.993000" on [Relay_Kitchen/sensors/humidity] [2018-04-17 20:49:26.423] [wink_manager] [error] Failed to send payload, return code -3 [2018-04-17 20:49:32.406] [wink_manager] [info] Sending service call to hide status bar

But it worked yesterday and even this morning it was still working...

jimpastos commented 6 years ago

Some thoughts:

DanielGalle commented 6 years ago
jimpastos commented 6 years ago

There is a keep alive interval set for 10 seconds. Try lowering that to 5 and recompile. The server might be strict and kicking the client off, but it should be able to reconnect regardless

jimpastos commented 6 years ago

closing. no update