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

Socket error on client wyzesense2mqtt, disconnecting #42

Open
SamuelCarson opened this issue Sep 14, 2020 · 2 comments
Open

Socket error on client wyzesense2mqtt, disconnecting #42

SamuelCarson opened this issue Sep 14, 2020 · 2 comments

Comments

@SamuelCarson
Copy link

I had wyzesense2mqtt working on bare metal raspbian. For various reasons I need to switch to docker.
Installed Products
Docker version 19.03.12, build 48a6621
docker-compose version 1.27.2, build unknown
and latest raetha/wyzesense2mqtt

Container starts and attempts to connnect to mqtt.
Mqtt logs show - (https://github.com/raetha/wyzesense2mqtt/files/5220180/wyzesense2mqtt-mqtt.log)
wyzesense2mqtt.logs show
(https://github.com/raetha/wyzesense2mqtt/files/5220179/wyzesense2mqtt.log)

Mqtt credentials verified.

I don't understand the problem.

@AK5nowman
Copy link
Collaborator

Your wyzesense2mqtt.log shows you that it isn't finding the USB device. I don't really know much about docker but are you attaching the dongle to it correctly?

@raetha
Copy link
Owner

raetha commented Nov 28, 2020

@SamuelCarson, did you make sure to pass the /dev/hidraw0 device to the Docker container? I think my example shows how to do it in Compose. Also, if you used udev to rename the Wyze dongle device, you not only need to pass the renamed device to Docker, but also will likely need to hard code the value in the config.yaml file. I did some testing with friendly udev names and it never went well unless I hard coded everything.

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

3 participants