You can now send WhatsApp notifications from HA

Yes. It is still working. Try to send the phrase again to get the apikey. Tip: Doublecheck the syntax to ensure that it is correct (exact match)
If you have problems, you can contact support ([email protected]).

I have just now configured the callmebot for myself. It’s still working. It takes about a minute for the API key to arrive. And also about a minute for each notification.

This is great! I also have the question with regards to privacy regarding these notifications. @borjamartinez are you able to read these or are these encrypted?

Also, there seems to be a delay of about 1 min between each text. Is that normal?

Messages are not stored in the DB but are visible by PHP when you call the API so please do not send confidential or sensitive information.

Yes. It is normal to have a small delay on the messages sent.

Great, thanks for confirming. Really good work with this!

1 Like

As of 2020.12 (possibly since 0118.x) the WhatsApp notifications will no longer work.

There seems to have been an incompatible change to the REST integration.

The issue is on github already:
https://github.com/home-assistant/core/issues/43576
https://github.com/home-assistant/core/issues/44210

The workaround is to downgrade the rest integration https://community.home-assistant.io/t/rest-sensor-not-working-after-118-update/247930/2, so Whatsapp notifications work again:

1 Like

As of 2021 May, the WhatApp notification works like a charm :smile:

I tested it very useful to send me a message when my wife is away from home.

2 Likes

Wow! thanks a lot.
Just the thing that I’ve been looking for.

Any possibility or plans for notifications to WhatsApp group?

3 Likes

Imagine that as api keys are tied to specific numbers that won’t work. Wonder if WhatsApp can be trained to forward automatically.

Is there also a possibility to add multiple numbers in home assistant in combination with. whatsapp?

Should multiple APIs be created or is 1 sufficient?

What does that config look like?

You need to create multiple APIkeys. One per phone number.
And then create multiple notify rest components and call one after the other in the Automation.

notify:
  - name: WhatsApp1
    platform: rest
    resource: https://api.callmebot.com/whatsapp.php
    data:
      source: HA
      phone: +49123123123
      apikey: 123456
  - name: WhatsApp2
    platform: rest
    resource: https://api.callmebot.com/whatsapp.php
    data:
      source: HA
      phone: +49456456456
      apikey: 456789

Not very efficient but it is working fine.

1 Like

I was wondering if it is possible to send attached images?

1 Like

That would be great indeed!

Many thanks for this, works perfectly and means I can send messages for those that don’t have Telegram (yet!!).

this is so cool, thanks for setting this up!
Any progression on being able to send images?

Did some tinkering and managed to get Whatsapp to send a weblink to an internal image that I wanted to share. Only issue though is you need a static IP (or functional Dynamic DNS name) and appropriate FW rules. But it works! :slight_smile:

1 Like

Can someone guide please how to send whatsapp mesaage to multiple numbers. I have got 2 api keys and struggling with yaml code. I tried following but its invalid.

Something like this

notify:
  - name: Phone1
    platform: rest
    resource: https://api.callmebot.com/whatsapp.php
    data:
      source: HA
      phone: +987654
      apikey: 689899
  - name: Phone2
    platform: rest
    resource: https://api.callmebot.com/whatsapp.php
    data:
      source: HA
      phone: +123456
      apikey: 123987 
1 Like

Hi there,
yes, you have this option to send to HA notifications to whatsapp groups:

Enjoy it!

2 Likes

Thanks, tried this and it does not work. I can send was messages to myself through that Api but it simply will not set up a group. The bot will create the group just fine as per the API instructions and add me as the admin, but when I send the “group-id” command to get the group id so I can actually send messages to the group the bot will just not respond back with the group ID as per the API description.