-
Notifications
You must be signed in to change notification settings - Fork 9
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
Detailed instructions for Home Assistant #14
Comments
All Ive been using app daemon for is a place to leave this script running. It doesn't actually interact with home assistant at all. I'd love to make a proper integration for home assistant sometime, that would probably use this script as a major component Here's what my apps folder looks like. This repo has diverged from the script I've got in there at the moment, I might have a look to see if there's a way to run a script from pip in home assistant somehow. |
Hi, I put this files in appdaemon but how can runit ? |
Edit the meshtastic_mqtt.py script, and import the hassapi stuff and change the class definition:
Then down the bottom comment out this bit:
Finally, restart AppDaemon and watch the Log tab as it starts up, you should eventually see a message saying meshtastic-mqtt has started:
|
EDIT THIS IS WRONG... SE BELOW Oops yea you need to add this to apps.yaml:
|
I got that wrong. Sorry the version mismatch has me behind a little. Your apps.yaml should be
|
Getting there! Remove the |
Ok I really need to do some work here I guess. Below is my entire script that is running on my AppDaemon. It's a bit different to what is in this repo but it is working on my one:
|
Oh yea the protobufs have changed too.. I will create a seperate repo for this and push up my current working files. Its diverged too much. Stand by... |
Great work! |
That's working! You can ignore all the warnings there, it's just ignoring the protobufs as it should. If you connect a node to your mqtt you should now get some data out of it |
it should create a meshtastic/ topic tree. What do you see on the AppDaemon Log tab now? Is the broker and username and password set properly? I've just tweaked the main script on the repo to make the mqtt credentials a bit easier to set, they were hard coded. |
Should be fixed now |
Does your mqtt broker require credentials? If it doesn't, you'll need to comment out the line |
Yes my mqtt require credentials. |
What does your whole script look like? Are you defining |
Ohh sorry man my python is not great. Change the username_pw_set to
|
As packets are published by your gateway node, meshtastic-mqtt will translate them. That Log page should start showing some traffic if the mqtt is connected up properly |
This ? |
Yep that's it! That is showing that the packets are still encrypted. Most likely you'll need to upgrade the firmware on your gateway node to at least 1.2.54. Support for on-device decryption was added part way through 1.2.53 |
Which one is connected to mqtt? And what firmware version is it running? Setting a blank encryption key isn't enough for this particular task |
Is 1.2.55 |
What is the output of |
Where is that documentation from? It's the wrong way around... that needs to be false. You can configure it with the cli via the network |
Really great! I need to reboot the node after change settings ? |
I don't think so, but it won't hurt to reboot |
i'm restarting Home Assistant |
try subscribing to /mesh/# instead |
There isn't currently support for text messages. Ill add it now |
Ok great! |
I've updated the script here. That should work a bit better |
Just tweaked the script again, could you give it another go? |
Sure |
Hi, could you do a step by step instruction starting from the very beginning? Following all steps you've done so far is kind of hard |
Hi,
Could you give some more precise instructions on how to use this with Home Assistant (and AppDaemon). Do all the scripts need to be in AppDaemon or only the main meshtastic-mqtt.py? What to put in apps.yaml? What exactly does "on appdaemon remove the argument here" mean ? How do you get a device/entities that you can interact with in Home Assistant ?
The text was updated successfully, but these errors were encountered: