Hi @TGouws. Apologies for the delay, it has been a hetic work week and just finished. Oki doki, so high level, this is the steps I took to make sure my webhook works
-
Create a new Automation. Add a new trigger. The trigger should be webhook.
-
This will auto generate a webhook ID.
-
Create a new TEMPLATE Condition in the automation. Mine is a little bit complex. But to get you started, click condition, select template and add the json code. Example: {{trigger.json.eventState == ‘arm’}}. The arm attribute can be replaced by disarm, sleep, bypass etc. More information can be found on Olarm’s API docs Olarm - User Portal
-
Under action, I setup a delay for 1 minute as the API takes a few seconds to update and show the correct state. This is only needed as i send a actionable notification to my mobile device and would prefer to see the correct state
-
Afterwards i set the second action to notify my mobile devices or tablets. Example of this
service: notify.mobile_app_wall_tablet
data:
message: >-
Inside Area set to {{states('sensor.olarm_status_for_inside_area')}} and
Outside Area to {{states('sensor.olarm_status_for_outside_area')}}
title: ALARM STATUS
- Important to note, i setup a separate sensor template to show the status of my Inside and Outside area so that i can display the correct state when the notification is send.
Ok, almost done, for all of this to work we still need to enable the webook for the above and then copy the Nabu Casa webhook to Olarm.
So for the Home Assistant part. Save your automation, then go SETTINGS → HOME ASSISTANT CLOUD. Scroll to the bottom and enable the Webhook. You can give a friendly name so that you do not forgot it.
Once done, click on MANAGE and copy the webhook URL. This URL must be pasted under Olarm under the “Setup Webhook” setting. Add a secret and save.
Test your automation. Hope this helps