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
orhttp://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
- In Domoticz goto
SETUP > SETTINGS
and select the tabNOTIFICATIONS
- 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
: entertext/plain
- Do not forget to push button:
Apply Settings
- Set field
Then create (spoken) notification(s):
- In Domoticz select the tab
SWITCHES
,TEMPERATURE
,WEATHER
orUTILITY
- Click on
NOTIFICATION
of the switch or sensor - 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 ONLYhttp
- Enter your notification parameters: