#Hi, I'm trying to get "assist" to work

1 messages · Page 1 of 1 (latest)

unborn cove
solar ravenBOT
#

Please use a code share site to share code or logs, for example:

Please don't use Pastebin, since it can randomly add spaces to the main view. Please also don't share text as images since it makes it harder for people to help you. Remember that others may have colour blindness, impaired vision, etc.

waxen thicket
#

please format your code right, as this is impossible to follow, then ping me back

unborn cove
#

Note: the ESPHome M5 stack logs confirm that Assist recognized the speech:
Speech recognised as: " set office to 45" but it replies:
Response: "Sorry, I couldn't understand that"

waxen thicket
#

you have a syntax error in your /homeassistant/custom_sentences/en/temperature.yaml file. The data for the 2 intents does not look alike, as you can see.

#

only the one for SetTemperature is correct

unborn cove
#

LivingRoomTemperature: worked before but now it doesn't, SetTemperature has never worked. I've tried both syntax forms repeatedly.
I'll keep trying and post again when I figure this out.
Thanks so much for your help so far.

waxen thicket
#

see other posts in #voice-assistants-archived - in order to help, I need a lot more info than "it won't work". what are you doing? what were you expecting? what's actually happening? what's your setup? what have you tried? etc.

unborn cove
#

Will do. I'll look deeper at those posts. If I can't figure it out I will pastie my whole process as you request.
Thanks.

unborn cove
#

Caviat: I am not a programmer. I'd like to use templates as shown in the documentation link below. Bottom line: How do I split the conversation: out of my working configuration.yaml entries for Assist?
I am not using conversation: !include xx.yaml in configuration.yaml, I tried but it didn't work.

The documentation: Setting up sentences in the config directory @ https://www.home-assistant.io/voice_control/custom_sentences/#setting-up-sentences-in-the-config-directory as I understand it, states to remove the
conversation: code block from configuration.yaml and place it in /config/custom_sentences/en/filenamexx.yaml but Assist replies “I don’t understant that”
See my code for “filenamexx.yaml” @ http://pastie.org/p/3BjECBp1Co5ghQLphGbHw4. I kept the intent_script: code block in “configuration.yaml”
I have also tried leaving conversation: in configuration.yaml and the rest (indented two spaces to the left) in the filenamexx.yaml.

waxen thicket
#

in the documentation you linked you can see that in the yaml file under custom_sentences there is no conversation: element, there is a language: "en" element. in YAML, spacing matters A LOT, it's actually critical, which is why I've asked you to paste your code in a tool made specifically for this

#

to get back to your code, go to /config/custom_sentences/en/filenamexx.yaml and replace the first line with language: "en", then undent (i.e. move left) the next 2 lines so that intents: has no preceding whitespace. the result will be that data: will actually be a subordinate member of LivingRoomTemperature:

unborn cove
#

When I say the command sentence the M5stack echo blinks blue a couple of times then flashes a momentary red light.
Note: if I remove all the "SetTemperature" intents, intents_scripts, and responses then the "LivingRoomTemperature" intent works fine. But both together it fails.

waxen thicket
#

There is an error in your YAML. The data for the service call in SetTemperature is not properly indented. I can't teach you about formatting YAML, you have to fix that yourself

#

Also, there is no need for an intent response in case of an intent_script, as you've already defined the speech part