Only have a “half-assed” solution that doesn’t really even passes the “configuration” check
AspirarIntent:
action:
service: script.turn_on
target:
entity_id: script.aspirar
data:
variables:
divisao: "{{ divisao }}"
speech:
type: plain
text: !include alexa_confirmation.yaml
aspirar:
fields:
divisao:
description: "Divisão a aspirar"
sequence:
- variables:
div: >
{%- if {{ divisao }} == "corredor" -%}
"1,11"
{%- elif {{ divisao }} == "pais" -%}
"3"
{%- elif {{ divisao }} == "sala" -%}
"6"
{%- elif {{ divisao }} == "meninos" -%}
"7"
{%- elif {{ divisao }} == "gonçalo" -%}
"8"
{%- elif {{ divisao }} == "cozinha" -%}
"9"
{%- elif {{ divisao }} == "escritório" -%}
"12"
{% endif %}
- service: xiaomi_miot.call_action
target:
entity_id: vacuum.viomi_v18_e271_robot_cleaner
data:
siid: 4
aiid: 13
params: [0, 1, "{{ div }}"]