While I’m waiting for the Nabu Casa elves to work their magic I’m trying to prepare so I can just plug and go on the 24th when I get a delivery!
I have managed to put some custom_sensences
together to control various aspects of my media, but I’m struggling to get a working configuration to manage the TV satellite/cable channel. I have intents for source selection and volume setting working from ASSIST
. I am struggling to find documentation, that I understand, so my descriptions might be a bit off!
On my dashboard I have a drop down list of channel names and use a script to convert that to channel number for the TV to understand. In the intent
, all I’m (currently) trying to do for the moment is collect the channel name from the custom_sentence
and put it in a text helper. I’m trying not to duplicate lists of channel names and number in scripts, intents and input_selects if I can help it and i want to drop the in/out
in the custom_sentence
and pass just the text.
My current TV Channel Select.yaml
is;
language: "en"
intents:
ChangeTVChannel:
data:
- sentences:
- "(set|change) {media_player} channel to {channel}"
- "(set|change) [the] channel for {media_player} to {channel}"
lists:
media_player:
values:
- in: "tv"
out: "media_player.lg_webos_smart_tv"
- in: "cable"
out: "media_player.virgin_tv"
channel:
values:
- in: "bbc one"
out: "BBC ONE WstHD"
- in: "bbc two"
out: "BBC TWO HD"
and in my intent_script.yaml
I have this;
...
ChangeTVChannel:
action:
- action: "input_text.set_value"
data_template:
entity_id: "input_text.requested_channel_name"
value: "{{ channel }}"
...
I’ve made many edits to both these bits of code so I may have introduced all kinds of errors. In this configuration ASSIST
just sits there and never returns anything not even any errors and there’s nothing in the logs, at least not for 5 minutes after the input to ASSIST.
So, I’m guessing I have an issue at the intent stage and not later when I’m setting the helper?