This adds a Latitude agent to Home Assistant Assist (voice) using:
- Home Assistant
conversation+custom_sentences intent_scriptto handle the intentrest_commandto call Latitude- A helper (
input_text) to persist the Latitude conversation UUID for multi-turn chat
It supports:
- Voice queries: "ask latitude …"
- Multi-turn conversation (keeps the same Latitude
uuid) - Reset by voice: "reset latitude"
configuration.yaml– Home Assistant config blockscustom_sentences/en/latitude.yaml– sentences + wildcard slot listsecrets.yaml.example– example secrets entry
In your Home Assistant /config/secrets.yaml:
latitude_auth_header: "Bearer YOUR_LATITUDE_TOKEN"Copy this file into your Home Assistant config:
/config/custom_sentences/en/latitude.yaml
(Exact path matters.)
Copy the contents of configuration.yaml from this repo into your own
/config/configuration.yaml, merging top-level keys if you already have them.
If a key already exists, paste the new entries under it (do not duplicate the key).
In your /config/configuration.yaml, find the rest_command.latitude_run_document URL and replace [YOUR_PROJECT_ID] with your actual Latitude project ID:
url: "https://gateway.latitude.so/api/v3/projects/[YOUR_PROJECT_ID]/versions/live/documents/run"You can find your project ID in the Latitude dashboard URL or project settings.
Restart is required to ensure Conversation + custom sentences are loaded.
UI path: Settings → System → Restart → Restart Home Assistant
Developer Tools → Actions → run conversation.process with:
text: "ask latitude hi"
language: "en"Then:
text: "ask latitude what did I just say"
language: "en"Use Assist and say:
"ask latitude hi"
"ask latitude what did I just say"
To start over:
"reset latitude"
Multi-turn is implemented by storing Latitude's uuid in:
input_text.latitude_conversation_uuid
Streaming is disabled (stream: false) for reliability in voice workflows.