Support for hiddev
Some devices, like a Synology NAS, mount the Wyze Bridge as a hiddev device because they don't contain the hidraw drivers. Would it be possible to support both hiddev and hidraw devices?
The library accepts a device path, which can be anything. Have you tried passing it the path to the "hiddev" device?
I tried it using --device, and here is what I get
[[/tmp/WyzeSensePy-master] # ./sample.py --device /dev/usb/hiddev0 -d -v
Openning wyzesense gateway ['/dev/usb/hiddev0']
DEBUG 2020-04-04 18:20:11,012 Start Inquiry...
DEBUG 2020-04-04 18:20:11,013 ===> Sending: Packet: Cmd=4327, Payload=<None>
DEBUG 2020-04-04 18:20:11,014 Sending: aa55430327016c
Traceback (most recent call last):
File "./sample.py", line 134, in
I did a quick look with my synology and it seems hiddev is not possible with this: hidraw reports more information than hiddev. With hiddev, those information will never gets to the code.
Thanks for a quick response - I am moving on to running it on Raspberry Pi.