#Get variable from voice prompt

1 messages · Page 1 of 1 (latest)

left plover
#

Hi, i want to set a value to an input number by voice command

alias: New automation voice test desk
description: ""
triggers:
  - trigger: conversation
    command: raise desk to {height}
conditions: []
actions:
  - action: input_number.set_value
    metadata: {}
    data:
      value: 82
    target:
      entity_id: input_number.birou
mode: single

This works but it's a static value, i've tried to replace 82 with {{height}} but it's not working..

left plover
#

i have also tried

  intents:
    SetDeskHeight:
      - "Set the desk to {height}"
      - "Raise the desk to {height}"
      - "Adjust the desk to {height} centimeters"```
in config/custom_sentences/en/desk.yaml

and 

intent_script:
SetDeskHeight:
action:
- service: input_number.set_value
data:
entity_id: input_number.birou
value: "{{ height | float }}"

#

also tried to add the thing from desk. yaml directly in configuration.yaml...