Wink/PubNub not updating

Seems to be working fine for me, no connection pool is full issues. Thanks again W1ll!

@w1ll1am23 Is that link you posted above still the right custom module? It looks like you were making changes throughout the thread, so wanted to make sure I grabbed the right stuff.

@w1ll1am23 - Were you aware that when unzipping this file, there are “._xxxx.yy” files for each source file? Apple Quarantine related it seems. No big deal, just lettings others know they do not need to be copied to the wink folder (but can’t hurt - they are ignored).

Do you have any plans on forking the wink component with these updates? I know it is early yet and this was a quick and dirty ad-hoc fix, but an incredibly appreciated update just the same.

So last night at bestbuy I bought a SmartThings hub out of frustration with wink… moved my devices over… then realized there was no easy (or free )way to get my user code of who actually unlocked the door into HA… while looking into it this work around came out… everything is now back on my wink hub and the wife is currently returning the SmartThings hub :joy:. Lesson learned… now going to maybe get a HUSBZB and slowly start to move over… thanks again @w1ll1am23

… side note: I am now an expert on the inclusion/exclusion process for all of my devices :roll_eyes:

It should be update to date, yes

I plan on making changes to home assistant, python-wink, and pubnubsub handler.

Wink is sending back the URL to use for subscriptions so the change should be safe and work with old and new.

1 Like

@b1naryv1k1ng - it should be fine as it was updated with notifier.wink.com properly. The manifest.json file points to pubnubsub-handler==1.0.3b3, which can be changed to 1.03b4 but that didn’t make any difference in terms of reducing pubnub errors. There might be other back-end updates in b4 worth changing it though.

I created the folder /config/custom_components/ and moved the wink folder from your download into there and then restarted the docker container that HA is running in.

I’m still getting the:

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

errors. It looks like its still trying to hit ps.pndsn.com:

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)”)’:

That’s highly unlikely, what devices are you using? I was able to move over all of my lights locks switches and sirens to HA without any issues.

What version of HA are you running?

0.92.2 using the docker image homeassistant/home-assistant

I can as well, thanks for the efforts!

Can you do an ls in your config directory and post the output?

-rw-r–r-- 1 docker docker 4.2K Mar 31 18:26 automations.yaml
drwxr-xr-x 2 docker docker 4.0K May 2 23:05 .cloud
-rw-r–r-- 1 docker docker 8.2K May 5 11:16 configuration.yaml
-rw-r–r-- 1 docker docker 6.1K Feb 14 15:39 configuration.yaml.bak
drwxrwxr-x 3 docker docker 4.0K May 5 12:26 custom_components
-rw-r–r-- 1 docker docker 426 Feb 17 01:39 customize.yaml
drwxr-xr-x 3 docker docker 4.0K May 5 12:27 deps
-rw-r–r-- 1 docker docker 210 May 5 12:03 ecobee.conf
-rw-r–r-- 1 docker docker 0 Feb 9 14:06 groups.yaml
-rw-r–r-- 1 docker docker 6 May 2 23:04 .HA_VERSION
-rw-r–r-- 1 docker docker 3.3K May 5 12:38 home-assistant.log
-rw-r–r-- 1 docker docker 1.9G May 5 12:38 home-assistant_v2.db
-rw-r–r-- 1 docker docker 32K May 5 12:38 home-assistant_v2.db-shm
-rw-r–r-- 1 docker docker 5.2K May 5 12:38 home-assistant_v2.db-wal
drwxr-xr-x 4 docker docker 4.0K Feb 12 22:14 icons
-rw-r–r-- 1 docker docker 5.1K Apr 28 23:03 known_devices.yaml
drwxr-xr-x 2 docker docker 4.0K Feb 25 21:06 lovelace
-rw-r–r-- 1 docker docker 167 Feb 16 09:51 media_player.yaml
-rw-r–r-- 1 root root 123 May 5 12:37 plex.conf
-rw-r–r-- 1 docker docker 221 Mar 10 11:36 scripts.yaml
-rw-r–r-- 1 docker docker 1.3K May 5 11:17 secrets.yaml
drwxr-xr-x 2 docker docker 4.0K May 5 12:38 .storage
-rw-r–r-- 1 docker docker 912 Feb 14 19:58 themes.yaml
drwxr-xr-x 2 docker docker 4.0K Feb 18 13:08 tts
-rw-r–r-- 1 docker docker 520 Feb 25 21:05 ui-lovelace.yaml
-rw-r–r-- 1 docker docker 4.5K Feb 11 12:30 ui-lovelace.yaml.bak
-rw-r–r-- 1 docker docker 44 Mar 15 2018 .uuid
-rw-r–r-- 1 root root 225 May 5 12:37 .wink.conf
drwxr-xr-x 2 docker docker 4.0K Feb 23 11:33 www

And can you do the same in the custom component directory

b1naryv1k1ng@valhalla:~$ ls -lah /docker/HomeAssistant/custom_components/
total 12K
drwxrwxr-x 3 docker docker 4.0K May 5 12:26 .
drwxr-xr-x 10 docker docker 4.0K May 5 12:42 …
drwxrwxr-x 3 docker docker 4.0K May 5 12:34 wink

b1naryv1k1ng@valhalla:~$ ls -lah /docker/HomeAssistant/custom_components/wink/
total 124K
drwxrwxr-x 3 docker docker 4.0K May 5 12:34 .
drwxrwxr-x 3 docker docker 4.0K May 5 12:26 …
-rw-rw-r-- 1 docker docker 2.0K May 5 12:23 alarm_control_panel.py
-rw-rw-r-- 1 docker docker 6.4K May 5 12:23 binary_sensor.py
-rw-rw-r-- 1 docker docker 17K May 5 12:23 climate.py
-rw-rw-r-- 1 docker docker 1.9K May 5 12:23 cover.py
-rw-rw-r-- 1 docker docker 3.0K May 5 12:23 fan.py
-rw-rw-r-- 1 docker docker 32K May 5 12:23 init.py
-rw-rw-r-- 1 docker docker 3.6K May 5 12:23 light.py
-rw-rw-r-- 1 docker docker 6.8K May 5 12:23 lock.py
-rw-rw-r-- 1 docker docker 250 May 5 12:34 manifest.json
drwxr-xr-x 2 root root 4.0K May 5 12:27 pycache
-rw-rw-r-- 1 docker docker 995 May 5 12:23 scene.py
-rw-rw-r-- 1 docker docker 3.2K May 5 12:23 sensor.py
-rw-rw-r-- 1 docker docker 5.2K May 5 12:23 services.yaml
-rw-rw-r-- 1 docker docker 2.1K May 5 12:23 switch.py
-rw-rw-r-- 1 docker docker 4.0K May 5 12:23 water_heater.py

hm, oddly enough, after restarting the server again through the HA interface, it seems like it might be working now? I’m getting state updates to my lights and the errors seemed to have stopped.

Yeah, everything seems to be working fine now. Biggest concern was my garage door state wasn’t being updated, since its MyQ being passed in via Wink. I think what I eventually need to do is swap the MyQ from being added in through wink to just being added directly to HA.

Yeah good call on myq one less hop. Glad it’s working, must have failed to download the updates on the first reboot

Thank you @w1ll1am23, that update works for me! I can turn on my lights and see the status update in lovelace again.

2 Likes