ClickSend TTS
The clicksend_tts
platform uses ClickSend
After creating your account, you should now be able to obtain your username
and api_key
here
To add ClickSend to your installation, add the following to your Home Assistant configuration.yaml
configuration.yaml 文件是 Home Assistant 的主要配置文件。它列出了要加载的集成及其特定配置。在某些情况下,需要直接在 configuration.yaml 文件中手动编辑配置。大多数集成可以在 UI 中配置。 [Learn more] file:
notify:
- platform: clicksend_tts
username: CLICKSEND_USERNAME
api_key: CLICKSEND_API_KEY
recipient: PHONE_NO
Configuration Variables
Setting the optional parameter name allows multiple notifiers to be created. The notifier will bind to the notify.NOTIFIER_NAME
action.
An E.164+14151234567
. This is the phone number that you want to call and notify via TTS, see ClickSend Documentation
The language you want to use to convert the message to audio. Accepted values are found in the ClickSend Documentation
Usage
ClickSend is a notify platform and thus can be controlled by calling the notify action as described here. It will send a notification to the E.164 phone number you configured as recipient.
alias: "The sun has set"
triggers:
- trigger: sun
event: sunset
actions:
- action: notify.clicksend_tts
data:
message: "The sun has set"