I’ve seen some interest in using Jasper (an open-source voice assistant similar to the Amazon echo) with HA. With a little work, I was able to get HA and Jasper working together (both ways).
To use this you will need to be using the dev version of Jasper (ie: Jasper 2.0).
This will have Jasper announce an entry through the garage door if the alarm is currently set to Armed-Home mode (ie: when everyone is home and sleeping)
- alias: Alarm Entry Alert - Garage Door
trigger:
platform: state
entity_id: binary_sensor.garage_door
state: 'on'
condition:
- platform: state
entity_id: alarm_control_panel.alarm
state: 'armed_home'
action:
service: notify.Jasper
data:
message: 'alert, entry detected at garage door'
Hopefully someone else will find this useful. Happy Automating
A little more about my Jasper configuration in case anyone’s interested:
Running on: OrangePi PC (HA is running here as well)
Mic: Built in mic on OrangePi
STT Passive Engine: sphinx
STT Active Engine: witai
TTS Engine: ivona
TTS Voice: Brian (under UK)
Passive Keyword: Jarvis
Overall cost was around $21 (including shipping) ordering OrangePi and a cheap hamburger speaker from AliExpress. I used an existing power supply and microSD card.
This setup works better than I originally imagined it would, but don’t expect the experience to be near as nice/polished as the Echo.
Which language are supported ?
my english is poor …
I believe that Jasper is compatible with many langages, but its integration in HA needs some adaptations ?
Yeah @matlun that shouldn’t be a problem. I am about to work on making work on a dimmer. I just have to finish setting up groups/scenes/etc first. I already have Jasper doing a lot of things. Its a great framework, and is similar to this one in a few ways. Like they were made to work together.
Could you provide links to the hardware? I am curious.
Also, to answer your questions guys. @vdarkobar NO jasper does NOT require an on-line presence, it can be completely offline; BUT, to get really good performance for a large variety of words/phrases, it works better with a service like wit.ai (comes preconfigured). I also provide a free TTS server that is pre-configured in our image. (I use MaryTTS currently)
That way at least the tts is private. Currently, there are several STT projects that are being worked on to resolve the performance issues with offline we see now.
BTW: I am not fully advertising, because this is more for community members, and real coders. But I am now selling test/pre-configured jasper kits. I am working to make home-assistant.io work on the same RPI as Jasper if anyone has done so please message me on my site or our slack. Just curious on peoples setups…
A little late to the party, I managed to get it up and running.
I did have a small issue with restapi.py and homeassistant.py
both have trouble reading jasper profile.yml
I get the following error
host = self.profile[‘restapi’][‘Host’]
TypeError: string indices must be integers, not str
As a dirty hack I hard coded the address in the py file.