Stand desk controlled by voice

Recently I connected ESP8266 to my desk and configured it by ESP Home. It’s working but next step is to controll it by voice and I’m missing something.

Desk is visible in HA as a cover.
In configuration.yaml I’ve added:

conversation:
  intents:
    MoveDesk:
      - "Ustaw wysokość biurka na {percent}%"

intent_script:
  MoveDesk:
    action:
      service: cover.set_cover_position
      data:
        position: { percent }
      target:
        entity_id: cover.elzap_emove_e400_desk
    speech:
      text: "Zmieniam wysokość biurka {{ percent }}"

The sentence is in polish and it means “set desk height at X%”
It should parse the percent value and use it in intent script but I get an error:
image

RAW

stage: error
run:
  pipeline: 01gzhnjqcaavzc9q84vt1xa3wy
  language: pl
  runner_data:
    stt_binary_handler_id: null
    timeout: 30
events:
  - type: run-start
    data:
      pipeline: 01gzhnjqcaavzc9q84vt1xa3wy
      language: pl
      runner_data:
        stt_binary_handler_id: null
        timeout: 30
    timestamp: "2023-08-15T22:54:13.770294+00:00"
  - type: intent-start
    data:
      engine: homeassistant
      language: pl
      intent_input: ustaw wysokość biurka na 50%
      conversation_id: null
      device_id: null
    timestamp: "2023-08-15T22:54:13.770373+00:00"
  - type: error
    data:
      code: intent-failed
      message: Unexpected error during intent recognition
    timestamp: "2023-08-15T22:54:13.920498+00:00"
intent:
  engine: homeassistant
  language: pl
  intent_input: ustaw wysokość biurka na 50%
  conversation_id: null
  device_id: null
  done: false
error:
  code: intent-failed
  message: Unexpected error during intent recognition

It’s just a guess, but I’d “translate” % to the word, like it really sounds. In english it would be “percent” instead of %.

I don’t use any kind of signs in my sentences, as one don’t speak these. :slight_smile:

Nope, that’s not the case - tried that.

Did you solve your problem? I am getting the same error and have no idea what is wrong… Everything is looking like in the documentation…

OK I just figured that reloading is not enough and you need to restart HA when adding new intents… This should be added to the documentation…

Due to lack of time I gave up on this one.

I found that Home Assistant requires a restart whenever you add new intents.

After restarting, everything did work. So if you want to try again, make sure to restart after adding your intents.