Commandline app to talk with Assist

I created a simple python app to talk through text with your Home Assistant “Assist” agent on the command line. Either with a single intent and command, or through an interactive mode.

The functionality is pretty straight-forward but I didn’t see an app that already had it. I found this was a really nice way to use Home Assistant while working from home and on my computer, where I always have a terminal open anyway. Especially with the OpenAI extended plugin installed so that’s its really smart about translating text to commands.

I tried to make it secure by using a .env file to store your URL and Long lived access token, and I also collaborated with GPT-4 to write the code. The source code is pretty short so it could definitely be worth auditing it yourself to make sure you’re comfortable running it.

There’s also a compiled release available if you’re on windows.

I’d love to hear if this would be useful to anyone or if there’s any feedback about my implementation, thanks!

Repo:

great, just what i was looking for.
there was a bug in running not in interactive mode and ssl was not supported.