Hello,
I’m testing around with scripts in Home Assistant and don’t understand what’s wrong.
My problem is the response_variable. If the Script contains a choose-option the answer is empty, but should be filled with the response_variable.
If the script contains no choose-sequence it’s working.
Question: Why does the script not return my value while in choose-sequence?
With this test-script I’m getting a result from the script:
alias: test
sequence:
- variables:
limit: |
{{ {'value': 1200 } }}
- stop: Done
response_variable: limit
mode: single
With this script the response is empty.
But it’s no scope-issue, because the notify is filled correctly with the value.
So where I’m wrong?
alias: test
sequence:
- variables:
limit: |
{{ {'value': 1200 } }}
- choose:
- conditions: []
sequence:
- service: notify.notify
metadata: {}
data:
message: "{{ limit.value }}"
- stop: Done
response_variable: limit
mode: single
Thank you for your help.