Send Home Assistant notifications to WhatsApp using WhatsPie
- Copy
custom_components/whatspie
directory into Home Assistant'sconfig/custom_components/
- Create a new notification service in your
configuration.yaml
file:
notify:
- name: send_wa
platform: whatspie
api_token: "<your whatspie api token>"
from_number: "<your whatspie phone number with country code prefix, e.g. 62111222333>"
country_code: "<your country code prefix, e.g. 62>"
-
Restart Home Assistant: Go to "Developer Tools", then press "Check Configuration" followed by "Restart"
-
Alternatively, you can install this integration from HACS by adding this github repository as a custom repository: https://hacs.xyz/docs/faq/custom_repositories/
Example automation configuration:
alias: Send Test Notification
description: ""
trigger: []
condition: []
action:
- service: notify.send_wa
data:
message: Test Notification -- HomeAssistant
target:
- "+621122334455"
mode: single