There are number of ways to send Home Assistant notifications to user smart phones. Everyone is using Whatsapp so why not we get notified about activities at our home via Whatsapp? Here we are discussing an unofficial whatsapp WAPS plugin which is the part of AutoApps Automation & Mesaging Platform asolutely for free.
Contents:
Sending Home Assistant Notification using Whatsapp:
Step I: Signup for an account:
- Visit https://web.autoapps.cc and tap on I don’t have an account at the bottom of the page.
- Follow the on-screen information to register an account.
- Complete information can be found on the Autoapps Blog post i.e. I do not have an account! How can I use Autoapps services?.
- There is no need to subscribe for paid plans as for now, it offers 500 free messages on 10 different numbers every month in its Tier-Free Plan, which are sufficient for our use.
Step II: Link you Whatsapp with AutoApps WAPS:
- Login to AutoApps at https://web.autoapps.cc.
- After login it welcomes you with a landing page which tells that you are not logged into WAPS.
- Click on Login to WAPS Ultimate and it will show a QR Code similar to Whatsapp Web.
- Open your Whatsapp app and tap on little hamburg icon.
- Tap on Linked Devices > Link a device.
- Now scan the WAPS Ultimate QR code and you are ready to play with all features of AutoApps WAPS Plugin.
Step III: Get API Key:
- Hower the cursor to little user icon on top right corner to access the user menu.
- Tap on Edit Details.
- Copy the User Id and API Key which we shall use later on.
Step IV: Home Assistant Notification:
- Add the following lines in the configuration.yaml file to create a new REST Notify service.
configuration.yaml:
notify: - name: AutoApps WAPS platform: rest resource: https://rest.autoapps.cc/api/v2/send/text method: POST_JSON headers: content-type: 'application/json' data: uid: "userID" #Enter your User Id key: "BO1XXXXV8EXX6" #Enter your API Key number: "+12345678900" #Enter your Whatsapp number where you want to receive notification message: "{{ message }}"
- Change
uid
,key
andnumber
according to your own User Id, API Key and Whatsapp. - For more information visit the AutoApps – Using Application Programming Interface (API) post.
Step V: Testing Notification:
- Under your Home Assistant instance, navigate to Developer Tools > SERVICES.
- Choose Notifications: Send a notification with autoapps_waps from Service
- Add the following lines and click CALL SERVICE.
service: notify.autoapps_waps data: { message: Hello from Home Assistant }
- You will get a whatsapp message at given number from your own Whatsapp number.
- Now you may use this notification service with Home Assistant Automation.