nixos-configs/devices/homie/modules/home-assistant/spotify-sentences.nix
matt1432 98c27b1051
All checks were successful
Discord / discord commits (push) Has been skipped
feat(hass): add PlayAlbum voice command
2024-10-08 02:07:05 -04:00

47 lines
917 B
Nix

{
language = "en";
intents = {
PlayArtist.data = [
{
sentences = [
"play[ing] [some] music from [the] [artist] {artist}"
"play[ing] [the] artist {artist}"
];
}
];
PlayAlbum.data = [
{
sentences = [
"play[ing] [the] album {album} from [the] [artist] {artist}"
];
}
{
sentences = [
"play[ing] [the] album {album}"
];
slots.artist = "";
}
];
};
lists = {
artist.wildcard = true;
album.wildcard = true;
};
responses.intents = {
PlayArtist.default = ''
Searching for {{ slots.artist }} on Spotify and playing their top songs.
'';
PlayAlbum.default = ''
Searching for the album {{ slots.album }}
{% if slots.artist != "" %}
by {{ slots.artist }}
{% endif %}
on Spotify and playing it.
'';
};
}