Wink/PubNub not updating

What’s the wink to hass translation component? I attempted to migrate from wink to local zwave/zigbee a few weeks ago and bailed. Hardly any of my devices were recognized and or worked.

Any help there is making that easier I will take!

OH! Okay so I decided to go and proxy the official Android app and see whats going on. I was right! They aren’t using PubNub anymore. Which isn’t great news. They are now using “notifier.wink.com” and I doubt I will be able to find any documentation on it :frowning: I will keep digging but this means no more pubnub basically, and no more push updates.

2 Likes

So, if no more pubnub… does that mean until they release details of their api changes, wink/HA will remain broken? (Basically until they allow us to access the new notifier component?)

Well I am activity looking at it now. It looks like everything is laid out the same. Kinda like they just implemented PubNub locally on their servers and aren’t hosting it over at PubNub. I think I may be able to put something together real quick for some people to test? Who can?

I should be home in like 2 hours and will help out if no one else jumps in before then. :+1:

I’m in! Let me know what to do!

I’m in 2 for testing !!

Okay everyone give this a shot.

This isn’t the final update, but it forces the pubnubsub-handler library that HA uses to use https://notifier.wink.com and that is all. So if my theory is correct and all they did was move the hosting over to their servers I think this will work.

Just unzip this in your HA config folder as long as you don’t have any other custom components.

2 Likes

Holy cow @w1ll1am23! I’ll test this as soon as I can. Where’s your “buy me a coffee” account?

lol should probably set one of those up. Its not a big deal, the thing that makes HA great and will continue to make it the best HA platform is the community helping each other out. I get tons of help from other people so just passing it along.

2 Likes

I have other custom components. so in my config file i used
sensor:

  • platform: wink
    rebooting now

All you will need to do it unzip the file about and copy the Wink folder out and drop it in the custom_components folder you already have.

1 Like

doing that now then !!

I dropped the wink folder in, rebooted and turned a light on and the error still appeared:

Exception in subscribe loop: HTTP Client Error (400): {"message":"Invalid Subscribe Key","error":true,"service":"Access Manager","status":400}

Can you confirm the custom component is loaded and it actually download the new pubnubsub-handler version 1.0.3b2? Should show up early in your logs.

requests.exceptions.ConnectionError: HTTPSConnectionPool(host=‘api.wink.com’, port=443): Max retries exceeded with url: /users/me/groups (Caused by NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0x6e1decd0>: Failed to establish a new connection: [Errno -3] Try again’))
2019-05-05 13:17:34 WARNING (MainThread) [homeassistant.components.switch] Setup of platform wink is taking over 10 seconds.

I think it’s not loaded :frowning:

    019-05-05 09:11:56 WARNING (MainThread) [homeassistant.loader] You are using a custom component for wink.binary_sensor which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
    2019-05-05 09:11:56 WARNING (MainThread) [homeassistant.loader] You are using a custom component for wink.sensor which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
    2019-05-05 09:11:56 WARNING (MainThread) [homeassistant.loader] You are using a custom component for wink.switch which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
    2019-05-05 09:11:56 WARNING (MainThread) [homeassistant.loader] You are using a custom component for wink.climate which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
    2019-05-05 09:11:56 WARNING (MainThread) [homeassistant.loader] You are using a custom component for wink.alarm_control_panel which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
    2019-05-05 09:11:56 WARNING (MainThread) [homeassistant.loader] You are using a custom component for wink.scene which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
    2019-05-05 09:11:56 WARNING (MainThread) [homeassistant.loader] You are using a custom component for wink.water_heater which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
    2019-05-05 09:11:56 WARNING (MainThread) [homeassistant.loader] You are using a custom component for wink.lock which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
    2019-05-05 09:11:56 WARNING (MainThread) [homeassistant.loader] You are using a custom component for wink.cover which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
    2019-05-05 09:11:56 WARNING (MainThread) [homeassistant.loader] You are using a custom component for wink.fan which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
    2019-05-05 09:11:56 WARNING (MainThread) [homeassistant.loader] You are using a custom component for wink.light which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
    2019-05-05 09:12:09 WARNING (EndpointThread-Heartbeat-0) [urllib3.connectionpool] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='ps.pndsn.com', port=443): Read timed out. (read timeout=10)",)': /v2/presence/sub-key/sub-c-f7bf7f7e-0

File “/config/custom_components/wink/cover.py”, line 15, in setup_platform
for shade in pywink.get_shade_groups():
File “/usr/local/lib/python3.7/site-packages/pywink/api.py”, line 654, in get_shade_groups
for group in get_devices(device_types.GROUP, “groups”):
File “/usr/local/lib/python3.7/site-packages/pywink/api.py”, line 703, in get_devices
json_data = wink_api_fetch(end_point)
File “/usr/local/lib/python3.7/site-packages/pywink/api.py”, line 678, in wink_api_fetch
response = requests.get(arequest_url, headers=API_HEADERS)
File “/usr/local/lib/python3.7/site-packages/requests/api.py”, line 75, in get
return request(‘get’, url, params=params, **kwargs)
File “/usr/local/lib/python3.7/site-packages/requests/api.py”, line 60, in request
return session.request(method=method, url=url, **kwargs)
File “/usr/local/lib/python3.7/site-packages/requests/sessions.py”, line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/sessions.

Do you see where it tries to download from pypi? Because it still shows it is trying to connect to ps.pndsn.com not notifier.wink.com