わかりましたので、ホームアシスタントを使用して、twilio API を使用して、1 日の特定の時間にメッセージを自動的に送信しています。
https://home-assistant.io/getting-started/troubleshooting-configuration/
これはすべて configuration.yaml ファイルで行われるため、私の場合は次のようになります。
notify:
- name: Cody Wirth
platform: twilio_sms
account_sid: AC8a4f2f40331bdad5c95265f2cefe26a2
auth_token: 33a693e18dcad513d4791c51f1071227
from_number: "+16142896777"
automation:
- alias: Send message at a given time
trigger:
platform: time
hours: 24
minutes: 47
seconds: 15
action:
service: notify.twilio_sms
data:
message: 'The sun has set'
target:
- "+16147059227"
私の構文に何か問題がありますか? メッセージが自分の電話に届くようにするために、Twilio 側で設定する必要があるものはありますか? メッセージの送信を自動化しても、何も起こりません。
わかりましたので、これはそれが返すエラーです:
"17-01-12 08:17:44 WARNING (MainThread) [homeassistant.core] Unable to find service notify/twilio_sms"