New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alarm Triggered by what Zone Notify #344
Comments
@FigJam23 are you by any chance using the home assistant integration? I have done this via an automation in Home Assistant. Adding it below if anyone is interested. Create an input text helper: alias: Paradox Zone In Alarm
description: ""
trigger:
- platform: mqtt
topic: paradox/states/zones/+/generated_alarm
payload: "True"
condition: []
action:
- service: input_text.set_value
data:
value: >-
Zone: {{ trigger.topic | regex_replace(find='paradox/states/zones/',
replace='', ignorecase=True) | regex_replace(find='/.*', replace='',
ignorecase=True)| regex_replace(find='_', replace=' ', ignorecase=True)
| lower}}
target:
entity_id: input_text.last_zone_in_alarm
- delay:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
- service: notify.notify
data:
title: Alarm
message: The alarm went of in {{ states('input_text.last_zone_in_alarm') }}
mode: single Note: the regex replaces can be simplified by a split on '/' and then selecting the index but leaving it as is for now. I am currently testing the |
This looks amazing thanks definitely be cool to play with, |
It's a pleasure, from my understanding with regards to multiple zones is that the automation above will send a notification for each zone, I have yet to tests this though. To view the zones triggered you can add the entity When it comes to setting up these templates I mostly use mqtt explorer and view the topics and the values sent to these and not the actual Pai logs. I then make use of the mqtt template to configure them as required. Example of browsing the systems/troubles topic: You could also as an example do graphs on the system voltages, by looking at the topics under paradox/states/system/power/ |
Dosn't work for me this way. I got this the easiest way. |
I am struggling to understand this. I already have an automation that notifies me what partition was triggered. I just want to add the zone that triggered. Your code given confuses me. Please help? Can i not just add a line of yaml in my existing automation under the 'data' section that can just give me the zone name? Thank you |
Try something like this might work just adjust yours to suit
|
Is there a easy way to get the triggered by what Zones when armed. I get armed disarmed triggered via the Pai alarm Panel but it would be nice if the alarm panel integration could show what Zone or zones have been triggered while armed and push them to notify mobile app
The text was updated successfully, but these errors were encountered: