Seeing some strange behavior during the setup of this component and I’m unsure whether this is a user problem or an actual issue.
After installing the component via HACS but prior to a reboot, I was getting this error.
2019-09-04 15:38:08 ERROR (MainThread) [homeassistant.components.homeassistant] Platform error binary_sensor.wyzesense - No module named 'retry'
This prevented me from restarting HA via the UI. I added the binary sensor declaration to configuration.yaml and then restarted my VM. Upon reboot, I found this error in the logs.
2019-09-04 15:39:56 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up platform wyzesense
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
return fut.result()
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/homeassistant/.homeassistant/custom_components/wyzesense/binary_sensor.py", line 82, in setup_platform
ws = beginConn()
File "</srv/homeassistant/lib/python3.6/site-packages/decorator.py:decorator-gen-2>", line 2, in beginConn
File "/srv/homeassistant/lib/python3.6/site-packages/retry/api.py", line 74, in retry_decorator
logger)
File "/srv/homeassistant/lib/python3.6/site-packages/retry/api.py", line 33, in __retry_internal
return f()
File "/home/homeassistant/.homeassistant/custom_components/wyzesense/binary_sensor.py", line 80, in beginConn
return Open(config[CONF_DEVICE], on_event)
File "/home/homeassistant/.homeassistant/custom_components/wyzesense/wyzesense_custom.py", line 561, in Open
return Dongle(device, event_handler)
File "/home/homeassistant/.homeassistant/custom_components/wyzesense/wyzesense_custom.py", line 285, in __init__
self.__fd = os.open(device, os.O_RDWR | os.O_NONBLOCK)
PermissionError: [Errno 13] Permission denied: '/dev/hidraw1'
I have yet to associate any sensors with the bridge as I wanted to ensure I set up the component correctly before moving forward. Thoughts?
HA 0.98.3 running as a venv on an Ubuntu 18.04 VM via ESXi 6.0.