Hi there,
i’m struggling with parameters passed to script (located ina file loaded by script::!include_dir_merge_named scripts/ in configuration.yaml
I’ve this script working well :
vacuum_kitchenvacuum:
sequence:
- service: vacuum.send_command
data:
entity_id: vacuum.xiaomi_vacuum_cleaner
command: app_zoned_clean
params: [[18116,22778,23416,28628,2]]
if i try to replace it by something like this:
vacuum_zonedclean:
sequence:
- service: vacuum.send_command
data:
entity_id: vacuum.xiaomi_vacuum_cleaner
command: app_zoned_clean
params: "{{Zone}}"
vacuum_kitchenvacuum:
sequence:
- service: script.vacuum_zonedclean
data:
variables:
Zone: [[18116,22778,23416,28628,2]]
It doesn’t do the same
I’ve also tried:
vacuum_zonedclean:
sequence:
- service: vacuum.send_command
data:
entity_id: vacuum.xiaomi_vacuum_cleaner
command: app_zoned_clean
params: {{Zone}}
–> returning an error during configuration check