I know this integration is not supported by HA, and is no longer maintained by Kevin, but for now I'm stuck using it until I can save a few pennies for a more robust and reliable solution.
After the recent update for the security patches, my integration stopped working entirely and I took to the Home Assistant discord community for some help and someone promptly found the fix. This component is calling a piece of hardware that no longer exists, apparently. The following output was found in the HA Log file:
2021-01-16 23:20:46 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up wyzesense platform for binary_sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 199, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, *self.kwargs)
File "/config/custom_components/wyzesense/binary_sensor.py", line 116, in setup_platform
ws = beginConn()
File "", line 2, in beginConn
File "/usr/local/lib/python3.8/site-packages/retry/api.py", line 73, in retry_decorator
return __retry_internal(partial(f, args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter,
File "/usr/local/lib/python3.8/site-packages/retry/api.py", line 33, in retry_internal
return f()
File "/config/custom_components/wyzesense/binary_sensor.py", line 114, in beginConn
return Open(config[CONF_DEVICE], on_event)
File "/config/custom_components/wyzesense/wyzesense_custom.py", line 565, in Open
return Dongle(device, event_handler)
File "/config/custom_components/wyzesense/wyzesense_custom.py", line 299, in init__
self._Start()
File "/config/custom_components/wyzesense/wyzesense_custom.py", line 496, in _Start
self._Inquiry()
File "/config/custom_components/wyzesense/wyzesense_custom.py", line 402, in _Inquiry
resp = self._DoSimpleCommand(Packet.Inquiry())
File "/config/custom_components/wyzesense/wyzesense_custom.py", line 397, in _DoSimpleCommand
self._DoCommand(pkt, cmd_handler, timeout)
File "/config/custom_components/wyzesense/wyzesense_custom.py", line 383, in _DoCommand
self._SendPacket(pkt)
File "/config/custom_components/wyzesense/wyzesense_custom.py", line 333, in _SendPacket
pkt.Send(self.__fd)
File "/config/custom_components/wyzesense/wyzesense_custom.py", line 106, in Send
ss = os.write(fd, pkt)
BrokenPipeError: [Errno 32] Broken pipe
2021-01-16 23:20:46 WARNING (MainThread) [homeassistant.setup] Setup of input_number is taking over 10 seconds.
My configuration.yaml settings for sense were as follows:
binary_sensor:
platform: wyzesense
device: "/dev/hidraw1"
Updated that to this, saved and restarted HA:
binary_sensor:
I know this integration is not supported by HA, and is no longer maintained by Kevin, but for now I'm stuck using it until I can save a few pennies for a more robust and reliable solution.
After the recent update for the security patches, my integration stopped working entirely and I took to the Home Assistant discord community for some help and someone promptly found the fix. This component is calling a piece of hardware that no longer exists, apparently. The following output was found in the HA Log file:
2021-01-16 23:20:46 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up wyzesense platform for binary_sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 199, in _async_setup_platform await asyncio.shield(task) File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, *self.kwargs) File "/config/custom_components/wyzesense/binary_sensor.py", line 116, in setup_platform ws = beginConn() File "", line 2, in beginConn
File "/usr/local/lib/python3.8/site-packages/retry/api.py", line 73, in retry_decorator
return __retry_internal(partial(f, args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter,
File "/usr/local/lib/python3.8/site-packages/retry/api.py", line 33, in retry_internal
return f()
File "/config/custom_components/wyzesense/binary_sensor.py", line 114, in beginConn
return Open(config[CONF_DEVICE], on_event)
File "/config/custom_components/wyzesense/wyzesense_custom.py", line 565, in Open
return Dongle(device, event_handler)
File "/config/custom_components/wyzesense/wyzesense_custom.py", line 299, in init__
self._Start()
File "/config/custom_components/wyzesense/wyzesense_custom.py", line 496, in _Start
self._Inquiry()
File "/config/custom_components/wyzesense/wyzesense_custom.py", line 402, in _Inquiry
resp = self._DoSimpleCommand(Packet.Inquiry())
File "/config/custom_components/wyzesense/wyzesense_custom.py", line 397, in _DoSimpleCommand
self._DoCommand(pkt, cmd_handler, timeout)
File "/config/custom_components/wyzesense/wyzesense_custom.py", line 383, in _DoCommand
self._SendPacket(pkt)
File "/config/custom_components/wyzesense/wyzesense_custom.py", line 333, in _SendPacket
pkt.Send(self.__fd)
File "/config/custom_components/wyzesense/wyzesense_custom.py", line 106, in Send
ss = os.write(fd, pkt)
BrokenPipeError: [Errno 32] Broken pipe
2021-01-16 23:20:46 WARNING (MainThread) [homeassistant.setup] Setup of input_number is taking over 10 seconds.
My configuration.yaml settings for sense were as follows: binary_sensor:
Updated that to this, saved and restarted HA: binary_sensor:
Hopefully this helps someone out!