It’s unfortunate that Sonos bought Snips and killed the platform.
https://www.home-assistant.io/blog/2019/12/03/sonos-shutting-down-local-voice-option-snips/
I’ll leave this information posted for whatever use it now has….
————————–
This is easy. I swear. Here we go.
- I have hass.io installed on a nuc. enable the mqtt add-on.
- i have a separate raspi3B running rasbian with the snips framework installed, snips.ai sent me one of their maker kits. Thanks snips!
- install sam and npm/nodejs (will add notes here in a day or so)
- create an account at http://console.snips.ai
- create an assistant, add skills, uncheck the “only show apps with actions”, search for home assistant, add “Homeassistant” by HASS.
Moving on — update your rasbian/snips install:
sudo apt-get update
sudo apt-get upgrade
/etc/snips.toml — leave this alone. don’t change it at all!
/etc/mosquitto/mosquitto.conf needs to have the following stuff added at the bottom. This configuration change connects your HASS mqtt broker with the MQTT broker running by default with snips.ai — we only need a few MQTT topics to be exchanged to get the magic to happen, so they are specified below.
# Place your local configuration in /etc/mosquitto/conf.d/
#
# A full description of the configuration file is at
# /usr/share/doc/mosquitto/examples/mosquitto.conf.examplepid_file /var/run/mosquitto.pid
persistence false
persistence_location /var/lib/mosquitto/log_dest file /var/log/mosquitto/mosquitto.log
include_dir /etc/mosquitto/conf.d
connection snipsmqtt
address HASS_MQTTSERVER_IP:1883
remote_username HASS_MQTT_USERNAME
remote_password HASS_MQTT_PASSWORD
remote_clientid snips
start_type automatic
notifications true
cleansession true
bridge_protocol_version mqttv311# default setting but we explicitly set it here
try_private truetopic hermes/dialogueManager/# in
topic hermes/asr/# in
topic hermes/hotword/# outtopic hermes/intent/# out
topic hermes/asr/# out
topic hermes/hotword/# out
topic hermes/nlu/# outtopic hermes/tts/say in
topic hermes/audioServer/# in
topic hermes/tts/sayFinished in
Finally — deploy your assistant. Click ‘deploy’ in the console.snips.ai window, copy/paste the resulting install command in your raspi that is running snips.
reboot.
snips should be fuly working now.