No answer from Home Assistant

Hey,

I’m new to this stuff so please forgive me if the only problem here is my stupidity.
My problem: I recently set up Rhasspy and Home Assistant but I can’t get it to work properly. Rhasspy works fine. It wakes up, recognizes my voice and gets the intents. But I won’t get an answer. The first thing I tried was to get the time. My Configfile:

default_config:

homeassistant:
name: Home
latitude: 54.09311
longitude: 13.38786
unit_system: metric
time_zone: Europe/Berlin
http:
ip_ban_enabled: false

rest_command:
rhasspy_speak:
url: ‘http://192.168.178.38:12101/api/text-to-speech
method: ‘POST’
payload: ‘{{ payload }}’

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

sensor:

  • platform: time_date
    display_options:
    • ‘time’
    • ‘date’
    • ‘date_time’
    • ‘date_time_utc’
    • ‘date_time_iso’
    • ‘time_date’
    • ‘time_utc’
    • ‘beat’

intent:

intent_script:
GetTime: # Intent type
speech:
text: We have {{ states.sensor.time }}
action:
service: notify.notify
data_template:
message: Hello from an intent!

I don’t get an error or any response with that. Did I do something wrong here? According to Home Assistant this file should work.

If you want Rhassy to speak, you need to have rest_command.rhasspy_speak as service, not notify.notify

Thanks for your answer, but unfortunately it didn’t work.
I changed that, saved and restarted Home Assistant but still no reply.

Can you share your yaml?
Please format it correctly for readablility

Use the </> button in the editor

Hi jona,

may be this is not what you like to hear - but i started with home assistant and rhasspy. But if it comes to automations and scripting i found it easier (and even less time consuming) to add node red to the mix (as home assistant add on). It has all the things to interact with home assistant on board. Some guy at the net wrote a nice how to: https://cstan.io/?p=11925&lang=en
I am sure - that will give you an answer out of your home automation system :slight_smile:

Kind Regards
Chewy

This works for me:

[Homeassistant - configuration.yaml]

rest_command:
  rhasspy_speak:
    url: 'http://**RHASSPY_IP**:12101/api/text-to-speech'
    method: 'POST'
    payload: '{{ payload }}'

intent_script:
   IntentTest:
       action:
           - data_template:
               payload: 'Test'
             service: rest_command.rhasspy_speak

[Rhasspy - profile.json]

    "text_to_speech": {
        "marytts": {
            "locale": "de",
            "url": "**MARYTTS_IP**:59125/process"
        },
        "system": "marytts"
    },

You only need a “[IntentTest]” (Or whatever you want) in your rhasspy “sentences.ini”.

I hope that helps :slight_smile: