-
Notifications
You must be signed in to change notification settings - Fork 24
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
Gateway fails to start #38
Comments
I just struggled through getting this running on a pi myself. I tried both the systemd approach, and the docker approach - I eventually got docker working. may be an obvious question, but you list your file with the name only starting here, as I've found that some errors I had getting things rolling weren't the most helpful. just realized you mentioned you were trying to avoid docker if possible, any particular reason? I have this running with docker on a pi 3B+ and it's pretty fantastic, once you get it running. :) if I can help at all, let me know. I literally just got it running a couple of days ago. |
@jeffrutland appreciate the reply, and glad I'm not the only one who ran into troubles. RE: the config.config.yaml - this was a typo. The absolute path to the config.yaml file is Step 4 has you run this command:
Edit: On my avoidance of Docker. Everyone says its simple, but when I read tutorials, I just don't get it for some reason. In my case, I have a Pi3B+ that is already running a Conbee II, so I don't want to put a 2nd instance of HA on it just to run the WyzeSense stuff. If you have any Docker advice, I'm all ears! |
I originally had issues getting it setup in Docker, so I switched to Linux Systemd as well. But, I then had issues getting that setup, too. Here is how I currently have it working: I have the repo cloned to File
|
@ha14937 Also, based on your screenshot above, it appears that you do not yet have the @raetha I really think we need to create default config files on first startup (or at least copy the samples) if this isn't something that is already happening with the latest code. I've been away for a few weeks and haven't brushed up on the recent changes. |
yes, the majority of my issues boiled down to missing / incorrect configuration. I was actually thinking of branching and creating a PR with better error reporting when the config files are the root cause of issues. :) now that it’s running for me, it’s a great addition to my home assistant setup. I’m relatively new to DIY smart home, but have been in IT for quite awhile. I love this new adventure while being stuck at home, and the Wyze sensors are a great, cheap addition with a pi! |
@dale3h thanks for the detailed reply. Have not got it working yet - but I think I'm closer. I have next to zero linux experience - so as I went thru the steps I took, I noted them all down, along with the CLI responses, etc. Sorry for the wall of text!
In my wyzesense2mqtt.service file, the ExecStart line is this - so why is it different in the CLI error? Could this be my issue? |
@ha14937 It looks like you've done everything 100% the same as me, so I am not sure which error is kicking back. Can you open a separate SSH session to the server and run this to view the log output while starting the service? sudo journalctl -fu wyzesense2mqtt This will open the logger journal and follow all log messages moving forward. Here's a breakdown of the command:
(The manpage for The following line is just saying that the
|
@ha14937 Were you ever able to get this up and running? |
@dale3h Hey Dale - thanks for following up. I've been on vacation so have not messed with it for a bit. I have time today and plan on giving it another shot. Will report back! |
ok @dale3h here is what I have done: To ensure I was starting from scratch, I went back and deleted ALL wyzesense2mqtt dirs/files from this machine, rebooted, and went through each step I outlined above. When I check the status, I get:
Then, per your advice, I opened a 2nd SSH session and executed the
|
@clandestine-avocado The logs are saying that the Python module
|
@dale3h - I wasn't sure, so I just went back and pip'd the requirements.txt - and it looks like all the reqs were there already. I feel like I am so close, thanks for sticking with me!
|
@clandestine-avocado It looks like you've installed the requirements to the
This will install the requirements into the python that is available to the root user. Edit: Forgot to include |
You're the man - that did it - no errors! It added the one test sensor I placed in my wyzesense2mqtt config to HA - however it's not reacting to motion (its a PIR). |
Awesome! I am really glad to hear that it finally launched without any errors! Can you try removing it and re-pairing it to see if that does the trick? It shouldn't need to be paired again, but sometimes things get a little quirky. |
@dale3h - I'm up and running! I had to launch the bridge tool using sudo ( Thanks again for your time. I think, when I get some time, I will try to help update the documentation for the Systemd method. |
I am having the same problem and I tried all the steps above. this is my log output. Oct 31 03:12:20 ubuntuserv systemd[1]: Starting wyzesense2mqtt... Any help is appreciated. |
@clandestine-avocado, @jeffrutland , @dale3h the devel branch now has fixes for much of what you all chatted about. It will now start with missing sensors.yaml and logging.yaml files. It will also automatically copy the sample config.yaml file, but things won't work until at least the hostname is added to that. I also updated the readme with all the notes I could find about missing steps or bad commands. Please take a look, and maybe test out the devel branch some to help make sure it's good. Hoping to move the changes to the master branch this weekend. @RandomPotato893 in your case the logs show that it can't find your bridge device. Can you confirm /dev/hidraw0 exists and that the bridge device is plugged in and detected by the kernel? The auto setting also may not work if you'd create a udev rule to change the device name. In that case, please hard code your device path into the config.yaml file. If neither of those ideas solve help get you going, can you create a new to track this and we'll help out as we can? |
Describe the Bug
Apologies in advance if this is not a bug - but I'm stuck here. I'm getting a "Failed to start WyzeSense to MQTT Gateway" error when I start, then check the status of the service. Was really hoping to get this working, as attaching the bridge to the VM that runs my HA instance has become unstable.
So I am trying to get this set up on a spare Pi 3B+ and avoid Docker if possible so the Linux Systemd instructions looked like exactly what I need.
Steps To Reproduce
I followed the Linux Systemd instructions - with the only difference being the location I stored the files (/home/pi/wyzesense2mqtt/wyzesense2mqtt)
I did mess up a few times, but deleted everything and started over - and the files all appear to be in the right places now.
Expected Behavior
I expected the service to start.
Desktop
Smartphone
N/A
Additional Context
Here is the result of the check status command in the CLI:
Here is my wyzesense2mqtt.service file, that was copied over to
/etc/systemd/system/
Here is my config file at the absolute path of
/home/pi/wyzesense2mqtt/wyzesense2mqtt/config.config.yaml
:The text was updated successfully, but these errors were encountered: