-
-
Notifications
You must be signed in to change notification settings - Fork 8
Integration proxy for MeshSense #43
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
Comments
Can you elaborate a bit more about your use case of using this integration at the same time with MeshSense? So far, this integration only supports the web client http based api and not yet tcp or bluetooth interfaces that the other clients use. This proxying is still kind of experimental but would be doable to implement for tcp as well. I had a quick look at MeshSense, it actually does use the http based api and you are able to enter the proxy address: |
Thanks for your quick reply and analysis! Regarding your use case question: MeshSense gives in addition to your HA integration (which is really greaz and very useful) a very nice visualization of the mesh network. It allows easily to explose the area around you and gives even a bit of an indication to plan expanding the mesh, defing the device roles, etc. with your community. I have also tried to configure it similar to your description and failed as it got stuck in the configuring state ... I will check. Many thanks anyway for this great integration! |
Hi, Thanks for your work, this is very impressive, and useful ! The alternative ofc is to use a MQTT broker (I already have this use case, and a dedicated homeassistant integration) but this is not the topic of your work. Your integration is really promising, but for now, by using the tcp api, it broke some usages (like the official app, or the Meshsense one) - The proxy workaround just have to be more... versatile to overcome the downsides :) Again, thanks for your work ! |
I think the official android app only supports bluetooth, or this it also support TCP or the HTTP protocol? The actual solution would be that meshtastic firmware allows multiple connections, until that happens, we have to live with workarounds. Feel free to flag this issue upstream, I've not yet seen this happen (and you are by far not the only one facing that issue, see e.g. #29) Implementing bluetooth proxy would be interesting (and shouldn't be much extra work apart the potential bluetooth dongle / hardware issues that come with it), but did not yet have time yet to investigate. Supporting MQTT connection as forth way to connect to a gateway is also on the idea list for this integration but has suffers similar fate than bluetooth proxy I recently have invested that little spare time I have rather on the firmware side to get meshastic firmware (radio/mesh part thereof) working as a library for my ongoing & planned projects. |
Hi, The official app supports TCP, Serial, Bluetooth. I'm using TCP as this is pretty fast, my gateway is connected by wifi, and I can connect from everywhere with my VPN. For now I'll stay with the very incomplete (but working) Meshtastic MQTT integration, as I already have a broker. Btw, I too have worked with the firmware code (mostly on the RP2040 compatibility) and having a multi connection TCP API should not be a lot of work. But the limited amount if memory on most modules makes this feature a little risky. Regards, |
@broglep aa quick question if I may. Based on your response above, can the MeshSense map be visualised on HomeAssistant. I can see my configures nodes on the HA map but can I see a new node that has just appeared around me pop up on the map without it being one of mine. Sorry if this question is stupid. Am I doing something wrong? |
@TheMalkavien the new pre-release version is available at https://github.com/broglep/homeassistant-meshtastic/releases/tag/v0.6.0-dev2. You can also download it via HACS, select Redownload -> Need a different version and select the version. It now support TCP proxy as well, you can enable it in the options, would be great to get feedback if it works as desired. |
@KmanOz MeshSense is currently not compatible with this HomeAssistant integration. If you would like to see support, you can voice your desire on MeshSense project. If you have other questions, please head to Discussions and provide more details |
Actually sorry I might have worded that incorrectly. I meant can nodes be viewed on the HomeAssistant map just as you can see nodes on the map in MeshSense. Not really interested in Meshsense in HA |
Hi @broglep . Thanks for the update. Since last time, as I really think your integration have potential, I scripted a quick TCP proxy in Python, just to be sure the idea works. And it does, I use your integration with my own tcpproxy, and the official app (and the CLI that I use often) is working fine with it too. Now that you integrated this feature, I'll test it today and switch to it. Thanks again. |
Hi, your integrated TCP proxy is working fine, I'm using it with the default android app without any problems so far. Good job ! |
In my case the proxy is working fine when used from the android client, but a webclient or meshense is unable to connect throught it. The logs on HA side are not that helpfull : |
Checklist
Is your feature request related to a problem? Please describe.
It's not a problem, but would extend the use of the proxy function of the integration for use with the popular MeshSense application.
Describe the solution you'd like
As much as the integration allows to connect to the web client, it would be very useful to connect the MeshSense appliaction, which is based on the tcp connection
Describe alternatives you've considered
I did try to connect with MeshSense as described for the web client, but no connection could be astablished.
Additional context
MeshSense is an Open-source development of Affirmatech: https://affirmatech.com/meshsense
The text was updated successfully, but these errors were encountered: