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:
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