cris1410
(Adam Košík)
February 6, 2023, 12:52pm
1
Hi there. I’ve been playing with new Home Assistant VOICE ASSIST for a while and I got question, how to setup voice command to Siri read its output.
Let’s say I would like to ask Siri “What is temperature outside ”.
I in custom_sentences/en I have:
language: "en"
intents:
CustomOutsideTemperature:
data:
- sentences:
- "[(what's | what is)] [the] [current] temperature outside"
than in configuration.yaml I have:
conversation:
intent_script:
CustomOutsideTemperature:
speech:
text: "Current exterior temperature is {{ states('sensor.zigbee_outside') }} degrees Celsius."
When I ask this through Home Assistant Assis button icon it will show me correct result, ex.
Current exterior temperature is -1.04 degrees Celsius
But when I try ask the very same question through Siri Assist shortcut or Assist button shortcut it wont show me nor read me any output at all.
Do somebody know how to set the shortcuts ?
Thanks. Adam.
akentner
(Alexander Kentner)
May 6, 2023, 12:16pm
2
I have the same issue: I configured it as described in Assist on Apple devices - Home Assistant .
# custom_sentences/de/test.yaml
language: "de"
intents:
FooIntent:
data:
- sentences:
- "Was ist Foo[?]"
- "Was ist Fu[?]"
# configuration.yaml
intent_script:
FooIntent:
action:
service: "notify.telegram_chat_alex"
data:
title: "Foo"
message: |
domain: {{ domain | pprint }}
name: {{ name | pprint }}
state: {{ state | pprint }}
action: {{ action | pprint }}
brightness_step_pct: {{ brightness_step_pct | pprint }}
card:
type: simple
title: "Foo"
content: "Bar Baz {{ trigger | pprint }}"
speech:
text: "Bar Baz {{ trigger | pprint }}"
When I ask “Siri, Assist” she answered “How can I help”, the I ask my question “Was ist Foo?”. I expect the answer “Bar Baz”, but I only get “Fertig” (German for “Ok”, “Done”).
For Debugging:
I added a service call to a notify my telegram chat. I got this message, so I think the intent script is fired.
When I ask the question via assist chat on web GUI, I get the right answer and the notification.
IMHO, there is everything configured right. The config of @cris1410 looks also good to me.