Skip to content

Instantly share code, notes, and snippets.

@EverythingSmartHome
Created August 12, 2022 13:13
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EverythingSmartHome/a4cd27c28981cc2dbfe2dbb12f683638 to your computer and use it in GitHub Desktop.
Save EverythingSmartHome/a4cd27c28981cc2dbfe2dbb12f683638 to your computer and use it in GitHub Desktop.
#Rhasspy home assistant script download (for home assistant OS only):
mkdir -p /share/rhasspy/profiles/en/slot_programs/hass/
cd /share/rhasspy/profiles/en/slot_programs/hass
wget https://raw.githubusercontent.com/rhasspy/rhasspy/master/examples/homeassistant/profile/slot_programs/hass/entities
chmod +x entities
ls -lah entities
#Home Assistant Rhasspy Custom intent (for configuration.yaml):
intent_script:
HassGetTemperature:
speech:
text: >-
{% set sensor = "sensor." + name %}
The temperature is currently {{ states(sensor) | int }} degrees
@gsaslis
Copy link

gsaslis commented Nov 18, 2022

hey @EverythingSmartHome ! 👋

thanks a bunch for putting this guide and video together!! great stuff!!

just a note / correction. The video shows that the entities script has to be copied in the home assistant container, while in fact it needs to be copied into the rhasspy container.

Also, the path that worked for me inside the container is /profiles/en/slot_programs/hass/entities

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment