This morning Hass.io lost contact with my Wink hub. I checked that the Android Wink app was still working. I went to developer.wink.com and confirmed that nothing had changed. I deleted wink.conf. I followed the instructions of the configurator. Everything checks out but I get this message:
“No code returned from Wink API”.
That message actually appears in the list when I click the info button. When I click the configure button I am directed to go to “http://my_hassio_IP:8123/auth/wink”. At that address I get the “wink client is not authorized or could not be found.”
Can you try to start over one more time. Stop home Assistant. Make sure it isn’t running. Then delete the .wink.conf and start HA back up. Then run through the configurator again. If you still get the error send me the URL you have in the address bar when you are on the login page.
Same thing happened to me today. I went to developer.wink.com and my application was gone. I created another, got the client_id and client_secret, reconfigured in HA and all is well. I think something blinked at wink (or did it wink at blink, can’t be sure).
I logged into my developer account and attempted to delete my account. That seemed to have no effect. I could and did login to the account without problem even after repeated attempts to delete the account.
The only option was to create another application. I did. It was approved in an hour or two and a new client ID and client secret was provided.
I erased .wink.conf and restarted HA. I copied the new credentials into the configurator, went to http://my_hassio_IP:8123/auth/wink. The login failed and the usual message “Client is not authorized or could not be found.” appeared.
Hmmm. Can you open the .wink.conf and verify that the client id and client secret are exactly what is listed in your developer account? Make sure there are no spaces before or after?