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

MQTT and matrix/riot instant messaging gateway #169

Closed
rradar opened this issue Jun 11, 2020 · 14 comments
Closed

MQTT and matrix/riot instant messaging gateway #169

rradar opened this issue Jun 11, 2020 · 14 comments
Labels
enhancement New feature or request

Comments

@rradar
Copy link
Contributor

rradar commented Jun 11, 2020

It would be a great communication channel. If integrated in Home Assistant it could be used with notify: and take immediately advantage of all powers home assistant offers.

For example I could text weather and home assistant can be configured (conversation/intents) to actually reply with the actual weather forecast information I set. ⛅

If I'm right the linux application is written in python already (just like home assistant) so the work is maybe already half done for this 😁

@mehuman
Copy link
Contributor

mehuman commented Jun 12, 2020

Hi fellow HA user,
I've brought this up on the forums and have, at least I think, an interesting use case in smarthomeing a small RV and using meshtastic as a source of communication when in the backcountry.

MQTT support is planned link which should get Meshtastic and HA talking. Something beyond that might be out of scope for a project this new, unless someone takes the initiative to code it. I was dreaming of an ESPHome/Meshtastic convergence so I can add modules to the device.

@geeksville
Copy link
Member

This issue has been mentioned on Meshtastic. There might be relevant details there:

https://meshtastic.discourse.group/t/home-assistant-integration/378/4

@geeksville
Copy link
Member

(Not exactly home assistant - but I'm going to repurpose this bug for tracking MQTT support)

@geeksville geeksville added the enhancement New feature or request label Jun 12, 2020
@geeksville geeksville changed the title Home Assistant Integration MQTT support (Home Assistant Integration) Jun 12, 2020
@rradar
Copy link
Contributor Author

rradar commented Jun 12, 2020

Despite MQTT (20 year old protocol by now) get's supported I would really like to see a real/native support in home assistant.

I finally turned off my mqtt broker last year and I could not think of a happier moment in my 'technical career'. It just sucks so much time to get server/clients speaking proper to each other and debugging mqtt in general is just a lot of a mess

@geeksville
Copy link
Member

geeksville commented Jun 12, 2020 via email

@slavino
Copy link
Contributor

slavino commented Jun 12, 2020

Hardwiring to any solution doesn't put this project any further. Providing a set of adapters is a much better approach as it literally opens gates for any integrator.

  • Easy to use REST API can open gates even to cheap hosting of PHP based solutions.
  • Simple MQTT integration can let it grow even further if there will be well maintained versioning of messages (because I believe it will pass JSON strings back and forth). And setting up MQTT broker on RaspberryPi is literally question of few minutes.

So rather than doing proprietary binding to HASS I do suggest to keep it simple and develop a DEMO for cheap and time-wise affordable solutions/integrations. To setup HASS just to tryout Meshtastic capablities in terms of interaction with server backend seems a bit overkill to me...

@geeksville
Copy link
Member

possibly use protobufs as an alternative MQTT encoding, which would allow sending tiny ints rather than long topic strings. Mapping from those ints to "standard" MQTT strings would happen automatically inside the node and the gateway.

Try to move as many of the existing services as possible (position and text messaging) to be built on top of this micro-MQTT implementation.

@geeksville
Copy link
Member

This issue has been mentioned on Meshtastic. There might be relevant details there:

https://meshtastic.discourse.group/t/rak815-can-connect-with-thingsboard-platform-using-lora-gateway/721/6

@rradar
Copy link
Contributor Author

rradar commented Dec 13, 2020

I'm not a developer but from what I can tell there is a python implementation for meshtastic (Python 97.5%) and there is the Home Assistant Integrations which are a 100% Python, maybe most of the work is actually already done? 🤔

@geeksville
Copy link
Member

@geeksville geeksville changed the title MQTT support (Home Assistant Integration) MQTT and matrix/riot instant messaging gateway Mar 28, 2021
@geeksville
Copy link
Member

This issue has been mentioned on Meshtastic. There might be relevant details there:

https://meshtastic.discourse.group/t/mqtt-roadmap-and-release/3232/2

@samuk
Copy link

samuk commented Nov 5, 2021

Any updates on this one, would like to play with some sensors.

@sachaw sachaw closed this as completed Dec 12, 2021
@samuk
Copy link

samuk commented Dec 13, 2021

Great to see this happening. Any idea when it will be in a release?

@sachaw
Copy link
Member

sachaw commented Dec 13, 2021

riot isn't implemented yet, still in 'feature request' stage, but mqtt can be used: https://meshtastic.org/docs/software/settings/mqtt

rickmark pushed a commit to rickmark/meshtastic-firmware that referenced this issue Dec 26, 2024
* Update module_config.proto

Update Comments in module config

* Update config.proto

* Update config.proto

* Update config.proto

* Update config.proto

* Update config.proto

* Update config.proto

* Update config.proto

* Update config.proto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants