Skip to content
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

Rhasspy ignores all build-in Hass intents except of HassGetTemperature #16

Open
Johnnii360 opened this issue Aug 20, 2022 · 0 comments
Open

Comments

@Johnnii360
Copy link

Hi guys!

I try now for days to get my intents like HassTurnOn, HassTurnOff and HassLightSet to work but without any solution. I already posted in the Rhasspy forum but didn't get any answer until now. The only intent that works is HassGetTemperature. Here the speech set in the configuration.yaml is play correctly in German. But the other mentioned are ignored by Rhasspy and always in English though I set all to German.

Here my intents/homeassistant.ini:

[HassTurnOn]
lights = $hass/entities,light
switches = $hass/entities,switch
entities = <lights> | <switches>
schalte (<entities>){name} ein

[HassTurnOff]
schalte [die|das] (<HassTurnOn.entities>){name} aus

[HassLightSet]
farbe von (<HassTurnOn.lights>){name} auf ($hass/colors){color}
helligkeit von (<HassTurnOn.lights>){name} auf (0..100){brightness}
helligkeit von (<HassTurnOn.lights>){name} auf (0..100){brightness} prozent

[HassGetTemperature]
wie ist [die] temperatur von ($hass/rooms){name}
temperatur von ($hass/rooms){name}

My configuration.yaml:

# Loads default set of integrations. Do not remove.
default_config:

# Text to speech
tts:
#  - platform: google_translate
   - platform: picotts
     language: "de-DE"

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

#Home Assistant Rhasspy Custom intent (for configuration.yaml):
intent:

intent_script:
  HassGetTemperature:
    speech:
      text: "Die Temperatur von {{ area_name('sensor.' + name) }} ist {{ states('sensor.' + name) }} grad celsius."
  HassTurnOn:
    speech:
      text: "{{ name }} wurde eingeschaltet."
  HassTurnOff:
    speech:
      text: "{{ name }} wurde ausgeschaltet."
  HassLightSet:
    speech:
      text: "Ausgeführt!"
  GetTime:
    speech:
      text: "Es ist {{ now().hour }} Uhr {{ now().minute }}."

Here a log of Rhasspy:

[DEBUG:2022-08-20 14:21:28,348] rhasspyserver_hermes: Sent 681 char(s) to websocket
[DEBUG:2022-08-20 14:21:28,343] rhasspyserver_hermes: <- NluIntent(input='schalte Stehlampe ein', intent=Intent(intent_name='HassTurnOn', confidence_score=1.0), site_id='default', id=None, slots=[Slot(entity='hass/entities', value={'kind': 'Unknown', 'value': 'Stehlampe'}, slot_name='name', raw_value='stehlampe', confidence=1.0, range=SlotRange(start=8, end=17, raw_start=8, raw_end=17))], session_id='default-blueberry_raspberry-pi-4dc43885-23a4-41b7-9b91-efbbeeaa09d2', custom_data='blueberry_raspberry-pi', asr_tokens=[[AsrToken(value='schalte', confidence=1.0, range_start=0, range_end=7, time=None), AsrToken(value='Stehlampe', confidence=1.0, range_start=8, range_end=17, time=None), AsrToken(value='ein', confidence=1.0, range_start=18, range_end=21, time=None)]], asr_confidence=0.5008843015020575, raw_input='schalte stehlampe ein', wakeword_id='blueberry_raspberry-pi', lang=None)
[DEBUG:2022-08-20 14:21:24,712] rhasspyserver_hermes: <- HotwordDetected(model_id='/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/pvporcupine/resources/keyword_files/raspberry-pi/blueberry_raspberry-pi.ppn', model_version='', model_type='personal', current_sensitivity=0.5, site_id='default', session_id=None, send_audio_captured=None, lang=None, custom_entities=None)
[DEBUG:2022-08-20 14:21:09,495] rhasspyserver_hermes: Sent 934 char(s) to websocket
[DEBUG:2022-08-20 14:21:09,492] rhasspyserver_hermes: <- NluIntent(input='temperatur von temperatur_und_luftfeuchtigkeitssensor_aussen_temperature', intent=Intent(intent_name='HassGetTemperature', confidence_score=1.0), site_id='default', id=None, slots=[Slot(entity='hass/rooms', value={'kind': 'Unknown', 'value': 'temperatur_und_luftfeuchtigkeitssensor_aussen_temperature'}, slot_name='name', raw_value='balkon', confidence=1.0, range=SlotRange(start=15, end=72, raw_start=15, raw_end=21))], session_id='default-blueberry_raspberry-pi-fa1b6d61-f23e-4d5f-bcda-dba99f284143', custom_data='blueberry_raspberry-pi', asr_tokens=[[AsrToken(value='temperatur', confidence=1.0, range_start=0, range_end=10, time=None), AsrToken(value='von', confidence=1.0, range_start=11, range_end=14, time=None), AsrToken(value='temperatur_und_luftfeuchtigkeitssensor_aussen_temperature', confidence=1.0, range_start=15, range_end=72, time=None)]], asr_confidence=0.6949313706933038, raw_input='temperatur von balkon', wakeword_id='blueberry_raspberry-pi', lang=None)
[DEBUG:2022-08-20 14:21:05,544] rhasspyserver_hermes: <- HotwordDetected(model_id='/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/pvporcupine/resources/keyword_files/raspberry-pi/blueberry_raspberry-pi.ppn', model_version='', model_type='personal', current_sensitivity=0.5, site_id='default', session_id=None, send_audio_captured=None, lang=None, custom_entities=None)

The first intent (2022-08-20 14:21:05,544) was a HassGetTemperature that fired correctly. But the second that turned on my floor lamp (Stehlampe), the speech in the configuration.yaml is ignored every time.

I already crawled through the internet but didn't find any useful. It's a bug or do I have some to do additionally? GetTime works also correctly.

At least my systeminfo:

System Information

version core-2022.8.6
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.5
os_name Linux
os_version 5.15.55
arch aarch64
timezone Europe/Berlin
config_dir /config
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 8.4
update_channel stable
supervisor_version supervisor-2022.08.3
agent_version 1.2.1
docker_version 20.10.14
disk_total 56.0 GB
disk_used 10.7 GB
healthy true
supported true
board odroid-n2
supervisor_api ok
version_api ok
installed_addons Terminal & SSH (9.6.0), PicoTTS (1.6.0), Spotify Connect (0.12.2), motionEye (0.18.0), Rhasspy Assistant (2.5.11)
Dashboards
dashboards 1
resources 0
views 1
mode storage
Recorder
oldest_recorder_run 14. August 2022 um 05:13
current_recorder_run 19. August 2022 um 17:39
estimated_db_size 65.07 MiB
database_engine sqlite
database_version 3.38.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant