Skip to content

baldarn/whatsapper-ha-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hacs_badge

Whatsapper integration

The integration to use Whatsapper in home assistant!

Getting started

Install Whatsapper add on.

You can find that in alexbelgium

Installation

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

Configuration

To use Whatsapper notifications edit the configuration.yaml file.

notify:
  - platform: whatsapper
    name: some name that you want
    chat_id: [email protected] # WhatsApp chat id (see below)

Get chat id

To get all you chat ids, go on the web browser and call (using your home assistant ip):

http://192.168.1.123:4000/chats

Search and find the chat where you want to send messages and get it's id

Whatsapper host_port configuration

If your whatsapper instance is somewhere else, you can specify that:

notify:
  - platform: whatsapper
    name: some name that you want
    host_port: 192.168.1.123:4000 # host:port of the whatsapper instance
    chat_id: [email protected] # WhatsApp chat id

Send an image

You can send images in base64 format. Use the service with the data parameter like this

image: iVBORw0KGgoAAAANSUhEUgAAAV4AAACWBAMAAABkyf1EAAAAG1BMVEXMzMyWlpacnJyqqqrFxcWxsbGjo6O3t7e+vr6He3KoAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAEcElEQVR4nO2aTW/bRhCGh18ij1zKknMkbbf2UXITIEeyMhIfRaF1exQLA/JRclslRykO+rs7s7s0VwytNmhJtsA8gHZEcox9PTs7uysQgGEYhmEYhmEYhmEYhmEYhmEYhmEYhmEYhmEYhmEYhmGYr2OWRK/ReIKI8Zt7Hb19wTcQ0uTkGh13bQupcw7gPOvdo12/5CzNtNR7xLUtNtT3CGBQ6g3InjY720pvofUec22LJPr8PhEp2OMPyI40PdwWUdronCu9yQpdPx53bQlfLKnfOVhlnDYRBXve4Ov+IZTeMgdedm0NR+xoXJeQvdJ3CvziykSukwil16W/Oe7aGjIjqc/9ib4jQlJy0uArtN4A0+cvXFvDkmUJ47sJ1Y1ATLDNVXZkNPIepQzxy1ki9fqiwbUj/I+64zxWNzyZnPuhvohJ9K70VvXBixpc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