I created the following custom sentence:
language: "en"
intents:
PlayPauseMusic:
data:
- sentences:
- "{action} [the] music"
lists:
action:
values:
- in: play
out: play
- in: pause
out: pause
- in: stop
out: pause
This sentence works fine using the Voice Assist icon in the upper right hand corner of the Home Assistant Companion App. However, it does not work with the Siri shortcut. I activate Siri and say “assist”. Siri then says “How can I assist?”. I then say “play music”. Siri gives the following response:
Sorry, something went wrong. Home Assistant says, “Failed: The operation couldn’t be completed. (ObjectMapper.MapError error 1.)”
Siri does work fine with built-in sentences. For example, I activate Siri and say “assist”. Siri then says “How can I assist?”. I then say “turn on living room light” and the living room light is turned on.
Am I missing some configuration? How do I get a custom sentence to work with Siri? I am on HA core 2023.3.6 and Companion App 2023.2 (2023.444).