I’m sorry, I currently only have time to do a rough explanation on how to do do it.
I have 3 task that can execute an action on my alarm.
- Set Armed througt an api call (and update a variable %Alarm to “armed”)
- Set Disarmed through an api call (and update the same variable)
- Set ArmedHome through an api call (and update the same variable)
Then make a task -> Alert -> Notify.
Title = Alarm
Text = %Alarm
Icon = choose
Permanent = check
Priority, it depends on what you want, I believe setting this to 1 does not show the notification in the upper bar, but does show when you pull down the notification shade.
Here you set one by one the 3 actions I had for switching status of the alarm, label, task and icon.
After this you are finished, in profiles make a profile that triggers when the variable %Alarm is updated, and exectute the above created task.
Note: This relies on your phone setting the variables, so if anyone else sets the alarm, your notification is not updated. I have on my system the pushover bundle configured, so when my alarm state changes, my phone gets a pushover with priority -2 (no notification) with the tasker support in pushover I set the %Alarm variable.thus updating the alarm state to my phone.
I wrote this mostly from memory, I changed my setup to use a quick settings tile in conjunction with my fingerprint reader.
Come to think of it, I used the http get for a while to get the status of the alarm…
I made a profile to poll the alarm status whenever I turned on the screen, with a maximum of once every 15 minutes, and not when I was at home. So no need for pushover.