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
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
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.
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.
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
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…
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?
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’.