Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wyze sense stopped working after latest update - Fixed #201

Open
Jugrnot opened this issue Jan 17, 2021 · 0 comments
Open

Wyze sense stopped working after latest update - Fixed #201

Jugrnot opened this issue Jan 17, 2021 · 0 comments

Comments

@Jugrnot
Copy link

Jugrnot commented Jan 17, 2021

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:

  • platform: wyzesense
    device: auto

Hopefully this helps someone out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant