@pploume wrote:
Hi,
Just playing around with HA and Rhasspy.
I’m able to send “text to speech” from HA to Rhasspy …
I would like to be able to send a command to make Rhasspy waiting for a sentence (then create an intent and send it to HA)What I use is :
in configuration.yaml (the part tts: work perfectly…)rest_command: tts: url: 'http://192.168.0.3:12101/api/text-to-speech' method: 'POST' content_type: text/plain payload: '{{payload}}' wake: url: 'http://192.168.0.3:12101/api/listen-for-command?nohass=false' method: 'POST' content_type: text/plain payload: '{{payload}}'
and the call in automation.yaml
- alias: 'Aide Generale' trigger: platform: event event_type: rhasspy_AideGenerale action: - service: light.turn_on entity_id: light.bureau - service: rest_command.tts data_template: payload: > {% set aide = trigger.event.data.aidegenerale %} {% if trigger.event.data.aidegenerale %} "Je peux m'occuper des lumières ou de la radio, dites aide lumière ou aide radio" {% else %} "y'a pas d'aide" {% endif %} } - service: rest_command.wake data: {payload: ""}
In Rhasspy log, I see nothing about receiving a command from API
nor I can hear the ready ‘ding’ … like if I use the command from Rhasspy API web interface.Thanks for your help
p
Posts: 1
Participants: 1