My situation is, that I use an automation when I say a specific sentence to my Voice PE, the variable set for that sentence, does get passed for example to a notification action, but not the "set_conversation_response".
I use the notification for testing purposes.
My final result is that it says what channel i switched to.
See the "set_conversation_response" part in the code.
Here is my code:
triggers:
- trigger: conversation
command: Set the channel to CNN
variables:
channel_name: CNN
- trigger: conversation
command: Set the channel to HBO
variables:
channel_name: HBO
- trigger: conversation
command: Set the channel to ESPN
variables:
channel_name: ESPN
conditions: []
actions:
- set_conversation_response: Sure, here is {{ channel_name }}
- action: notify.mobile_app_sm_s926b # <- use your own phone for testing purposes
data:
message: Sure, here is {{ channel_name }}
mode: single```
If I use the code above without the variables, It does say which channel I have switched to, but of course without the variable.
The Code without variables:
```alias: TV Channels
triggers:
- trigger: conversation
command: Set the channel to CNN
- trigger: conversation
command: Set the channel to HBO
- trigger: conversation
command: Set the channel to ESPN
conditions: []
actions:
- set_conversation_response: Sure, here is {{ channel_name }}
- action: notify.mobile_app_sm_s926b # <- use your own phone for testing purposes
data:
message: Sure, here is {{ channel_name }}
mode: single```
You can reproduce it yourself.
So my conclusion is that the sentence trigger does not have the ability to pass the variable to the set_conversation_response
How to solve this?