HA stops reporting Wink state changes

Some how I am not seeing those two ring door bell sensors. I tried modifying component folder under home assistant by adding following two lines but did not show those sensors. (I did restart HA 0.37.1)

for door_bell_sensor in pywink.get_door_bells():
    add_devices([WinkBinarySensorDevice(door_bell_sensor, hass)])

Then I copied whole file you mentioned above into custom binary component and restart but still did not show up.
Thanks

You you sure the complete path is this custom_components/binary_sensor/wink.py?

Any idea on how to fix this if I’m getting this error on a new raspberry pi all in one install and I’m using the Virtual environment.

from the Logs Not initializing wink because could not install dependency pubnubsub-handler==1.0.0

New install of .37.1

activate your virtualenv and try to manually install pubnubsub-handler and see what error you are getting.

Hmmm I have no idea what this means…

Exception:
Traceback (most recent call last):
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/pip/basecommand.py”, line 215, in main
status = self.run(options, args)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/pip/commands/install.py”, line 335, in run
wb.build(autobuilding=True)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/pip/wheel.py”, line 749, in build
self.requirement_set.prepare_files(self.finder)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/pip/req/req_set.py”, line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/pip/req/req_set.py”, line 620, in _prepare_file
session=self.session, hashes=hashes)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/pip/download.py”, line 809, in unpack_url
unpack_file_url(link, location, download_dir, hashes=hashes)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/pip/download.py”, line 715, in unpack_file_url
unpack_file(from_path, location, content_type, link)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/pip/utils/init.py”, line 599, in unpack_file
flatten=not filename.endswith(’.whl’)
File “/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/pip/utils/init.py”, line 484, in unzip_file
zip = zipfile.ZipFile(zipfp, allowZip64=True)
File “/usr/lib/python3.4/zipfile.py”, line 937, in init
self._RealGetContents()
File “/usr/lib/python3.4/zipfile.py”, line 978, in _RealGetContents
raise BadZipFile(“File is not a zip file”)
zipfile.BadZipFile: File is not a zip file

Not the same error, but I wonder if it is the same issue as this https://github.com/home-assistant/home-assistant/issues/5410

Yes, I have it under the custom_components\binary_sensor. custom_component folder and my config file are at same location to be more specific. I will try setting up new instance on different machine (Windows 10) to make sure I am not missing anything and post the result here.
Thanks

I have done more testing and now it shows up not sure what I was missing earlier. First thing I did was from the developer panel selected Wink service and choose “refresh state from wink” and it did show up so may be restart did not do it earlier. All good now sorry for false alarm.
But here is the thing that took couple hours. My all 7 z-wave switches keeps toggling to either from on/off to unavailable. So many automation rules(AppDaemon Apps) kept kicking on/off due to that. So I reverted back to the HA version 0.36.1 to find out where is the issue, I had doubt on newer version of Wink in 0.37.1. But it turned out that I was wrong it still kept doing same thing. And root cause looks like Wink Hub it self whenever those switch (not all of them together becomes unavailable but one or couple will) become unavailable Wink Hub led flashes that means it pushed out some update or tried to take some action and those switches became unavailable. I will report this to Wink if they have any idea or any one else has reported.
So far so good.
Thanks for good work.
Edit: Corrected spelling

I am trying to troubleshoot the issue of Wink Hub (ver 2) z-wave switches frequently showing unavailable for few seconds and then comes back and keeps repeating. Mostly happens to z-wave switches but noticed GoControl garage door was not updating status in HA but it really did in Wink App.

Hope this is not related to old issue discussed here:
https://github.com/home-assistant/home-assistant/issues/861

For time being I am thinking to update wink switch sensor to ignore status of unavailable any better suggestion?

Here is logged data from my HA DB for last 7 days, looks like there is one good update and next is bad which marks unavailable.

"2028208"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-04 22:53:46.032000"	"2017-02-04 22:53:46.032000"
"2028182"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 22:52:41.269347"	"2017-02-04 22:52:41.269347"
"2027974"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-04 22:42:05.104432"	"2017-02-04 22:42:05.104432"
"2027972"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 22:42:02.189096"	"2017-02-04 22:42:02.189096"
"2027823"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-04 22:33:39.106470"	"2017-02-04 22:33:39.106470"
"2027817"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 22:33:23.172414"	"2017-02-04 22:33:23.172414"
"2027753"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-04 22:29:53.429168"	"2017-02-04 22:29:53.429168"
"2027751"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 22:29:49.033547"	"2017-02-04 22:29:49.033547"
"2027549"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-04 22:23:30.106318"	"2017-02-04 22:23:30.106318"
"2027440"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 22:20:43.660881"	"2017-02-04 22:20:43.660881"
"2027433"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 22:20:39.191988"	"2017-02-04 22:20:39.191988"
"2027333"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 22:17:13.414221"	"2017-02-04 22:17:13.414221"
"2027320"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 22:16:16.668267"	"2017-02-04 22:16:16.668267"
"2027245"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 22:12:43.989961"	"2017-02-04 22:12:43.989961"
"2027244"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 22:12:36.580265"	"2017-02-04 22:12:36.580265"
"2027162"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 22:08:19.536676"	"2017-02-04 22:08:19.536676"
"2027161"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 22:08:15.733739"	"2017-02-04 22:08:15.733739"
"2027110"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 22:05:18.853685"	"2017-02-04 22:05:18.853685"
"2027102"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 22:04:53.189387"	"2017-02-04 22:04:53.189387"
"2022537"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 17:53:08.865506"	"2017-02-04 17:53:08.865506"
"2022527"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 17:52:47.841084"	"2017-02-04 17:52:47.841084"
"2022416"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 17:48:00.648267"	"2017-02-04 17:48:00.648267"
"2022411"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 17:47:56.155660"	"2017-02-04 17:47:56.155660"
"2022351"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 17:44:36.677859"	"2017-02-04 17:44:36.677859"
"2022350"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 17:44:32.576863"	"2017-02-04 17:44:32.576863"
"2022277"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 17:41:28.915990"	"2017-02-04 17:41:28.915990"
"2022273"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 17:41:24.418054"	"2017-02-04 17:41:24.418054"
"2022139"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 17:35:17.744702"	"2017-02-04 17:35:17.744702"
"2022134"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 17:34:59.219720"	"2017-02-04 17:34:59.219720"
"2021945"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 17:27:01.585660"	"2017-02-04 17:27:01.585660"
"2021937"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 17:26:38.661934"	"2017-02-04 17:26:38.661934"
"2021823"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 17:21:35.743603"	"2017-02-04 17:21:35.743603"
"2021822"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 17:21:30.913711"	"2017-02-04 17:21:30.913711"
"2021724"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 17:16:48.540470"	"2017-02-04 17:16:48.540470"
"2021720"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 17:16:44.689997"	"2017-02-04 17:16:44.689997"
"2021663"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 17:14:31.855465"	"2017-02-04 17:14:31.855465"
"2021652"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 17:14:08.533707"	"2017-02-04 17:14:08.533707"
"2021410"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 17:03:14.271320"	"2017-02-04 17:03:14.271320"
"2021392"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 17:02:27.018102"	"2017-02-04 17:02:27.018102"
"2021097"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 16:49:57.748548"	"2017-02-04 16:49:57.748548"
"2021093"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 16:49:52.880153"	"2017-02-04 16:49:52.880153"
"2020758"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 16:36:06.043472"	"2017-02-04 16:36:06.043472"
"2020738"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-04 16:35:31.444989"	"2017-02-04 16:35:31.444989"
"2020723"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 16:34:55.981380"	"2017-02-04 16:34:55.981380"
"2020681"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 16:33:14.798408"	"2017-02-04 16:33:14.798408"
"2020385"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-04 16:15:47.412896"	"2017-02-04 16:15:47.412896"
"2020383"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 16:15:43.342259"	"2017-02-04 16:15:43.342259"
"2020279"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-04 16:11:33.520467"	"2017-02-04 16:11:33.520467"
"2020272"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 16:11:28.827861"	"2017-02-04 16:11:28.827861"
"2019770"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-04 15:44:56.390726"	"2017-02-04 15:44:56.390726"
"2019767"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 15:44:52.390851"	"2017-02-04 15:44:52.390851"
"2019453"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-04 15:27:06.732608"	"2017-02-04 15:27:06.732608"
"2019418"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 15:25:12.937845"	"2017-02-04 15:25:12.937845"
"2019407"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 15:24:39.009401"	"2017-02-04 15:24:39.009401"
"2019325"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 15:20:37.420684"	"2017-02-04 15:20:37.420684"
"2019324"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 15:20:33.397334"	"2017-02-04 15:20:33.397334"
"2019270"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 15:18:04.578781"	"2017-02-04 15:18:04.578781"
"2019265"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 15:17:50.844373"	"2017-02-04 15:17:50.844373"
"2019209"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 15:14:37.391043"	"2017-02-04 15:14:37.391043"
"2019208"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 15:14:32.662153"	"2017-02-04 15:14:32.662153"
"2019116"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 15:09:56.150539"	"2017-02-04 15:09:56.150539"
"2019114"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 15:09:39.161071"	"2017-02-04 15:09:39.161071"
"2019012"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 15:05:23.522496"	"2017-02-04 15:05:23.522496"
"2019006"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 15:05:05.565484"	"2017-02-04 15:05:05.565484"
"2018956"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 15:02:50.221008"	"2017-02-04 15:02:50.221008"
"2018954"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 15:02:36.849296"	"2017-02-04 15:02:36.849296"
"2018870"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 14:58:12.181017"	"2017-02-04 14:58:12.181017"
"2018865"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 14:57:43.218621"	"2017-02-04 14:57:43.218621"
"2018825"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 14:55:05.198437"	"2017-02-04 14:55:05.198437"
"2018808"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 14:54:27.111927"	"2017-02-04 14:54:27.111927"
"2018671"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 14:46:06.895756"	"2017-02-04 14:46:06.895756"
"2018669"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 14:46:00.686779"	"2017-02-04 14:46:00.686779"
"2018562"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 14:39:58.164807"	"2017-02-04 14:39:58.164807"
"2018551"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 14:39:20.284548"	"2017-02-04 14:39:20.284548"
"2018385"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 14:30:41.224723"	"2017-02-04 14:30:41.224723"
"2018382"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 14:30:36.853274"	"2017-02-04 14:30:36.853274"
"2018287"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 14:24:17.912115"	"2017-02-04 14:24:17.912115"
"2018280"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 14:23:54.438055"	"2017-02-04 14:23:54.438055"
"2011144"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-04 06:12:36.769152"	"2017-02-04 06:12:36.769152"
"2009556"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-04 04:36:59.616557"	"2017-02-04 04:36:59.616557"
"2008257"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-04 03:31:34.166519"	"2017-02-04 03:31:34.166519"
"2008229"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 03:30:12.685240"	"2017-02-04 03:30:12.685240"
"2008166"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-04 03:29:59.958081"	"2017-02-04 03:29:59.958081"
"2007920"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-04 03:28:14.982936"	"2017-02-04 03:28:14.982936"
"2007894"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 03:26:59.987598"	"2017-02-04 03:26:59.987598"
"2007817"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-04 03:24:42.028122"	"2017-02-04 03:24:42.028122"
"2007508"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-04 03:22:27.123705"	"2017-02-04 03:22:27.123705"
"2007200"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-04 03:17:24.336414"	"2017-02-04 03:17:24.336414"
"2007188"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 03:16:59.921255"	"2017-02-04 03:16:59.921255"
"2006985"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-04 03:07:45.267655"	"2017-02-04 03:07:45.267655"
"2006254"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-04 02:51:56.156201"	"2017-02-04 02:51:56.156201"
"2006245"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 02:51:17.861007"	"2017-02-04 02:51:17.861007"
"2006152"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-04 02:45:28.446724"	"2017-02-04 02:45:28.446724"
"2006148"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 02:45:23.682732"	"2017-02-04 02:45:23.682732"
"2006074"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-04 02:42:00.071085"	"2017-02-04 02:42:00.071085"
"2006073"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 02:41:55.670949"	"2017-02-04 02:41:55.670949"
"2006008"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-04 02:37:52.086478"	"2017-02-04 02:37:52.086478"
"2006002"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 02:37:26.073828"	"2017-02-04 02:37:26.073828"
"2005893"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-04 02:33:37.145127"	"2017-02-04 02:33:37.145127"
"2005465"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-04 02:26:44.310188"	"2017-02-04 02:26:44.310188"
"2005196"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-04 02:23:26.781728"	"2017-02-04 02:23:26.781728"
"2005189"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 02:23:01.792924"	"2017-02-04 02:23:01.792924"
"2005040"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-04 02:14:04.621214"	"2017-02-04 02:14:04.621214"
"2005030"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-02-04 02:13:23.696403"	"2017-02-04 02:13:23.696403"
"2002967"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-04 00:04:34.457568"	"2017-02-04 00:04:34.457568"
"1996871"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-03 16:57:49.268920"	"2017-02-03 16:57:49.268920"
"1996621"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-03 16:40:22.463757"	"2017-02-03 16:40:22.463757"
"1995891"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-03 16:00:18.804843"	"2017-02-03 16:00:18.804843"
"1993013"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-03 12:56:38.667738"	"2017-02-03 12:56:38.667738"
"1985338"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-03 04:19:07.101262"	"2017-02-03 04:19:07.101262"
"1984503"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-03 03:34:12.598971"	"2017-02-03 03:34:12.598971"
"1983364"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-03 02:44:37.763337"	"2017-02-03 02:44:37.763337"
"1982940"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-03 02:37:06.499322"	"2017-02-03 02:37:06.499322"
"1982500"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-03 02:29:59.153368"	"2017-02-03 02:29:59.153368"
"1960286"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-01 22:49:37.307107"	"2017-02-01 22:49:37.307107"
"1958031"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-01 20:14:53.549056"	"2017-02-01 20:14:53.549056"
"1957544"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-01 19:36:23.347409"	"2017-02-01 19:36:23.347409"
"1954145"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-01 15:13:48.199295"	"2017-02-01 15:13:48.199295"
"1952079"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-01 12:40:08.339800"	"2017-02-01 12:40:08.339800"
"1951871"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-01 12:26:32.333384"	"2017-02-01 12:26:32.333384"
"1951734"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-01 12:17:18.124401"	"2017-02-01 12:17:18.124401"
"1945610"	"switch"	"switch.kitchen_light"	"off"	        "2017-02-01 03:55:02.691715"	"2017-02-01 03:55:02.691715"
"1942504"	"switch"	"switch.kitchen_light"	"on"	        "2017-02-01 00:17:53.657317"	"2017-02-01 00:17:53.657317"
"1941204"	"switch"	"switch.kitchen_light"	"unavailable"	"2017-01-31 22:50:45.061952"	"2017-01-31 22:50:45.061952"
"1940428"	"switch"	"switch.kitchen_light"	"on"	        "2017-01-31 21:58:27.712743"	"2017-01-31 21:58:27.712743"
"1935800"	"switch"	"switch.kitchen_light"	"off"	        "2017-01-31 16:00:34.823026"	"2017-01-31 16:00:34.823026"
"1932813"	"switch"	"switch.kitchen_light"	"on"	        "2017-01-31 12:41:43.594541"	"2017-01-31 12:41:43.594541"
"1932468"	"switch"	"switch.kitchen_light"	"off"	        "2017-01-31 12:23:57.378706"	"2017-01-31 12:23:57.378706"
"1932301"	"switch"	"switch.kitchen_light"	"on"	        "2017-01-31 12:15:33.084774"	"2017-01-31 12:15:33.084774"
"1924224"	"switch"	"switch.kitchen_light"	"off"	        "2017-01-31 03:09:50.973847"	"2017-01-31 03:09:50.973847"
"1920918"	"switch"	"switch.kitchen_light"	"on"	        "2017-01-30 23:42:03.226963"	"2017-01-30 23:42:03.226963"
"1920410"	"switch"	"switch.kitchen_light"	"off"	        "2017-01-30 23:06:28.791977"	"2017-01-30 23:06:28.791977"
"1920144"	"switch"	"switch.kitchen_light"	"on"	        "2017-01-30 22:49:08.006121"	"2017-01-30 22:49:08.006121"
"1913772"	"switch"	"switch.kitchen_light"	"off"	        "2017-01-30 15:43:54.111810"	"2017-01-30 15:43:54.111810"
"1911146"	"switch"	"switch.kitchen_light"	"on"	        "2017-01-30 13:08:33.344307"	"2017-01-30 13:08:33.344307"
"1910466"	"switch"	"switch.kitchen_light"	"off"	        "2017-01-30 12:28:46.617866"	"2017-01-30 12:28:46.617866"
"1910340"	"switch"	"switch.kitchen_light"	"on"	        "2017-01-30 12:22:14.208272"	"2017-01-30 12:22:14.208272"
"1910168"	"switch"	"switch.kitchen_light"	"off"	        "2017-01-30 12:12:24.260358"	"2017-01-30 12:12:24.260358"
"1910147"	"switch"	"switch.kitchen_light"	"on"	        "2017-01-30 12:11:28.211823"	"2017-01-30 12:11:28.211823"
"1903159"	"switch"	"switch.kitchen_light"	"off"	        "2017-01-30 04:30:03.694988"	"2017-01-30 04:30:03.694988"
"1897493"	"switch"	"switch.kitchen_light"	"on"	        "2017-01-29 22:36:39.175980"	"2017-01-29 22:36:39.175980"
"1892728"	"switch"	"switch.kitchen_light"	"off"	        "2017-01-29 17:46:13.508492"	"2017-01-29 17:46:13.508492"
"1891790"	"switch"	"switch.kitchen_light"	"on"	        "2017-01-29 16:48:40.055292"	"2017-01-29 16:48:40.055292"
"1882391"	"switch"	"switch.kitchen_light"	"off"	        "2017-01-29 06:58:05.401376"	"2017-01-29 06:58:05.401376"
"1875979"	"switch"	"switch.kitchen_light"	"on"	        "2017-01-29 00:16:09.001420"	"2017-01-29 00:16:09.001420"
"1875968"	"switch"	"switch.kitchen_light"	"off"	        "2017-01-29 00:15:41.384670"	"2017-01-29 00:15:41.384670"
"1875818"	"switch"	"switch.kitchen_light"	"on"	        "2017-01-29 00:08:24.336800"	"2017-01-29 00:08:24.336800"
"1874535"	"switch"	"switch.kitchen_light"	"off"	        "2017-01-28 22:47:56.306634"	"2017-01-28 22:47:56.306634"
"1872423"	"switch"	"switch.kitchen_light"	"on"	        "2017-01-28 20:25:42.859073"	"2017-01-28 20:25:42.859073"
"1871336"	"switch"	"switch.kitchen_light"	"on"	        "2017-01-28 19:09:15.257888"	"2017-01-28 19:09:15.257888"
"1871050"	"switch"	"switch.kitchen_light"	"off"	        "2017-01-28 18:45:19.342667"	"2017-01-28 18:45:19.342667"
"1869444"	"switch"	"switch.kitchen_light"	"on"	        "2017-01-28 16:29:37.420183"	"2017-01-28 16:29:37.420183"
"1861414"	"switch"	"switch.kitchen_light"	"off"	        "2017-01-28 05:13:12.701974"	"2017-01-28 05:13:12.701974"

I am seeing problems where wink and HA just aren’t staying in synch with each other at all. I am on 0.37.1. I just turned off my den overhead light in HA. HA shows the light as off, but wink shows it as on. The light is on. In my configuration, I use Wink as my primary hub for my devices. HA connects to it and tells it what to do from an automation perspective. I use Alexa with it as well, but Alexa also talks to wink not HA. I am not using the emulated hue bridge at all. It’s not even in my config file. I have restarted HA several times since I did the upgrade and have rebooted it at lease once as well.

Are you seeing any errors in your logs? Any chance you are using lutron switches?

No lutron switches. All GE Smart Switches. The two I have been focusing on are dimmer switches. One of the errors below seems to be related to the garage door. I’m not sure if that’s a symptom of the same thing or not.

17-02-04 19:56:52 homeassistant.core: Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/hass/lib/python3.4/site-packages/homeassistant/core.py", line 1059, in execute_service
    service_handler.func(service_call)
  File "/srv/hass/lib/python3.4/site-packages/homeassistant/components/cover/__init__.py", line 145, in handle_cover_service
    getattr(cover, method['method'])(**params)
  File "/srv/hass/lib/python3.4/site-packages/homeassistant/components/cover/wink.py", line 33, in close_cover
    self.wink.set_state(0)
  File "/home/hass/.homeassistant/deps/pywink/devices/standard/__init__.py", line 180, in set_state
    response = self.api_interface.set_device_state(self, values)
  File "/home/hass/.homeassistant/deps/pywink/api.py", line 32, in set_device_state
    _id = device.device_id()
  File "/home/hass/.homeassistant/deps/pywink/devices/standard/__init__.py", line 172, in device_id
    return self.json_state.get('garage_door_id', self.name())
AttributeError: 'NoneType' object has no attribute 'get'


17-02-04 20:33:21 homeassistant.components.wink: Error in pubnub JSON for Unknown Device hub polling API for current state
17-02-04 20:33:22 pubnub: take message interrupted: 'NoneType' object has no attribute 'loop'
1

:thumbsup: awesome, that’s the error I was hoping for. That is fixed in dev.

Great,
Want a few other strange things.

The webpage keeps telling me my hue hub is good (has a check mark). My hue hub has been unplugged for about a week and I don’t have any references to it in any of my yaml files. But it was doing that before the upgrade too.

Also, with another post, the web page won’t show the correct current version, but if I run the command from the command line, I get the right version. I’m guessing there is a file out there that isn’t getting cleaned up or something…

@turboc , have you ever used Wink@home? I’m curious what you’d see regarding the Hue Hub if you look there.

I often use it for troubleshooting Wink and used it extensively when working with @w1ll1am23 on testing.

https://winkathome.net/Home.aspx

it seemed to be having more problems than HA and the wink app combined.

Really? I just went there now and it is detecting everything accurately on my system. All states and devices were current and correct. Maybe this is pointing to an issue?

maybe, it was just really slow last night when I was trying to figure out what was going on.

I’m curious if the Hue Hub shows up on your setup in wink@home. I had a ‘stuck state’ once that wouldn’t change and once I fixed it at wink@home, everything else ‘caught up’.

I don’t use a Hue Hub anymore. I unplugged it.