Who has got snips working on Hassio?

@gmpotter: Sadly I didnt got this working further as I had it back then.

What I found out was, that the “old” hassian system has more flexibility on snips (eg you can use customized voices etc.) and hassio is also limited in this.
As noone was able to help me and my knowledge as a newbie was too small I left hassio an will maybe look again at it in the future.

I whish you good luck and hope you find a solution and it will work for you.
I would still be interessted in how you managed it so if you get it working let us know.

Sadly I just read this now, I see a problem with the color “rot”.
You light is MQTT, so I think you need to publish the color to the rgb_state_topic?
I don’t think service: light.turn_off will work

You can do that by calling mqtt.publish.
Something like:

  HassLightSet:
    action:
      - service: mqtt.publish
        topic: ESPURNA-THISID/rgb/set
        payload: 255,0,0

I am not sure about the payload :wink:

This is so frustrating. None of the examples I find seem to be consistent with the choices I see in the snips console editor. I would like to just get an end to end example of a snips configuration that works with home assistant. I have tried setting snips and Home Assistant up on two separate Raspberry Pi with no luck. I am currently working with Snips and home assistant on the same pi with similar results. Is there someone who would be willing to share their configuration example of asking snips to turn on and off a light controlled by home assistant? I have snips up and running and recognizing commands like turn on the lights and turn off the lights.
[22:54:30] [Nlu] detected intent gmpotter:turnlightson with probability 1.000 for input “turn on the office lights”
Slots ->
house_room -> office
entity_id -> lights
[22:54:30] [Dialogue] New intent detected gmpotter:turnlightson with probability 1.000
Slots ->
house_room -> office
entity_id -> lights

I am having no luck getting home assistant to respond or even to know that a service has been requested.

Please help.

Greg

Hey there, I hope this helps. First, you must make sure that Snips and Homeassistant are talking to each other. This means that they, have to be using the same MQTT server, or if they are both using their own MQTT server then you have to bridge them. Here is an awesome link that can help with that (watch the video):

Once, you have the two talking to each other you need to setup an intent, unless you are using the Homeassistant App in the Snips Store. This App uses the built-in Intents in Homeassistant, I chose to use different ones and some of my own. This is an example of a simple Intent that will work:

snips:

intent_script:

  lightsTurnOnSet:
    speech:
      type: plain
      text: 'OK, turning on the {{ house_room }} light'
    action:
      - service: homeassistant.turn_on
        data_template:
          entity_id: light.{{ house_room | replace(" ","_") }}

This Intent will work with the Smart Lights App in the Snips store by Andlo. Once you have this setup you should be in business. I am assuming that you understand the process of creating a Snips Assistant in the Snips Console, and once it is trained you are installing that Assistant in your Snips setup. I hope this helps shed some light on the subject.

1 Like

Originally I was using Snips one one Pi and Hass.io on another. I watched the video, but wasn’t able to make it work with Hass.io. I’ve since decided to use snips and HA on one PI. when I create an assistant it asks if homeassistant is already installed. If I say no it installs Home assistant on that pi. It wouldn’t proceed otherwise. So I configured the home assistant on my snips pi just to make progress. It recognizes my zwave, DSC alarm panel and I have it working. Now to add the snips component. I create an assistant and choose the lights on/off. When I edit the actions and choose home assistant I only get a short commented out stub. Should I replace that with the intent script shown in your reply?

OK, I started from scratch. I created an assistant and chose the Smart Lights App by Andlo. By default it has no actions. Should I leave it that way or edit the actions and choose the home assistant component?

Allright, my stuff then :slight_smile:

I have installed HassIO on a Pi and installed the Snips Addon, along with the Mosquitto AddOn.
I also installed Samba AddOn, so configuration and share is available on my network.

Configuration of SnipsAddon, default actually I think?

{
  "mqtt_bridge": {
    "active": true,
    "host": "core-mosquitto",
    "port": 1883,
    "user": "",
    "password": ""
  },
  "assistant": "assistant.zip",
  "language": "en",
  "custom_tts": {
    "active": false,
    "platform": "amazon_polly"
  }
}

Configuration in configuration.yaml:

snips:
intent_script:
  Covers:
    speech:
      type: plain
      text: 'Allright, {{ actionType }}ing the {{ whichCover }} cover.'
    action:
      - service_template: cover.{{ actionType | lower }}_cover
        data_template:
          entity_id: cover.huiskamer_{% if whichCover == "back" %}achter{% elif whichCover == "front" %}voor{% elif whichCover == "right" %}zij_voor{% elif whichCover == "left" %}zij_achter{% endif %}

I use it for my window covers, but the main thing here is so add

snips:
intent_script:

Futhermore, download your assistant from the console and put it as assistant.zip in the share folder via Samba

That is it :slight_smile:

1 Like

What do you have in your configuration.yaml of homeassistant?

You are correct, lease the actions alone. The Intent that is in your Homeassistant config, is what is going to do the actions. Any App the you use in the Snips Console that has its own actions for HA will require that HA be installed on the same RPi that you are using. My Snips and HA are on different Pi so I did not go that route. Hopefully in the future they will change this so you can use the actions on a remote Pi.

I’ve finally gotten this working. Thanks for your responses. What I realized is that action on snips is none. Snips will publish the intent on mqtt. You then configure HA to look for intents on the mqtt channel and add the proper intent scripts to the configuration.yaml file, or in my case the intent_scripts.yaml file. I think this is a failing on the part of all the tutorials on the web. They either ignore or gloss over that fact. When Jeff C on discord pointed it out it me I finally got it working.

1 Like

Leon333, I have this working on one device, My next goal is to separate them and get it working with snips on one pi and HA on another. I’m not sure if I will use Hass.io or just install Hass on a regular raspbian image. Heck, I might try both.

Greg

Hello.

I was initiating in all this tts - stt and intents stuff, and I have discovered snips project that seems very aligned with HA privacy-anti-public-cloud philosophy

My first idea waw to make a simple text-to-speech that i.e. tell me the actual temperature inside and outside.

And first is my problem:

I have seen tts with kodi (that I suppose is made with free google service), but I want to tts on my raspberry alsa output without any cloud service.

So I search for the best free-opensource-private-tts-system IN SPANISH.

The only reasonable that I found was Festival with Junta_de_Andalucia voices.
Other alternates (pico2wave and flite) doesnt match requirements.

It works relaitively fine, but my great surprise was that there arent integration between the old Festival and HA (maybe https://github.com/techiaith/pyfestival could be the basis). In fact, this thread is the only one in witch I found references about Festival.

I make on command-line:

echo "La temperatura del salón son 21.2 grados, 5 grados más que el exterior. " | iconv -futf8 -tl1 | text2wave -o tts.wav -eval "(voice_JuntaDeAndalucia_es_pa_diphone)"

(iconv from utf8 to latin is needed because missed Festival unicode support).

I have seen that state-of-art in tts-stt in spanish is really bad, and only good achieved by the bigs-ones (Microsoft/Google/Apple/Amazon…), that usually breaks your privacy…

So snips could be a good alternative.

Hi !

I cant get this to work.

How has my assistant on snips.ai to look like to make this intent script work?

I have published my app now, look for Covers (Romkabouter), add it to your assistant and then that assistant to your snips.

1 Like

Awesome thank you. Could not find it yet but maybe it takes a little time. Searched in german and english assistant for it.

It’s English, might take a while. I have no idea :smiley:

found it. you have to uncheck: “only show apps with actions” before you click on search

Let’s get serious.

When i added no assistant file I could turn off the light in the living room. The other stuff did not work.

Now i installed your app clean without changing anything. I copied the assistant.zip into the share folder. Restarted the addon and hassio found it and extracted it.

I (of course) changed the intent_script because the names of my covers are different … of course.

  Covers:
    speech:
      type: plain
      text: 'Allright, {{ actionType }}ing the {{ whichCover }} cover.'
    action:
      - service_template: cover.{{ actionType | lower }}_cover
        data_template:
          entity_id: cover.{% if whichCover == "back" %}oeq1850763{% elif whichCover == "front" %}oeq1850763{% elif whichCover == "right" %}peq0005525{% elif whichCover == "left" %}peq0005525{% endif %}

I know its two times the same cover but i wanted to change as little as possible.

and thats my error.

[18:29:19] [Asr] was asked to stop listening on site default
[18:29:19] [Hotword] was asked to toggle itself 'off' on site default
[18:29:19] [Dialogue] session with id 'f7d50d60-b6c4-4eac-84ec-52ad71f655d5' was started on site default
[18:29:19] [AudioServer] was asked to play a wav of 41.1 kB with id 'e61623a0-5017-4e65-b3ee-02aad1aaead1' on site default
INFO:snips_audio_portaudio: Playing "e61623a0-5017-4e65-b3ee-02aad1aaead1" using output "default", wav spec: WavSpec { channels: 2, sample_rate: 22050, bits_per_sample: 16, sample_format: Int }
INFO:snips_audio_portaudio: Playing of "e61623a0-5017-4e65-b3ee-02aad1aaead1" finished
[18:29:20] [AudioServer] finished playing wav with id 'e61623a0-5017-4e65-b3ee-02aad1aaead1'
WARN:snips_tts_hermes: Did received a "play finished" message from audio server with an unknown id 'e61623a0-5017-4e65-b3ee-02aad1aaead1'. It could be normal if you have more than one audio server.
[18:29:20] [Asr] was asked to listen on site default
INFO:snips_asr_hermes: Listening
INFO:snips_asr_lib::asr: T0       entered AsrRunner::run
INFO:snips_asr_lib::asr: T0+0.000 capture started
INFO:snips_asr_lib::asr: T0+4.577 endpoint detected (rule:1) frame:274 samples:70144 signal_time:4.384 rtf:0.857
INFO:snips_asr_lib::asr: T0+4.579 capture ended
INFO:snips_asr_lib::asr: T0+4.748 decoder finalized
INFO:snips_asr_lib::asr: T0+4.749 lookup and post-processing done
INFO:snips_asr_hermes  : Cleanup
INFO:snips_asr_hermes  : Preparing decoder
[18:29:24] [Asr] captured text "" in 4.0s
[18:29:24] [Asr] was asked to stop listening on site default
[18:29:24] [AudioServer] was asked to play a wav of 93.1 kB with id '6884693b-2562-42fa-a79a-169b8b42945f' on site default
INFO:snips_audio_portaudio: Playing "6884693b-2562-42fa-a79a-169b8b42945f" using output "default", wav spec: WavSpec { channels: 2, sample_rate: 22050, bits_per_sample: 16, sample_format: Int }
INFO:snips_asr_hermes  : Idle
INFO:snips_audio_portaudio: Playing of "6884693b-2562-42fa-a79a-169b8b42945f" finished
[18:29:26] [AudioServer] finished playing wav with id '6884693b-2562-42fa-a79a-169b8b42945f'
WARN:snips_tts_hermes: Did received a "play finished" message from audio server with an unknown id '6884693b-2562-42fa-a79a-169b8b42945f'. It could be normal if you have more than one audio server.
[18:29:26] [AudioServer] was asked to play a wav of 61.1 kB with id '39ab5d44-2f19-45ca-82ec-83e322718bc6' on site default
INFO:snips_audio_portaudio: Playing "39ab5d44-2f19-45ca-82ec-83e322718bc6" using output "default", wav spec: WavSpec { channels: 2, sample_rate: 44100, bits_per_sample: 16, sample_format: Int }
INFO:snips_audio_portaudio: Playing of "39ab5d44-2f19-45ca-82ec-83e322718bc6" finished
[18:29:26] [AudioServer] finished playing wav with id '39ab5d44-2f19-45ca-82ec-83e322718bc6'
INFO:snips_dialogue_lib::coordinator::coordinator: Session [f7d50d60-b6c4-4eac-84ec-52ad71f655d5]: closing session which was active: IntentNotRecognized
INFO:snips_dialogue_lib::coordinator::coordinator: Site [default]: reset site -> turn off ASR and turn on Hotword
[18:29:26] [Dialogue] session with id 'f7d50d60-b6c4-4eac-84ec-52ad71f655d5' was ended on site default. The session was ended because the platform didn't understand the user
WARN:snips_tts_hermes: Did received a "play finished" message from audio server with an unknown id '39ab5d44-2f19-45ca-82ec-83e322718bc6'. It could be normal if you have more than one audio server.
[18:29:26] [Asr] was asked to stop listening on site default
[18:29:26] [Hotword] was asked to toggle itself 'on' on site default
INFO:snips_hotword_lib::features : Audio thread for site default running

edit: going to reinstall the addon

edit2: when i plug the headset into my computer and use it on snips to test the assistant, it recognizes the things i say perfectly!

edit3: When i delete the assistant.zip file and use the standard one it detects what I say.

[18:52:46] [Hotword] detected on site default, for model hey_snips
INFO:snips_dialogue_lib::coordinator::coordinator: Site [default]: reset site -> turn off ASR and turn off Hotword
INFO:snips_dialogue_lib::coordinator::coordinator: Session [f6f834e8-b832-402a-89fa-5ef36f650d09]: The session has been created because the site "default" is free
[18:52:46] [Asr] was asked to stop listening on site default
[18:52:46] [Hotword] was asked to toggle itself 'off' on site default
[18:52:46] [Dialogue] session with id 'f6f834e8-b832-402a-89fa-5ef36f650d09' was started on site default
[18:52:46] [AudioServer] was asked to play a wav of 41.1 kB with id 'ace67098-2e89-4145-bfa6-42607b7bce8f' on site default
INFO:snips_audio_portaudio: Playing "ace67098-2e89-4145-bfa6-42607b7bce8f" using output "default", wav spec: WavSpec { channels: 2, sample_rate: 22050, bits_per_sample: 16, sample_format: Int }
INFO:snips_hotword_lib::features : Audio thread for site default idle.
INFO:snips_audio_portaudio: Playing of "ace67098-2e89-4145-bfa6-42607b7bce8f" finished
[18:52:47] [AudioServer] finished playing wav with id 'ace67098-2e89-4145-bfa6-42607b7bce8f'
WARN:snips_tts_hermes: Did received a "play finished" message from audio server with an unknown id 'ace67098-2e89-4145-bfa6-42607b7bce8f'. It could be normal if you have more than one audio server.
[18:52:47] [Asr] was asked to listen on site default
INFO:snips_asr_hermes  : Listening
INFO:snips_asr_lib::asr: T0       entered AsrRunner::run
INFO:snips_asr_lib::asr: T0+0.000 capture started
INFO:snips_asr_lib::asr: T0+4.187 endpoint detected (rule:2) frame:169 samples:43264 signal_time:2.704 rtf:1.407
INFO:snips_asr_lib::asr: T0+4.197 capture ended
INFO:snips_asr_lib::asr: T0+4.484 decoder finalized
INFO:snips_asr_lib::asr: T0+4.484 lookup and post-processing done
INFO:snips_asr_hermes  : Cleanup
INFO:snips_asr_hermes  : Preparing decoder
[18:52:51] [Asr] captured text "light on" in 4.0s
[18:52:51] [Asr] was asked to stop listening on site default
[18:52:51] [AudioServer] was asked to play a wav of 93.1 kB with id 'e55fe924-1da4-415d-bcc6-555b479cfe08' on site default
INFO:snips_audio_portaudio: Playing "e55fe924-1da4-415d-bcc6-555b479cfe08" using output "default", wav spec: WavSpec { channels: 2, sample_rate: 22050, bits_per_sample: 16, sample_format: Int }
INFO:snips_asr_hermes  : Idle
INFO:snips_audio_portaudio: Playing of "e55fe924-1da4-415d-bcc6-555b479cfe08" finished
WARN:snips_tts_hermes: Did received a "play finished" message from audio server with an unknown id 'e55fe924-1da4-415d-bcc6-555b479cfe08'. It could be normal if you have more than one audio server.
[18:52:52] [AudioServer] finished playing wav with id 'e55fe924-1da4-415d-bcc6-555b479cfe08'
[18:52:53] [Nlu] was asked to parse input "light on"
[18:52:53] [Nlu] detected intent hass:HassTurnOn with probability 0.896 for input "light on"
              Slots ->
                 name -> light
[18:52:53] [Dialogue] New intent detected hass:HassTurnOn with probability 0.896
              Slots ->
                 name -> light
[18:52:53] [Dialogue] was ask to end session with id f6f834e8-b832-402a-89fa-5ef36f650d09 by saying 'Turned Xiaomi Gateway Light on'
[18:52:53] [Tts] was asked to say "Turned Xiaomi Gateway Light on"
INFO:snips_audio_portaudio: Playing "3aff9bac-30d6-4b53-b0f7-b827dff8cc30" using output "default", wav spec: WavSpec { channels: 1, sample_rate: 16000, bits_per_sample: 16, sample_format: Int }
[18:52:53] [AudioServer] was asked to play a wav of 68.7 kB with id '3aff9bac-30d6-4b53-b0f7-b827dff8cc30' on site default

edit 4: thats my snips log after starting the addon

[]
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround21
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround21
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround40.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround40
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround41
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround50
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround51
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.surround71.0:CARD=0'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround71
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM iec958
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.bcm2835.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
INFO:snips_audio_portaudio: Use input device: "default"
1543781150: New connection from 127.0.0.1 on port 1883.
INFO:snips_hotword               : Discovered audio_server default/mqtt, starting hotword listener
INFO:snips_hotword               : Connecting using MQTT site-id default
INFO:snips_hotword_lib::features : Audio thread for default started
1543781150: New client connected from 127.0.0.1 as 7cc30544cad14bb49f390c9732f21ec6 (c0, k10).
INFO:snips_asr: Connecting using MQTT site-id default
INFO:snips_asr_hermes: Using model from "/usr/share/snips/assistant/custom_asr"
INFO:snips_hotword_lib           : Detector for hey_snips on default thread started
INFO:snips_asr_hermes: Preparing decoder
2018-12-02 21:05:51,206 INFO success: snips-tts entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-12-02 21:05:51,208 INFO success: snips-dialogue entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
INFO:snips_asr_hermes: Idle
2018-12-02 21:05:52,127 INFO success: snips-asr entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-12-02 21:05:52,139 INFO spawned: 'snips-nlu' with pid 106
2018-12-02 21:05:52,141 INFO success: snips-analytics entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-12-02 21:05:52,142 INFO success: snips-hotword entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-12-02 21:05:52,143 INFO success: snips-audio-server entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
1543781152: New connection from 127.0.0.1 on port 1883.
1543781152: New client connected from 127.0.0.1 as 243bcde4e1454b5a85421b8e118b2d46 (c0, k10).
INFO:snips_nlu_hermes: loading model at path "/usr/share/snips/assistant/nlu_engine"
ERROR:snips_nlu       : Unable to read file '/usr/share/snips/assistant/nlu_engine/nlu_engine.json'
 -> caused by: Expected model version 0.16.0 but found 0.17.0
1543781152: Socket error on client 243bcde4e1454b5a85421b8e118b2d46, disconnecting.
2018-12-02 21:05:52,247 INFO exited: snips-nlu (exit status 1; not expected)
2018-12-02 21:05:54,256 INFO spawned: 'snips-nlu' with pid 111
1543781154: New connection from 127.0.0.1 on port 1883.
1543781154: New client connected from 127.0.0.1 as a29cf41f84544f92a6cf096276a4f79a (c0, k10).
INFO:snips_nlu_hermes: loading model at path "/usr/share/snips/assistant/nlu_engine"
ERROR:snips_nlu       : Unable to read file '/usr/share/snips/assistant/nlu_engine/nlu_engine.json'
 -> caused by: Expected model version 0.16.0 but found 0.17.0
1543781154: Socket error on client a29cf41f84544f92a6cf096276a4f79a, disconnecting.
2018-12-02 21:05:54,343 INFO exited: snips-nlu (exit status 1; not expected)
2018-12-02 21:05:57,354 INFO spawned: 'snips-nlu' with pid 116
1543781157: New connection from 127.0.0.1 on port 1883.
1543781157: New client connected from 127.0.0.1 as a3973b98b0e54272b9359574b2379ce1 (c0, k10).
INFO:snips_nlu_hermes: loading model at path "/usr/share/snips/assistant/nlu_engine"
ERROR:snips_nlu       : Unable to read file '/usr/share/snips/assistant/nlu_engine/nlu_engine.json'
 -> caused by: Expected model version 0.16.0 but found 0.17.0
1543781157: Socket error on client a3973b98b0e54272b9359574b2379ce1, disconnecting.
2018-12-02 21:05:57,405 INFO exited: snips-nlu (exit status 1; not expected)
2018-12-02 21:05:58,407 INFO gave up: snips-nlu entered FATAL state, too many start retries too quickly
[]

This line from your first log says that no text was captured. Was there a too long silence perhaps?

Your last log says:

ERROR:snips_nlu : Unable to read file ‘/usr/share/snips/assistant/nlu_engine/nlu_engine.json’
→ caused by: Expected model version 0.16.0 but found 0.17.0

Perhaps the addon is using a previous version of Snips, by the looks of it, snips find a newer model than expected.
Without NLU, there will be no response to intents.

I did not update my assistant.zp for a while, which version of the Snips Addon are you at?

Hi! thanks for your answer. I think thats the problem… 0.16.0 and 0.17.0.

Thats why it works with the old assistant file which is installed with the addon…

Gonna open an issue.

I think the addon is on version 0.58.3, there is already a pull request:

2 Likes