-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Missing Meshtastic requirement #6
Comments
Can you please report what home assistant version you are using? I'm aware of a dependency issue under certain conditions where the protobuf library that |
Hey! I installed the requirement by doing a manual exec into the homeassistant docker container and running a pip install of meshtastic. It all works! Im running Any plans for location parsing? And SNR/RSSI? This is a very cool project! Im familiar with python, so I could help you with this project. |
Looking at your code, this looks really nice! Having the ability to send messages to nodes is amazing! |
Great to hear that you did get it working. Then I suspect it might have been that issue, I did not yet have a more detailed look into when it exactly happens. pip dependency resolution issues seems to be rather hidden away by home assistant. I have locally a version with some more metrics exposed (node_hops_away, node_snr, node_last_heard among a few others). I should be able push those changes this weekend. Location parsing / integrating it into home assistants location concept (tracker) is kind of planned, but rather low on my priority list at the moment. If that is something you would be interest in, would be great if you can help with the project. I'm currently still focused on some foundational work to get reliable connection to nodes, the current meshtastic python client has some shortcomings (e.g. meshtastic/python#703, but also seems to be unable to recover after a broken connection). I'm currently working on an async meshtastic client that will replace |
As part of another dev setup, I came across this issue one again as well. With python 3.11 and homeassistant==2024.3.3, this can be reproduced:
Protobuf version that is conflicting with meshtastic is Note that manual installation of meshtastic dependency with pip will uninstall older protobuf version and install new What I know is that meshtastic python lib code |
Ive been playing around with the integration for the last day. I really like how integrated it is into the HA ecosystem, while not relying on MQTT. Ive been experiencing dropouts in the connection like you mentioned, however the diagnostic information around this is a bit limited. Sometimes HA logging shows the traceback from a broken pipe. However sometimes there is no log, but I see that no new data being added (eg Im running this integration against a RAK4631 connected via POE (ethernet). I assume one of the reasons for the broken pipe is when a different client makes a connection to the API (eg Meshtastic cli from a pc). I saw how you patched the Ill try set up a dev environment for properly debugging the integration as its currently running on my home "production" HA system. This has a lot of potential, especially if BLE connections are added. |
I made a mistake regarding my observation on the connection being dead without a log entry, it just seems like sometimes the uptime metric is delayed and the connection is intact. |
Good news, the protobuf compatibility issue as been addressed upstream in meshtastic/python@426795f and the required protobuf version has also been relaxed, so switching to the new version 2.5.5 will resolve compatibility issues with home assistant |
Great to hear! I see you added changes to the dev branch. Is there a simple way to switch to this branch in HACS? I tried using the URL https://github.com/broglep/homeassistant-meshtastic?ref=dev but it seems to stay on |
The first alpha version is now in main, with that this issues here regarding meshtastic requirement should be resolved. If not, please re-open. For non-issue related discussions I have enabled discussions on this repo. If you encounter bugs with the new version, feel free to report them, pretty sure that whole integration is still far from stable and I don't have this new version running yet for an extended period of time. But should be a bit more robust now as heartbeat mechanism is in place and I have spend quite some time to get dropped connection detection & reconnection handling working |
Unfortunately a new instance of the problem can occur:
|
meshtastic 2.5.5 depends on bleak 0.22.3 fixes: #6
so that we don't have to depend on meshtastic python package which comes with a lot more than we need, including dependencies. this will prevent future dependency conflict issues similar to #6
System Health details
..
Checklist
Describe the issue
Installing via hacs, it seems like it doesn't install the Meshtastic python package
Reproduction steps
1.aaa
2. aa
3.
...
Debug logs
Diagnostics dump
...
The text was updated successfully, but these errors were encountered: