mesh-api icon indicating copy to clipboard operation
mesh-api copied to clipboard

Home Assistance Integration issues

Open droidblastnz opened this issue 1 year ago • 12 comments

Thanks for all your hard work. Home Assistance wise https://mydomain.com:8123/api/conversation/process 405: Method Not Allowed but https://mydomain.com:8123 works as expected. Generated a token as per the instructions?

droidblastnz avatar Aug 26 '25 10:08 droidblastnz

Thanks for all your hard work. Home Assistance wise https://mydomain.com:8123/api/conversation/process 405: Method Not Allowed but https://mydomain.com:8123 works as expected. Generated a token as per the instructions?

Hello hello!

I'll be jumping back into this in a couple days for v0.6.0... I haven't noticed any issues on my end - but with the number of HA core updates coming out something might have happened.

Apologies - I've been out of town - and then jetlagged as all hell.

Let me review this and I'll follow-up soon - if you can provide any specific details or screenies describing exactly what you did - I'll get to the bottom of it. =)

mr-tbot avatar Sep 03 '25 06:09 mr-tbot

think this is expecting a post.....

home_assistant_channel_index - how do you set this (channel 1 in the config)

home_assistant_channel_index channel 1? AI - Welcome! Channel 1 is active, with 3 devices connected: Router, Laptop, and Smart TV.

AI comes back with Devices: Node-1 connects to Node-2, which connects to Hub. All nodes visible on mesh app.

How do you expose more devices?

droidblastnz avatar Sep 03 '25 10:09 droidblastnz

Basically if you have created channels on your nodes you can apply a specific channel ID as your dedicated home assistant channel.

This is the channel that you will broadcast on in order to interact with your home assistant instance.

Longfast is 0. Don't use longfast... Create a channel... share it to all of your nodes - set the channel ID (this will be any of your choosing 1 thru 9 on the Mesh-AI connected node.)

Any messages received on that channel ID will be directed to home assistant.

mr-tbot avatar Sep 04 '25 07:09 mr-tbot

Any devices that are part of the system will be automatically exposed and you are directly interacting with the home assistant assist API.

If your devices are not exposed to the assist API they will not work through meshtastic.

mr-tbot avatar Sep 04 '25 07:09 mr-tbot

Any update on this from your side - did you figure out how to get it working and can you provide some detailed instructions to replicate the issue?

In my case my original conversation end point per my instructions works. So I am curious if there's a difference in our set ups...

mr-tbot avatar Sep 27 '25 08:09 mr-tbot

Please test the new v0.6.0 code and lmk if you still have issues.

mr-tbot avatar Sep 27 '25 22:09 mr-tbot

Hi just updated to v0.6.0. Enabled the pin for HA and just need to now check

droidblastnz avatar Oct 01 '25 19:10 droidblastnz

So I realize that is way outside the scope of the current issut but....

I've added the HA token I can see the data being sent to HA from mesh-ai by monitoring the HA system logs.

BUT.. how to I actually use or integrate this into my HA UI?

(Sorry, the whole "conversation" thing kinda baffles me. I do have Ollama conversations that work but I haven't a clue how to integrate this data from mesh-ai)

Any pointers would be great!

jchisholm59 avatar Oct 15 '25 19:10 jchisholm59

So I realize that is way outside the scope of the current issut but....

I've added the HA token I can see the data being sent to HA from mesh-ai by monitoring the HA system logs.

BUT.. how to I actually use or integrate this into my HA UI?

(Sorry, the whole "conversation" thing kinda baffles me. I do have Ollama conversations that work but I haven't a clue how to integrate this data from mesh-ai)

Any pointers would be great!

This is meant to interface with the "assist" features of Home assistant.

Basically this just allows you to send and receive messages to the "assist" API within HA - so you can chat with your house from a mesh node... So you need to have that set up separately in HA before this becomes handy...

Essentially you leverage this: http://home-assistant.io/voice_control/

Rather than speaking to it you can also type to it - and this is the API we hit with mesh-ai so you can text chat with your HA instance, ask it questions about entities, and in the future, receive notifications from HA over mesh.

At that point you can send a message to your HA - and it can do things like turn on and off lights, etc... ask the status of sensors and what-not...

Future versions I will enable sending notifications from HA to the mesh on your HA channel - it's a pretty barebones implementation at this time.

I may in the future write a little HA plugin that takes my web UI data and formats it in a way HA will like - so you can see & send messages, etc in your dashboard... But I am one man - so my time to develop is a bit limited - especially with how often things are changing right now.

mr-tbot avatar Oct 16 '25 05:10 mr-tbot

Wow.. thank you for that very helpful information. My HA is now responding to queries, and I've learned somthing that I didn't know about HA.

You're a great help. And yes, there's something perversly satisfying about being able to ask an "off-the-grid" device about the current status of my hot tub lol

Cheers

jchisholm59 avatar Oct 16 '25 15:10 jchisholm59

Wow.. thank you for that very helpful information. My HA is now responding to queries, and I've learned somthing that I didn't know about HA.

You're a great help. And yes, there's something perversly satisfying about being able to ask an "off-the-grid" device about the current status of my hot tub lol

Cheers

Here's hoping we never need to use it in a serious capacity. lmao - but - yes - your off grid HA instance can now chat with you offline. Don't you love it?

mr-tbot avatar Oct 17 '25 00:10 mr-tbot

Closing issue - Please re-report if upcoming PR3 has any issues.

mr-tbot avatar Feb 08 '26 22:02 mr-tbot