Hi,
I set up snips on hassio. It also detect the hot word and the sentence that I speak as I can see on the logs.
But it does not call the intent.
Further to my investigation i found that irrespective of specifying the mqtt server in the add on configuration , it does not connect ti it and start its own mqtt at 127.0.0.1.
Below are the log from the mqtt server addon
1510064306: New connection from 172.30.32.1 on port 1883.
1510064306: Client core-snips.main-mqtt disconnected.
1510064306: New client connected from 172.30.32.1 as core-snips.main-mqtt (c0, k60, u’username’).
1510064390: Socket error on client core-snips.main-mqtt, disconnecting.
1510064401: New connection from 172.30.32.1 on port 1883.
1510064401: Client core-snips.main-mqtt disconnected.
1510064401: New client connected from 172.30.32.1 as core-snips.main-mqtt (c0, k60, u’username’).
1510064676: New connection from 172.30.32.1 on port 1883.
1510064676: New client connected from 172.30.32.1 as mosqsub/1675-core-ssh (c1, k60).
1510064686: Socket error on client core-snips.main-mqtt, disconnecting.
1510064711: New connection from 172.30.32.1 on port 1883.
1510064711: Client core-snips.main-mqtt disconnected.
1510064711: New client connected from 172.30.32.1 as core-snips.main-mqtt (c0, k60, u’username’).
Below are the log from the snips add on:
10:25:22.749053] INFO :hermes::mqtt: Connecting to MQTT broker at address localhost:1883
2017-11-07 10:25:22,750 INFO gave up: snips-audio-server entered FATAL state, too many start retries too quickly
1510064722: New connection from 127.0.0.1 on port 1883.
1510064722: New client connected from 127.0.0.1 as mqttc_326161151 (c1, k5).
[10:25:22.754080] INFO :rumqtt::connection: $$$ Connected to broker
[10:25:22.755285] ERROR:snips_hotword : Error: Cannot assign requested address (os error 99)
1510064722: Socket error on client mqttc_326161151, disconnecting.
2017-11-07 10:25:22,761 INFO exited: snips-hotword (exit status 1; not expected)
Error: Unable to read file "/opt/snips/config/assistant/trained_assistant.json"
Caused by: missing field language
at line 1 column 105948
1510064722: Socket error on client mqttc_2747760409, disconnecting.
2017-11-07 10:25:22,821 INFO exited: snips-queries (exit status 1; not expected)
2017-11-07 10:25:25,832 INFO spawned: ‘snips-hotword’ with pid 154
2017-11-07 10:25:25,842 INFO spawned: ‘snips-queries’ with pid 155
[10:25:25.940629] INFO :hermes::mqtt: Connecting to MQTT broker at address localhost:1883
1510064725: New connection from 127.0.0.1 on port 1883.
1510064725: New client connected from 127.0.0.1 as mqttc_1848329584 (c1, k5).
[10:25:25.951717] INFO :rumqtt::connection: $$$ Connected to broker
[10:25:26.011359] INFO :queries_hermes : loading model at path “/opt/snips/config/assistant”
[10:25:26.315970] INFO :hermes::mqtt: Connecting to MQTT broker at address localhost:1883
1510064726: New connection from 127.0.0.1 on port 1883.
1510064726: New client connected from 127.0.0.1 as mqttc_3300695550 (c1, k5).
[10:25:26.321469] INFO :rumqtt::connection: $$$ Connected to broker
[10:25:26.323070] ERROR:snips_hotword : Error: Cannot assign requested address (os error 99)
1510064726: Socket error on client mqttc_3300695550, disconnecting.
Below is the configuration addon:
{
“mqtt_bridge”: {
“active”: true,
“host”: “192.168.1.27”,
“port”: 1883,
“user”: “username”,
“password”: “password”
},
“mic”: “1,0”,
“speaker”: “0,1”,
“assistant”: “assistant.zip”
}
Below is my MQTT from configuration addon file:
mqtt:
broker: 192.168.1.27
port: 1883
client_id: home-assistant-1
username: username
password: password
Can you guys please help me to run snips on the hassio ??