Wink/PubNub not updating

no, update fine

So I did a little research on that and I don’t think it is an error that we need to worry about.

Ok perfect, thanks

I just updated to 0.94b1 and wink cannot be setup.

Error during setup of component wink
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/homeassistant/setup.py”, line 156, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
File “/usr/local/lib/python3.7/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/config/custom_components/wink/init.py”, line 525, in setup
component = EntityComponent(_LOGGER, DOMAIN, hass)
File “/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_component.py”, line 68, in init
domain: self._async_init_entity_platform(domain, None)
File “/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_component.py”, line 308, in _async_init_entity_platform
async_entities_added_callback=self._async_update_group,
File “/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py”, line 48, in init
self._process_updates = asyncio.Lock()
File “/usr/local/lib/python3.7/asyncio/locks.py”, line 161, in init
self._loop = events.get_event_loop()
File “/usr/local/lib/python3.7/asyncio/events.py”, line 644, in get_event_loop
% threading.current_thread().name)
RuntimeError: There is no current event loop in thread ‘SyncWorker_17’.

The fix has already been committed.

Hi,

What is the fix?

https://github.com/home-assistant/home-assistant/pull/24203

1 Like

Hi @w1ll1am23, Today I got this error:

`Error while setting up platform wink
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 126, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 416, in wait_for
return fut.result()
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/wink/light.py", line 19, in setup_platform
add_entities([WinkLight(light, hass)])
  File "/config/custom_components/wink/__init__.py", line 663, in __init__
self.wink.pubnub_channel, self._pubnub_update)
  File "/config/deps/lib/python3.7/site-packages/pubnubsubhandler.py", line 81, in add_subscription
self._pubnubs[0].subscribe().channels(channel).execute()
IndexError: list index out of range`

Any idea, Thanks in advance

Yeah i saw it one other time but increased the PubNub subscription startup from like 5 seconds to 60 and I figured that would be more than enough.

I am not sure how it is possible to hit that part of the code and there be nothing in the list… I’ll take another look.

I assume you don’t get this every time? How many devices do you have?

No I dont have this every time, actually this is the second time that I see it. I have:
The hub (wink)
1 Lutron Caseta
1 ecosmart bulb
4 zigbee bulbs

Strange, okay I’ll see what’s going on.

ok, thanks

Tried again, now is new error. This on 94b3

Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/setup.py”, line 156, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
File “/usr/local/lib/python3.7/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/config/custom_components/wink/init.py”, line 250, in setup
from pubnubsubhandler import PubNubSubscriptionHandler
File “/config/deps/lib/python3.7/site-packages/pubnubsubhandler.py”, line 9, in
from pubnub.pnconfiguration import PNConfiguration
ModuleNotFoundError: No module named ‘pubnub’

I have deleted the folder python3.7 from /config/deps/lib/ and I rebooted and it works now on 94b3

Can you test pubnubsub handler 1.0.7?

Add custom_components_2.zip to your custom components folder and edit the mainifest.json to change the version from 1.0.5 to 1.0.7 and reboot.

It will probably take a couple restarts to make sure you don’t get the error again.

Sorry for the late response, I will do it and inform you

So far no problems with 1.0.7

1 Like

how do I get at HA_CONFIG_DIR/custom_components/? I don’t see it anywhere

I just upgraded to hassio .94 and now I can’t get my wink devices. I’m a noobie and don’t know how to fix this

1 Like

I believe you opened an issue on this yesterday but resolved it yourself…
Linking for reference…
https://github.com/home-assistant/home-assistant/issues/24349

Basically Fran and a few others were missing “wink:” in their configuration.yaml . Adding that and restarting Home Assistant fixed this