I feel like I’m taking crazy pills. I’ve followed the steps as defined in https://www.home-assistant.io/voice_control/custom_sentences/ but my custom sentences don’t seem to work at all.
Here’s a screenshot of my setup for the custom sentences with the file path included.
language: "en"
intents:
SetVolume:
data:
- sentences:
- "(set|change) {media_player} volume to {volume} [percent]"
- "(set|change) [the] volume for {media_player} to {volume} [percent]"
- "play {track} by {artist} on {media_player}"
lists:
media_player:
values:
- in: "living room"
out: "media_player.living_room"
- in: "bedroom"
out: "media_player.bedroom"
- in: "office speaker"
out: "media_player.office_speaker"
volume:
range:
from: 0
to: 100
And then in my configuration.yaml
file I have intent_script: !include intent_scripts.yaml
My intent_scripts.yaml
is:
SetVolume:
action:
service: "media_player.volume_set"
data:
entity_id: "{{ media_player }}"
volume_level: "{{ volume / 100.0 }}"
speech:
text: "Volume changed to {{ volume }}"
Whenever I try to say “set bedroom (or the other 2) volume to 50%” the response is always “Sorry, I am not aware of any device called bedroom volume”.
I went into the debugger for Assist and typed out the request and it’s wanting to turn on a light entity. Something is missing in my setup and I fail to understand where that failure is.
Any help would be greatly appreciated.