-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No entities from home assistant #40
Comments
I run in SSH on the rpi4 with Rhasspy this script: mkdir -p /share/rhasspy/profiles/en/slot_programs/hass/ From https://gist.github.com/EverythingSmartHome/a4cd27c28981cc2dbfe2dbb12f683638 I noticed that it put the slot_programs directory in /share/rhasspy/profiles/en/slot_programs/hass, while my profile in /home/groetg/.config/rhasspy/profiles/nl/. So I changed the script to my personal situation: After that it is noticable, it sees my devices. It sees ALL my devices, also not the lights and switches, so I need to train 276 new words. I still got error: TrainingFailedException: Command '['fstcompile', '--isymbols=/profiles/nl/kaldi/model/data/lang/words.txt', '--osymbols=/profiles/nl/kaldi/model/data/lang/words.txt', '--keep_isymbols=false', '--keep_osymbols=false', '/profiles/nl/kaldi/language_model.txt', '/profiles/nl/kaldi/model/data/lang/G.fst.unsorted']' returned non-zero exit status 1. Whole log Rhasspy: |
Tried several times from scratch, but got stock at the same moments where the entities wont be read from home assistant. Followed the steps from youtube video everything home.
Log when i train now, and got the meessage of missing slots:
[ERROR:2023-02-10 07:39:40,845] rhasspyserver_hermes: Missing slot $hass/entities,licht
Traceback (most recent call last):
File "/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/quart/app.py", line 1821, in full_dispatch_request
result = await self.dispatch_request(request_context)
File "/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/quart/app.py", line 1869, in dispatch_request
return await handler(**request_.view_args)
File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/main.py", line 1313, in api_train
result = await core.train()
File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/init.py", line 365, in train
word_transform=word_transform,
File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/train.py", line 106, in sentences_to_graph
sentences, replacements=replacements, add_intent_weights=add_intent_weights
File "/usr/lib/rhasspy/rhasspy-nlu/rhasspynlu/jsgf_graph.py", line 426, in sentences_to_graph
expand_slots=expand_slots,
File "/usr/lib/rhasspy/rhasspy-nlu/rhasspynlu/jsgf_graph.py", line 124, in expression_to_graph
expand_slots=expand_slots,
File "/usr/lib/rhasspy/rhasspy-nlu/rhasspynlu/jsgf_graph.py", line 124, in expression_to_graph
expand_slots=expand_slots,
File "/usr/lib/rhasspy/rhasspy-nlu/rhasspynlu/jsgf_graph.py", line 194, in expression_to_graph
expand_slots=expand_slots,
File "/usr/lib/rhasspy/rhasspy-nlu/rhasspynlu/jsgf_graph.py", line 124, in expression_to_graph
expand_slots=expand_slots,
File "/usr/lib/rhasspy/rhasspy-nlu/rhasspynlu/jsgf_graph.py", line 124, in expression_to_graph
expand_slots=expand_slots,
File "/usr/lib/rhasspy/rhasspy-nlu/rhasspynlu/jsgf_graph.py", line 100, in expression_to_graph
expand_slots=expand_slots,
File "/usr/lib/rhasspy/rhasspy-nlu/rhasspynlu/jsgf_graph.py", line 194, in expression_to_graph
expand_slots=expand_slots,
File "/usr/lib/rhasspy/rhasspy-nlu/rhasspynlu/jsgf_graph.py", line 124, in expression_to_graph
expand_slots=expand_slots,
File "/usr/lib/rhasspy/rhasspy-nlu/rhasspynlu/jsgf_graph.py", line 124, in expression_to_graph
expand_slots=expand_slots,
File "/usr/lib/rhasspy/rhasspy-nlu/rhasspynlu/jsgf_graph.py", line 206, in expression_to_graph
assert slot_values, f"Missing slot {slot_name}"
AssertionError: Missing slot $hass/entities,licht
[WARNING:2023-02-10 07:39:40,819] rhasspynlu.slots: Failed to load file/program for slot hass/entities,cover (tried: [PosixPath('/profiles/nl/slots'), PosixPath('/usr/lib/rhasspy/rhasspy-profile/rhasspyprofile/profiles/nl/slots')], [PosixPath('/profiles/nl/slot_programs'), PosixPath('/usr/lib/rhasspy/rhasspy-profile/rhasspyprofile/profiles/nl/slot_programs')])
[DEBUG:2023-02-10 07:39:40,811] rhasspynlu.slots: Loading slot hass/colors from /profiles/nl/slots/hass/colors
[WARNING:2023-02-10 07:39:40,811] rhasspynlu.slots: Failed to load file/program for slot hass/entities,licht (tried: [PosixPath('/profiles/nl/slots'), PosixPath('/usr/lib/rhasspy/rhasspy-profile/rhasspyprofile/profiles/nl/slots')], [PosixPath('/profiles/nl/slot_programs'), PosixPath('/usr/lib/rhasspy/rhasspy-profile/rhasspyprofile/profiles/nl/slot_programs')])
[WARNING:2023-02-10 07:39:40,810] rhasspynlu.slots: Failed to load file/program for slot hass/entities,switch (tried: [PosixPath('/profiles/nl/slots'), PosixPath('/usr/lib/rhasspy/rhasspy-profile/rhasspyprofile/profiles/nl/slots')], [PosixPath('/profiles/nl/slot_programs'), PosixPath('/usr/lib/rhasspy/rhasspy-profile/rhasspyprofile/profiles/nl/slot_programs')])
[DEBUG:2023-02-10 07:39:40,588] rhasspynlu.slots: Running program for slot rhasspy/number,0,100,1: ['/usr/lib/rhasspy/rhasspy-profile/rhasspyprofile/profiles/nl/slot_programs/rhasspy/number', '0', '100', '1']
[DEBUG:2023-02-10 07:39:40,572] rhasspynlu.ini_jsgf: Loaded ini file
[DEBUG:2023-02-10 07:39:40,568] rhasspyserver_hermes: Generating intent graph
[DEBUG:2023-02-10 07:39:40,566] rhasspyserver_hermes: Loading sentences from [PosixPath('/profiles/nl/sentences.ini'), PosixPath('/profiles/nl/intents/home_assistant.ini')]
[INFO:2023-02-10 07:39:40,563] rhasspyserver_hermes: Starting training
Can someone more experienced help me out?
The text was updated successfully, but these errors were encountered: