Multiple intents in configuration.yaml

Hi guys!

I’m trying since yesterday to bring my intents to work. I’m using Rhasspy Homeassistant Addon and configured all correctly at first sight but the the only intent that works is HassGetTemperature. All other intents like HassTurnOn and HassTurnOff might be ignored. Rhasspy’s TTS is in English wording but German speak.

Here my intents/homeassistant.ini:

[HassTurnOn]
lights = $hass/entities,light
switches = $hass/entities,switch
entities = <lights> | <switches>
schalte [die|das] (<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}

The 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_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.

I crawled the internet and also tried some different variations but nothing worked. Only the temperature is correct.

Here a log snippet:

[DEBUG:2022-08-19 17:40:56,604] rhasspyhomeassistant_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-c8c8fcd6-d408-4a36-b611-dc578ef46c06', 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.6768908572512012, raw_input='schalte stehlampe ein', wakeword_id='blueberry_raspberry-pi', lang=None)
[DEBUG:2022-08-19 17:40:56,615] rhasspyhomeassistant_hermes: http://homeassistant.local:8123/api/intent/handle
[DEBUG:2022-08-19 17:40:56,644] rhasspyhomeassistant_hermes: -> TtsSay(text='Turned Stehlampe on', site_id='default', lang=None, id='c2e1be0f-d420-4678-aa12-553b323e31bc', session_id='default-blueberry_raspberry-pi-c8c8fcd6-d408-4a36-b611-dc578ef46c06', volume=None)
[DEBUG:2022-08-19 17:40:56,644] rhasspyhomeassistant_hermes: Publishing 212 bytes(s) to hermes/tts/say
[DEBUG:2022-08-19 17:40:56,649] rhasspytts_cli_hermes: <- TtsSay(text='Turned Stehlampe on', site_id='default', lang=None, id='c2e1be0f-d420-4678-aa12-553b323e31bc', session_id='default-blueberry_raspberry-pi-c8c8fcd6-d408-4a36-b611-dc578ef46c06', volume=None)
[DEBUG:2022-08-19 17:40:56,651] rhasspytts_cli_hermes: ['nanotts', '-v', 'de-DE', '-o', '/tmp/tmph7ndpt8h.wav']
Using Lingware directory: /usr/lib/rhasspy/.venv/lib/nanotts/pico/lang
read: 19 bytes from stdin
using lang: de-DE
wrote "/tmp/tmph7ndpt8h.wav" (54700 bytes)
[DEBUG:2022-08-19 17:40:56,694] rhasspytts_cli_hermes: Got 54700 byte(s) of WAV data
[DEBUG:2022-08-19 17:40:56,695] rhasspytts_cli_hermes: -> AudioPlayBytes(54700 byte(s)) to hermes/audioServer/default/playBytes/c2e1be0f-d420-4678-aa12-553b323e31bc
[DEBUG:2022-08-19 17:40:56,696] rhasspytts_cli_hermes: Waiting for play finished (timeout=1.958)
[DEBUG:2022-08-19 17:40:56,699] rhasspyspeakers_cli_hermes: <- AudioPlayBytes(54700 byte(s))
[DEBUG:2022-08-19 17:40:56,700] rhasspyspeakers_cli_hermes: ['aplay', '-q', '-t', 'wav']
[DEBUG:2022-08-19 17:40:58,473] rhasspyspeakers_cli_hermes: -> AudioPlayFinished(id='c2e1be0f-d420-4678-aa12-553b323e31bc', session_id='c2e1be0f-d420-4678-aa12-553b323e31bc')
[DEBUG:2022-08-19 17:40:58,474] rhasspyspeakers_cli_hermes: Publishing 99 bytes(s) to hermes/audioServer/default/playFinished
[DEBUG:2022-08-19 17:40:58,476] rhasspydialogue_hermes: <- AudioPlayFinished(id='c2e1be0f-d420-4678-aa12-553b323e31bc', session_id='c2e1be0f-d420-4678-aa12-553b323e31bc')
[DEBUG:2022-08-19 17:40:58,478] rhasspytts_cli_hermes: <- AudioPlayFinished(id='c2e1be0f-d420-4678-aa12-553b323e31bc', session_id='c2e1be0f-d420-4678-aa12-553b323e31bc')
[DEBUG:2022-08-19 17:40:58,480] rhasspytts_cli_hermes: -> TtsSayFinished(site_id='default', id='c2e1be0f-d420-4678-aa12-553b323e31bc', session_id='default-blueberry_raspberry-pi-c8c8fcd6-d408-4a36-b611-dc578ef46c06')
[DEBUG:2022-08-19 17:40:58,481] rhasspytts_cli_hermes: Publishing 151 bytes(s) to hermes/tts/sayFinished
[DEBUG:2022-08-19 17:40:58,483] rhasspydialogue_hermes: <- TtsSayFinished(site_id='default', id='c2e1be0f-d420-4678-aa12-553b323e31bc', session_id='default-blueberry_raspberry-pi-c8c8fcd6-d408-4a36-b611-dc578ef46c06')

Edit:

HassLightSet Is also in English only.