I’m having the same issue here is the info from my error log:
2018-05-23 22:57:27 ERROR (MainThread) [homeassistant.setup] Error during setup of component wink
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/homeassistant/setup.py", line 145, in _async_setup_component
component.setup, hass, processed_config)
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.6/site-packages/homeassistant/components/wink/__init__.py", line 312, in setup
pywink.get_subscription_key())
File "/usr/lib/python3.6/site-packages/pywink/api.py", line 577, in get_subscription_key
response_dict = wink_api_fetch()
File "/usr/lib/python3.6/site-packages/pywink/api.py", line 598, in wink_api_fetch
raise WinkAPIException("401 Response from Wink API. Maybe Bearer token is expired?")
pywink.api.WinkAPIException: 401 Response from Wink API. Maybe Bearer token is expired?
I should mention that I’ve tryed the new way of just having wink:
in my configuration.yaml or the full: wink: email: YOUR_WINK_EMAIL_ADDRESS password: YOUR_WINK_PASSWORD client_id: YOUR_WINK_CLIENT_ID client_secret: YOUR_WINK_CLIENT_SECRET
Are you setting up for the first time? You should delete the .wink.conf in your config directory and try to set wink up again.
No, I’ve had Wink working with out issues for several months it just randomly stopped working originally I was using the Wink:
command and filled in the auth though the dashboard as for the wink.conf am I perhaps gapping on where that is stored cause I cant seam to locate it.
That info is stored in a hidden file in your config directory called. .wink.conf
you need to stop HA and then delete the file, and then start HA again. The configurator will pop up again.
The issue you are having is a known issue. I am trying to fix it, not sure why it doesn’t work currently. It should refresh your token and save the new one once the old one is expired.
Thank You I’ll do that once I get home.
I’ve deleted the file and i’m still getting the same error
The same error 401? Did you make sure HA was stopped before you deleted the file? If HA is running when you delete the file it will be recreated when you restart.
I forgot to shut down Hass, But I’ve rebooted Hass and even the whole pi and the file is still not there
2018-05-30 12:48:48 ERROR (MainThread) [homeassistant.setup] Error during setup of component wink
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/homeassistant/setup.py", line 146, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.6/site-packages/homeassistant/components/wink/__init__.py", line 312, in setup
pywink.get_subscription_key())
File "/usr/lib/python3.6/site-packages/pywink/api.py", line 577, in get_subscription_key
response_dict = wink_api_fetch()
File "/usr/lib/python3.6/site-packages/pywink/api.py", line 598, in wink_api_fetch
raise WinkAPIException("401 Response from Wink API. Maybe Bearer token is expired?")
pywink.api.WinkAPIException: 401 Response from Wink API. Maybe Bearer token is expired?
In your ha config folder inside a terminal run the following command
ls -al
and post the output.
I’m having a blond moment how do i get to that directory? Currently i’m using the SSH ad-on
Not sure about hassio haven’t used it. I don’t know where that file is stored. How do you access your config files?
Though Samba Share and Notepad++
core-ssh:/config# ls -al
total 2699936
drwxr-xr-x 11 root root 4096 May 30 13:49 .
drwxr-xr-x 49 root root 4096 May 30 14:05 ..
-rwxr--r-- 1 root root 14340 Apr 19 02:17 .DS_Store
-rw-r--r-- 1 root root 6 May 30 11:06 .HA_VERSION
-rwxr--r-- 1 root root 0 Jan 14 00:33 ._.DS_Store
-rwxr--r-- 1 root root 4096 Jan 14 20:03 ._automations.yaml
-rwxr--r-- 1 root root 0 Jan 14 14:10 ._cameras.yaml
-rwxr--r-- 1 root root 4096 Jan 30 23:11 ._configuration.yaml
-rwxr--r-- 1 root root 4096 Apr 19 02:21 ._new 1.txt
-rw-r--r-- 1 root root 737 Mar 13 05:37 .august.conf
drwxr-xr-x 2 root root 4096 Mar 3 00:18 .cloud
-rw-r--r-- 1 root root 352 May 23 21:45 .config_entries.json
-rw-r--r-- 1 root root 2764 May 24 23:03 .ios.conf
-rw-r--r-- 1 root root 44 Jan 12 22:32 .uuid
drwxr-xr-x 2 root root 4096 Mar 3 19:50 IP Cam Config
drwxr-xr-x 2 root root 4096 Feb 28 19:12 TempWork
drwxr-xr-x 5 root root 4096 May 30 12:52 appdaemon
-rwxr--r-- 1 root root 69 Apr 25 14:31 august.yaml
-rwxrwxrwx 1 root root 12784 May 20 08:59 automations.yaml
-rwxr--r-- 1 root root 986 May 15 02:28 boolean_input.yaml
-rwxr--r-- 1 root root 266 Jan 14 14:10 cameras.yaml
-rwxr--r-- 1 root root 6369 May 23 22:52 configuration.yaml
drwxr-xr-x 4 root root 4096 Apr 22 22:18 custom_components
-rwxr--r-- 1 root root 4488 May 19 21:29 customize.yaml
drwxr-xr-x 2 root root 4096 Jan 12 22:31 deps
-rw-r--r-- 1 root root 7072 May 24 04:11 entity_registry.yaml
-rwxr--r-- 1 root root 492 May 14 23:52 fitbit.conf
-rwxr--r-- 1 root root 5654 May 19 21:51 groups.yaml
-rw-r--r-- 1 root root 2161 May 23 21:39 harmony_living_room.conf
-rw-r--r-- 1 root root 361269 May 30 14:31 home-assistant.log
-rw-r--r-- 1 root root 2764140544 May 30 12:48 home-assistant_v2.db
drwxr-xr-x 4 root root 4096 Mar 30 20:44 homebridge
-rwxr--r-- 1 root root 35 Apr 25 14:29 hue.yaml
-rwxr--r-- 1 root root 707 May 15 12:11 known_devices.yaml
-rwxr--r-- 1 root root 2177 May 19 21:44 lights.yaml
-rwxr--r-- 1 root root 575 May 11 21:16 media_google.yaml
-rwxr--r-- 1 root root 81 Apr 25 14:49 mqtt.yaml
-rw------- 1 root root 191 Jan 14 13:57 nest.conf
-rwxr--r-- 1 root root 17 Apr 19 02:21 new 1.txt
-rw-r--r-- 1 root root 123 May 30 12:52 plex.conf
-rwxr--r-- 1 root root 1632 Apr 25 18:46 scripts.yaml
-rwxr--r-- 1 root root 162 Jan 12 23:03 secrets.yaml
-rwxr--r-- 1 root root 2901 May 23 22:08 sensor.yaml
-rwxr--r-- 1 root root 312 Apr 25 13:47 sensor_binary.yaml
-rwxr--r-- 1 root root 1432 May 9 21:27 switchs.yaml
drwxr-xr-x 2 root root 4096 Apr 24 20:41 tts
-rwxr--r-- 1 root root 45 Apr 25 13:51 tts.yaml
drwxr-xr-x 3 root root 4096 Apr 22 21:11 www
-rwxr--r-- 1 root root 92 May 23 21:24 xiaomi.yaml
core-ssh:/config#
What do you have listed in your config for wink? Just wink:
?
Ah that might be the issue i did just have wink: but i added more when it stooped working to test let me remove it and reboot see what happens
No problem, good to go now?
1 Like
What am I doing wrong? I have read this thread a thousand times. I am setting up wink for the first time.
https://api.wink.com/oauth2/authorize?client_id=GMF1-Lnujb66Dbtd3Yyvcnl7NEniEF3r&redirect_uri=https%3A//192.168.1.104%3A8123/auth/wink/callback
I get the
Redirect URI is not authorized.
Verify that the client_id in the URL you posted matches exactly to the one you have in the developer console. Check every single letter (some people have noticed the last letter missing) You can confirm that the url 192.168.1.104:8123/auth/wink/callback is listed in your developer account?