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

Expose service to call AI assistant to generate message in automatisation (Feature) #205

Open
jmorille opened this issue Apr 26, 2024 · 1 comment

Comments

@jmorille
Copy link

Expose a service like the image generation, that call the AI service just for generate a message with the home context.

For coding automatisation, like a welcome message different each day.
A service call permit to add some additional information like weather forecast or whatever.

I dont find in home assistant native API a service to call directly Voice Assist feature.

@Stklingner
Copy link

Stklingner commented May 10, 2024

You can do this once you've set up a voice assistant entity with the following service call:

alias: "Process Command via Conversation"
sequence:
- service: conversation.process
  data_template:
    text: "{{ chat command }}"
    agent_id: <get this by calling the service under Developer Tools/Services and editing in YAML >

You can get responses as well - look at the docs for conversation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants