I wanted to send an update, I launched the wink app and the hub had an firmware update. I ran the update and it seems connection is working again. I’m not sure if it was bad timing with the outage or if the update fixed something. Either way its working again… for now…
Interesting, perhaps they changed the API again.
I don’t have a hub so it’s just all cloud / API for me.
I have wink/Sensi with no hub. It’s broken for me. Been like this for couple days at least.
Seems to be an issue with wink. In the wink app I get errors - can’t communicate with server.
Seems to be related to light groups.
I’m getting tired of the Wink issues with Sensi. Breaks my HA setup with my hvac system/automations. Another reason why I try to stick to non-cloud devices.
@w1ll1am23 I just started receiving the following error:
Error during setup of component wink
Traceback (most recent call last):
File "/home/lee/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 156, 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 "/home/lee/homeassistant/lib/python3.6/site-packages/homeassistant/components/wink/__init__.py", line 332, in setup
sub_details = pywink.get_subscription_details()
File "/home/lee/homeassistant/lib/python3.6/site-packages/pywink/api.py", line 662, in get_subscription_details
response_dict = wink_api_fetch()
File "/home/lee/homeassistant/lib/python3.6/site-packages/pywink/api.py", line 696, in wink_api_fetch
raise WinkAPIException("Unexpected")
pywink.api.WinkAPIException: Unexpected
Research led me to this thread in which you replied it could be on their end. What do you think?
Thanks for your hard work!
I assume you are getting this at startup? If so, then yes has to be some sort of issue on their side. Seems like they aren’t returning a response that python-wink considers valid.
Yes. At startup. Tried it a few times already and same result. I will try again in the morning in case it resolves on its own. Just wanted your input.
Thank you very much!
I just restarted my HA instance and am also getting the same error:
019-07-01 21:31:39 ERROR (MainThread) [homeassistant.setup] Error during setup of component wink
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 "/usr/src/homeassistant/homeassistant/components/wink/__init__.py", line 332, in setup
sub_details = pywink.get_subscription_details()
File "/usr/local/lib/python3.7/site-packages/pywink/api.py", line 662, in get_subscription_details
response_dict = wink_api_fetch()
File "/usr/local/lib/python3.7/site-packages/pywink/api.py", line 696, in wink_api_fetch
raise WinkAPIException("Unexpected")
pywink.api.WinkAPIException: Unexpected
EDIT: The funny thing is it actually was working today for a few hours, until I restarted HA
Found another interesting log entry if it helps:
Mon Jul 01 2019 22:30:39 GMT-0400 (Eastern Daylight Time)
Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 121, in handle_call_service
connection.context(msg))
File "/usr/src/homeassistant/homeassistant/core.py", line 1150, in async_call
self._execute_service(handler, service_call))
File "/usr/src/homeassistant/homeassistant/core.py", line 1172, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 194, in handle_service
required_features
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 316, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 339, in _handle_service_platform_call
await func(entity, data)
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 559, in async_service_temperature_set
await entity.async_set_temperature(**kwargs)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/wink/climate.py", line 252, in set_temperature
self.wink.set_temperature(target_temp_low, target_temp_high)
File "/usr/local/lib/python3.7/site-packages/pywink/devices/thermostat.py", line 191, in set_temperature
"desired_state": desired_state
File "/usr/local/lib/python3.7/site-packages/pywink/api.py", line 82, in set_device_state
response_json = arequest.json()
File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 889, in json
self.content.decode(encoding), **kwargs
File "/usr/local/lib/python3.7/site-packages/simplejson/__init__.py", line 518, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 370, in decode
obj, end = self.raw_decode(s)
File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 400, in raw_decode
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Yeah, looks like their API isn’t isn’t responding like it should. Something is definitely going on, on their end.
Yeah, the same error here. I an done with Wink
Yeah it looks like the error is at initial startup (the first call to Wink) that only happens once so if you make it past that things will be fine.
Just a follow up. I did restart this morning again and it did complete with no errors so something was/is definitely up.
Tried the new HA 0.96 and Wink was totally broken, restored a snapshot of 0.95.4 and everything is fine. Wondering if anyone else has run into this yet?
Just updated to 0.96 and no issues with the few lights and scenes i have on wink and push to HA, and no errors related to wink in my logs.
My Wink lights were not available in .96 until I rebooted the Wink hub. Now they are fine.
I should have added more detail. I have 2 Emerson Sensi thermostats, they aren’t supported natively but work with the Wink app (I don’t have a hub)
The release notes mentioned they made some Climate changes.
EDIT: Tried again and was able to capture the error in the logs:
2019-07-18 09:54:45 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 365, in _async_add_entity
await entity.async_update_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 226, in async_update_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 256, in _async_write_ha_state
attr.update(self.state_attributes or {})
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 169, in state_attributes
ATTR_HVAC_MODES: self.hvac_modes,
File "/usr/src/homeassistant/homeassistant/components/wink/climate.py", line 223, in hvac_modes
modes = self.wink.modes()
AttributeError: 'WinkThermostat' object has no attribute 'modes'
2019-07-18 09:54:45 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 365, in _async_add_entity
await entity.async_update_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 226, in async_update_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 249, in _async_write_ha_state
state = self.state
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 155, in state
return self.hvac_mode
File "/usr/src/homeassistant/homeassistant/components/wink/climate.py", line 208, in hvac_mode
wink_mode = self.wink.current_mode()
AttributeError: 'WinkThermostat' object has no attribute 'current_mode'
Wink controlled lights and door/window sensors working, my Emerson Sensi thermostat disappeared.
Let me take a quick look