t0mer / manish-custom-notifier

manish custom notifier allows you to send whatsapp notification using Whatsapp Cloud API
MIT License
18 stars 1 forks source link
homeassistant homeassistant-custom-component notifications python3 whatsapp whatsapp-api

hacs_badge

manish-custom-notifier-

manish custom notifier for HomeAssistant allows you to send whatsapp notification using Whatsapp Cloud API easily and with minimal configuration.

Limitations

Getting started

First you’ll need to follow the instructions on this page to:

Once you’ve done that, go to your app and set up the WhatsApp product.

New app

You’ll be given a temporary access token and a Phone Number ID, note these down as you’ll need them later. Set up your own phone number as a recipient and you can have a go at sending yourself a test message:

Getting started

Set Up Message Template

In the test message above, you used the hello_world template. You’ll need to set up your own template for your own purposes. If you go to “Message Templates” in the WhatsApp manager you can build your own templates.

In the following example, i created a template for my smat home. The template header if fixed and so is the footer. in the body i added variable for dynamic text:

Smart Home Template

Once you're done with the above ,you're ready to start send notifications using manish.

Installation

manish is now part ot the Default HACS repositories list. Just add it from the Integrations list.

Configuration

To use the custom notification, we need to add some linse to the configuration.yaml file.

notify:
  - platform: manish
    name: MaNish whatsapp notifire
    target: # WhatsApp number for notificatin (Without the + sign of the country_code)
    token: #T he token for the Whatsapp cloud API
    phone_number_id: #Phone number id from the Whatsapp cloud API
    template: # Template's name's to use
    language: # Template's language

Restart HomeAssistant and you should see a new service : manish custom component