[!WARNUNG] Der Adapter wird nicht mehr weiterentwickelt oder gewartet, da Sonos Snips übernommen hat und die kostenlose Plattform am 01.02.2020 eingestellt wurde. Der Adapter und installierte Snips-Geräte funktionieren weiterhin.
Erfordert Node.js 6.0 oder höher und Admin v3!
Der Adapter kommuniziert über MQTT mit der Snips-Hardware. Der text2command-Adapter ist erforderlich, um die Befehle auszuführen.
Snips-URL: https://makers.snips.ai/
Montage-Scheren
Für Snips unter Debian Stretch (x86), Raspbian / Armbian Stretch (RPI3, Odroid) installieren Sie bitte die folgenden Pakete:
lsb-release apt-transport-https ca-certificates systemd systemd-sysv libttspico-utils alsa-utils dirmngr mosquitto snips-asr snips-audio-server snips-dialogue snips-hotword snips-nlu snips-tts snips-injection
Je nach Hardware und Linux-Distribution sind möglicherweise bereits Pakete installiert.
Installationsanleitung und Konfiguration für Raspbian / Armbian: https://snips.gitbook.io/documentation/installing-snips/on-a-raspberry-pi
Installationsanleitung und Konfiguration für Debian: sudo nano /etc/apt/sources.list. Fügen Sie in jeder Zeile "non-free" hinzu, da Sie sonst das Paket "libttspico-utils" nicht installieren können.
https://snips.gitbook.io/documentation/advanced-configuration/advanced-solutions
Melden Sie sich bei https://console.snips.ai an und fügen Sie einen neuen Assistenten hinzu.
Fügen Sie eine App hinzu, indem Sie oberhalb des Kontrollkästchens „Nur Apps mit Aktionen anzeigen“ nach „iobroker “ suchen und diese auswählen.
Klicken Sie anschließend auf „Assistent bereitstellen“, um die ZIP-Datei herunterzuladen.
Die ZIP-Datei wird auf dem Snips-Rechner unter „/usr/share/snips“ entpackt. Starten Sie den Rechner anschließend neu.
Snips sollte funktionieren, bevor wir hier fortfahren:
Snips-Adapter konfigurieren
URL: Adresse des Snips-MQTT-Servers Port: Port des Snips-MQTT-Servers Instanz: Text2Command-Instanz (z. B. 0) Filter: z. B. understand ClientID: ID (z. B. 0)
Text2Command-Adapter konfigurieren
Fügen Sie in der Konfiguration des Text2Command-Adapters unter Answer in ID snips.X.devices.all.send.say.text ein.
Injektion (neue Wörter lernen)
Unbekannte Wörter können unter snips.0.send.inject.room oder dem Gerät erlernt werden.
ACHTUNG: Der Dienst „inject“ muss auf dem Gerät/Server installiert sein: sudo apt-get install -y snips-injection
Changelog
1.5.1
- (unltdnetworx) new adapter testing and security update
1.5.0
- (unltdnetworx) removal of language support, may come back
1.4.0
- (unltdnetworx) multilingualism support for german and english
1.3.1
- (unltdnetworx) add multilingual blinds/switch-rule
1.3.0
- (unltdnetworx) preparation for multilingualism support
1.2.1
- (unltdnetworx) bugfix for multiple devices in stellite's room
1.2.0
- (unltdnetworx) possibility to enforce the room for a satellite
1.1.7
- (unltdnetworx) security update because of vulnerability in pulled by mqtt-dependency mqtt-package
1.1.6
- (unltdnetworx) activation/deactivation of hotword recognition for each satellite (mute)
1.1.5
- (unltdnetworx) bugfixes for adapter-testing
1.1.4
- (unltdnetworx) control soundfeedback for every satellite
1.1.3
- (unltdnetworx) delete states after session ended
1.1.2
- (unltdnetworx) create satellites manually
1.1.1
- (apollon77) Update CI testing
1.1.0
- (unltdnetworx) support for satellites
1.0.1
- (wal) bugfix memoryleak
1.0.0
- (wal) stable version
0.3.1
- (unltdnetworx) bugfix for not recognized slots
0.3.0
- (unltdnetworx) slots reduced to two
0.2.2
- (unltdnetworx) slot setBoolean changed to setDevice
0.2.1
- (unltdnetworx) slot-type names converted to singular
0.2.0
- (unltdnetworx) support for compact-mode added
0.1.1
- (unltdnetworx) 2 new slots added incl. injection
0.1.0
- (wal) add soundfeedback
0.0.9
- (unltdnetworx) testadapter and slots added
0.0.8
- (wal) adaptation for new snips version
0.0.7
- (wal) file corrupt
0.0.6
- (wal) add receive.text
0.0.5
- (wal) bugfix injection
0.0.4
- (wal) add hotword recognize
0.0.3
- (wal) add filter and text2command_Instanz
0.0.2
- (wal) first working adapter
0.0.1
- (wal) initial release
License
The MIT License (MIT)
Copyright (c) 2020 Michael Schuster development@unltd-networx.de & Walter Zengel w.zengel@gmx.de
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.