kevinvincent / ha-wyzesense

A Home Assistant Component to interface with the WYZE Sense hub and sensor system
368 stars 97 forks source link

Error while setting up wyzesense platform for binary_sensor #166

Open toddtmw opened 3 years ago

toddtmw commented 3 years ago

Hi. I had everything working great with this integration on a Pi 4 using the standard HA install. I was playing around with possibly moving to Ubuntu from an SSD. I popped out the SSD and installed Raspbian on another SSD to get it set up so it would boot from Ubuntu on the USB3 port. I got this working, but haven't had time to play with it further and wanted to get my Home Automation back in place until I have more time. So I turned it off and unplugged the USB and swapped back to my standard HA install SD card and plugged in the Zwave stick and the Wyze base into the same USB ports they were in before. HA boots fine and everything seems to be working except for WyzeSense.

I get the error in the title and none of the sensors work.

I tried to look for the device and it doesn't seem to be returning anything:

➜  /workspace dmesg | grep hidraw
[    0.442268] hidraw: raw HID events driver (C) Jiri Kosina

I also tried doing this:

Create / Modify the file /etc/udev/rules.d/99-com.rules on your machine and insert KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0666"
Restart your machine

When I go to do this, there is no udev directory in the /etc folder so I create it along with all the others and then create the 99-com.rules, but after restarting the udev directory is gone from the /etc folder.

I turned on debug and pasted the log here: https://pastebin.com/EmqQS9Ck

Would appreciate any advice anyone could provide.

Thanks. Todd

mccarpat commented 3 years ago

dmesg | grep hidraw yielded the same for me a moment ago, after an unexpected HA NUC box restart. I simply unplugged the USB and plugged it back in, and ran the command again to see that the device had been plugged in. I restarted the HA box and it all works again.

toddtmw commented 3 years ago

Thank you for the reply. I did something similar to get it working. I powered down the Pi, unplugged the Wyze bridge, powered up the Pi waited for HA to load. Plugged in the Wyze bridge and then restarted HA.

While this works, it is not a great solution to have to do this every time the Pi reboots. I don't think it used to do this on an earlier version of HA. It would be awesome if someone could help figure out how to allow the Wyze bridge to work at boot up again.

Thanks!