Been trying to get Wink working for days. Does it take time to update at the Wink developer site when I make changes? I have been approved. I tried following the Wink page but couldn’t get it working. I’m using duckdns to see my HA from the outside world. This is what I have tried so far:
Also tried adding my duckdns link with /auth/wink/callback
I’ve got it to confirm but I usually have to edit the address in my address bar to get it to authorize. The duckdns.org links won’t work and I have to use my local instance to get it to link up. Once I do that restart and it always says check config. I’m getting a little frustrated.
The clientid and clientsecrets all match. My wink.conf file looks good.
So then it tries to send me to the authoriaztion link, which ends up being https://xxx.duxkdns.org/auth/wink and I get a Error: 404. If i change it around to my local address, ie xx.xx.xx.xx:8123/auth/wink the it sends me to the Wink site and tells me Redirect URL is not recognized. I can then change that in the long address which had the authorization URL on the dev page plus the xxx.duckdns.org/auth/wink/callback to the auth URL and my local xx.xx.xx.xx:8123/auth/wink/callback and it works. It seems like since I used my duckdns address in the website field when i signed up it gets stuck.
I’ve also tried it with just my email at setup, like the Wink doc says, and that didn’t work either. But I am going to try that again on a new application.
Also one other thing I just noticed. When I go to xxx.duckdns.org from my internal network it takes me to my router. I know it takes me to HA fromoutside my network. Is this normal? I just setup a new router and I guess I need to double check my port forwarding.
Any help is appreciated. Just trying to figure out if I’m doing something stupid here.
Okay so in the developer.wink.com site you need to make sure you are using the local IP address of your system for the redirect URI so…
192.168.x.x:8123/auth/wink/callback
When the configurator tells you to go to your duckdns URL ignore that and go to
192.168.x.x:8123/auth/wink
This should take you to the Wink username/password site and in that URL you should see your redirect_uri listed in the URL parameters it should hopefully match the one listed above. 192.168.x.x:8123/auth/wink/callback?
To start fresh and test all of this out you need to STOP Home Assistant then delete the hidden .wink.conf file located in your config directory (This file gets written when HA stops/restarts so it can’t be deleted while HA is running or it will just get recreated) Once the file is gone you can start HA again and you will get the configurator.
The duckdns hitting your router is normal when you are inside your network. To prevent that you need to configure your DNS on your router to send back your internal address when you hit blah.duckdns.org.
This should take you to the Wink username/password site and in that URL you should see your redirect_uri listed in the URL parameters it should hopefully match the one listed above. 192.168.x.x:8123/auth/wink/callback?
Do you mean when I log in and it has mine client ids and such and I can edit it and then at the bottom it has the token and auth links? My auth link ends at the redirect url with nothing after it. I’m talking at developer.wink.com.
No, it should take you to an oauth login form. This is a site that Wink runs that just displays a login prompt for your username and password once they verify your credentials it redirects the response back to Home Assistant, that’s where your redirect URI come in. I’ll upload a screenshot of what you should see.
You should get a login that looks very similar to this, but this is the login for wink@home so the one you get shouldn’t mention anything about wink@home.
Yeah ok. I’ve been there but my redirect ends up being XXX.duckdns.org in the address to that. I then change it my local ip and I can get to that screen. Otherwise it gives a 404. So I’m basically editing the address to get it to work. It doesn’t work on it’s own. After I do edit it it signs in and says setup is done…but doesn’t work.
I started a new application at Wink that mirrors the instructions and what you posted prior. I did that the first time as well, prior to this attempt, so this will be my third application. The first time didn’t work either but maybe I had something wrong.
I’m assuming if you go into your developer account and the application is approved and you make changes they don’t take immediately since I changed it to what you said but it’s still wanting to redirect me to xxx.duckdns.org.
Also, when I do this in the address bar I get the redirect URL is not authorized. This is where I can go in and change it and it works because right now my redirect is xxx.duckdns.org.
Thanks again to w1ll1am23 for helping me out. Problem was solved. I was trying to setup a Sensi thermostat without the hub but never actually downloaded the Wink app and associated my account with the thermostat. Kind of a stupid error on my part but Wink figured I didn’t have any devices setup so the correction was making sure I had my device, even though I wasn’t using the hub, setup through the Wink app.