Intent and slots recognized but wrong action is performed


#21

How about just flat out hard coding the name in the intent_script just as a test


#22

maybe I must scratch start!

I still get this kind of errors.
Tue Feb 26 2019 00:47:49 GMT+0200 (EET)
Exception in message_received when handling msg on ‘hermes/intent/nik_poz:lightturnon1’: ‘{“sessionId”:“a3baaa37-88f9-4887-a121-9e7d11a24ef6”,“customData”:null,“siteId”:“default”,“input”:“turn on tv lights”,“asrTokens”:[[{“value”:“turn”,“confidence”:0.6522605,“rangeStart”:0,“rangeEnd”:4,“time”:{“start”:0.0,“end”:0.19008465}},{“value”:“on”,“confidence”:0.8628208,“rangeStart”:5,“rangeEnd”:7,“time”:{“start”:0.19008465,“end”:0.2914352}},{“value”:“tv”,“confidence”:0.94134444,“rangeStart”:8,“rangeEnd”:10,“time”:{“start”:0.3007512,“end”:0.829533}},{“value”:“lights”,“confidence”:0.98183185,“rangeStart”:11,“rangeEnd”:17,“time”:{“start”:0.829533,“end”:1.3303559}}]],“intent”:{“intentName”:“nik_poz:lightturnon1”,“confidenceScore”:0.99134606},“slots”:[{“rawValue”:“turn on”,“value”:{“kind”:“Custom”,“value”:“turn on”},“range”:{“start”:0,“end”:7},“entity”:“action_on”,“slotName”:“house_room”,“confidenceScore”:0.75018924},{“rawValue”:“tv lights”,“value”:{“kind”:“Custom”,“value”:“tv lights”},“range”:{“start”:8,“end”:17},“entity”:“house room”,“slotName”:“entity_id”,“confidenceScore”:0.96137506}]}’
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/snips.py”, line 113, in message_received
if (request[‘intent’][‘probability’]
KeyError: 'probability


#23

[19:00:34] [Dialogue] session with id ‘a89b404f-8ada-4c4a-8024-c44c28206613’ was started on site default
[19:00:34] [AudioServer] was asked to play a wav of 41.1 kB with id ‘24e6d56c-dfcd-46cd-8a2a-b9321b4d756f’ on site default
[19:00:35] [Asr] was asked to listen on site default
WARN:hermes_mqtt : Error while decoding object on topic “hermes/asr/textCaptured”: missing field range_start at line 1 column 170
WARN:hermes_mqtt: Error while decoding object on topic “hermes/asr/textCaptured”: missing field range_start at line 1 column 170
[19:00:39] [Asr] was asked to stop listening on site default
WARN:hermes_mqtt : Error while decoding object on topic “hermes/nlu/query”: missing field range_start at line 1 column 150
WARN:hermes_mqtt : Error while decoding object on topic “hermes/nlu/intentParsed”: missing field probability at line 1 column 145
WARN:hermes_mqtt: Error while decoding object on topic “hermes/nlu/intentParsed”: missing field probability at line 1 column 145

Any hint on what may be wrong? it get this in the snips add-on on the hass side…


#24

At this point this is because of the breaking changes in the snips api. I’ll have to actually get a patch into HA to fix this now…


#25

So my set up is ok so far?