jimpastos / wink-relay-manager

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

Unable to connect to MQTT #6

Closed boojew closed 6 years ago

boojew commented 6 years ago

I've tried connecting from my Wink Relay to a Mosca broker running on port 9080, and in the logs, all I can see is that each attempt to write to the broker is failing (even w/ debug on). Right now, no authentication is on. Not sure what to do to further troubleshoot

7 11:50:28.557] [wink_manager] [debug] Sending "ON" on [Relay/screen/state] [2018-10-27 11:50:28.557] [wink_manager] [error] Failed to send payload, return code -3 [2018-10-27 11:50:28.567] [wink_manager] [error] Connect failed, rc 0 [2018-10-27 11:50:28.817] [wink_manager] [debug] Sending "OFF" on [Relay/relays/0/state] [2018-10-27 11:50:28.817] [wink_manager] [error] Failed to send payload, return code -3 [2018-10-27 11:50:28.818] [wink_manager] [debug] Sending "OFF" on [Relay/relays/1/state] [2018-10-27 11:50:28.818] [wink_manager] [error] Failed to send payload, return code -3 [2018-10-27 11:50:28.826] [wink_manager] [debug] Sending "19.059999" on [Relay/sensors/temperature] [2018-10-27 11:50:28.826] [wink_manager] [error] Failed to send payload, return code -3 [2018-10-27 11:50:28.847] [wink_manager] [debug] Sending "47.383999" on [Relay/sensors/humidity] [2018-10-27 11:50:28.847] [wink_manager] [error] Failed to send payload, return code -3 [2018-10-27 11:50:48.779] [wink_manager] [debug] Screen state changed false [2018-10-27 11:50:48.779] [wink_manager] [debug] Sending "OFF" on [Relay/screen/state] [2018-10-27 11:50:48.779] [wink_manager] [error] Failed to send payload, return code -3 [2018-10-27 11:50:52.329] [wink_manager] [error] Connect failed, rc -1 [2018-10-27 11:50:55.350] [wink_manager] [error] Connect failed, rc -1 [2018-10-27 11:50:58.539] [wink_manager] [info] Sending service call to hide status bar [2018-10-27 11:51:01.371] [wink_manager] [error] Connect failed, rc -1 [2018-10-27 11:51:10.388] [wink_manager] [error] Connect failed, rc -1 [2018-10-27 11:51:28.421] [wink_manager] [error] Connect failed, rc -1 [2018-10-27 11:51:37.034] [wink_manager] [debug] Sending "47.278999" on [Relay/sensors/humidity] [2018-10-27 11:51:37.034] [wink_manager] [error] Failed to send payload, return code -3 [2018-10-27 11:52:01.473] [wink_manager] [error] Connect failed, rc -1

jimpastos commented 6 years ago

Seems its not connecting at all. Can you post you ini file?

boojew commented 6 years ago

mqtt_clientid=Relay mqtt_topic_prefix=Relay mqtt_address=tcp://ha.myhost.com:9080 screen_timeout=20 proximity_threshold=5000 hide_status_bar=true relay_upper_flags=1 relay_lower_flags=2 send_proximity_trigger=true send_screen_state=true debug=true log_file=/data/local/tmp/wink_manager.log

Not sure if it was a coincidence or not, but I've moved mosca to 1883 (and the config) and it works now.

boojew commented 6 years ago

Ok - likely an issue on my side.. My apologizes... Would you know the answer to these two questions:

  1. Can this run on the latest Wink firmware?
  2. Should the relay be signed into the Wink service?

Thanks!

jimpastos commented 6 years ago

It can run on anything. No need for wink account

TerawattX commented 2 years ago

Ok - likely an issue on my side.. My apologizes... Would you know the answer to these two questions:

Did you ever get this resolved? I am seeing the exact same behavior for my device and am unsure what return code -3 indicates.

Edit: Nevermind me. After hours of pouring over config files, code, and log files... I realized I had typed the port as 1833, not 1883.