Send Domoticz Notifications to Rhasppy - albertmon/smarthome GitHub Wiki

How to let Rhasspy speak Domoticz notifications

In this How to, you learn your Rhasspy speak Domoticz notifications.

What you need:

  • Your Rhasspy url e.g. http://localhost or http://192.168.0.123
  • Your Rhasspy port: default 12101

Rhasspy is probably running in a Docker container.
To be able to call the Rhasspy API, be sure that the Rhasspy port is exposed by the Docker run command -p parameter.
E.g.: -p 12101:12101

  • The api call: /api/text-to-speech

First setup the http connection to Rhasspy

  1. In Domoticz goto SETUP > SETTINGS and select the tab NOTIFICATIONS
  2. Goto the part labeled: CUSTOM HTTP/ACTION
    • Set field Enabled Checked
    • In field URL/Action enter the URL for Rhasspy. E.g.: http://localhost:12101/api/text-to-speech
    • In field POST Data: enter #MESSAGE
    • In field POST Content-Type: enter text/plain
    • Do not forget to push button: Apply Settings

Then create (spoken) notification(s):

  1. In Domoticz select the tab SWITCHES, TEMPERATURE, WEATHER or UTILITY
  2. Click on NOTIFICATION of the switch or sensor
  3. Add a notification:
    • Enter your notification parameters: Type:, When:, Value:, Priority:
    • In field Custom Message: enter your text to speak. E.g.: the tablelamp is switched on
    • In field Active Systems: enable ONLY http