synesthesiam / rhasspy

Rhasspy voice assistant for offline home automation
https://rhasspy.readthedocs.io
MIT License
942 stars 101 forks source link

slot_programs only executed after saving slots #161

Closed drhirn closed 4 years ago

drhirn commented 4 years ago

I am experimenting with slot_programs to get some information from my smart home software (e.g. device names). Generally, it's working fine. It reads in the docs, that the programs are executed with every training. This doesn't seem to be true. I only get new values after saving the "slots" in the web frontend which then triggers a training. Is this intended or am I doing something wrong?

synesthesiam commented 4 years ago

This seems to be an interaction with the training caching system. An easy fix is to force them to run each time (as I had intended). Should that be an option? Would anyone ever want to cache the results?

drhirn commented 4 years ago

To be honest: I've no idea what is best. My plan was to trigger a training via HTTP API after changing a device in my smart home software. I tried to trigger saving the slots but it seems this is only possible when adding/editing slot values.

synesthesiam commented 4 years ago

Slot programs always run now in 2.4.17

timaschew commented 4 years ago

My plan was to trigger a training via HTTP API

Yes that is also what I would like to do.

Slot programs always run now in 2.4.17

What does mean always exactly?