arifwn / homeassistant-whatspie-integration

Send HomeAssistant Notifications to WhatsApp using WhatsPie

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

homeassistant-whatspie-integration

Send Home Assistant notifications to WhatsApp using WhatsPie

Installation

  • Copy custom_components/whatspie directory into Home Assistant's config/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/

Usage

Example automation configuration:

alias: Send Test Notification
description: ""
trigger: []
condition: []
action:
  - service: notify.send_wa
    data:
      message: Test Notification -- HomeAssistant
      target:
        - "+621122334455"
mode: single

About

Send HomeAssistant Notifications to WhatsApp using WhatsPie

License:GNU General Public License v3.0


Languages

Language:Python 100.0%