You can now send WhatsApp notifications from HA

After some days you will see!

2 Likes

I really donā€™t see the upside of thisā€¦ Why would you use whatsapp instead of just notifications that are native to your phone?

Unless it would allow you to send message to allocated numbers on events from (for example) nodered it is completely useless and even more so if you have to pay for this.

Am I missing something?

What do you mean by native phone notifications?
I am not aware of native HA notifications for the phone. Iā€™m not 100% sure, but I think it is necessary to set up a notifications platform (eg html5, telegram, etc.)

no i mean the native notification on your phoneā€¦ Just use nodered with the HA app on your phone to send noticifations.

maybe you could even do this with automations in HA itself? (never tried it)

1 Like

Iā€™m using the browser not HA app in my android smartphone. At this moment, to send notifications (text and pictures), Iā€™m using the node-red and Telegram. Itā€™s is working fine!

Hi @rolandg, your point is correct, for example, i started to use those notifications, but then due to permission regarding the android APP in newer android versions, you will need to have the app running in the background consuming battery. As Whatsup is already consuming on a daily basis, then itā€™s just a matter of taking advantage and avoid 2 apps consuming.

2 Likes

I just notice about the callmebot. Iā€™m trying to get the key by sending the whatapps message to that callmebot number. However, itā€™s been couple hours and i still havenā€™t get the reply of the key.

How long does it take to create the key? Is the callmebot in Home Assistant still working?

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!