Json in automation

When the alarm in on I get the following message

I need something like the following in my automation

- alias: 'Alarm Detected'
  trigger:
    - platform: state
      entity_id: alarm_control_panel.mqtt_alarm
      to: "Strobe"
    - platform: state
      entity_id: alarm_control_panel.mqtt_alarm
      to: "Bell on"
  action:
    - service: notify.mobile_app_sm_g955f
      data:
        title: 'attention'
        message: "House Alarm!"
        data:
          ttl: 0
          priority: high

How can I implement this?

How about something like this?

- alias: 'Alarm Detected'
  trigger:
   -  platform: mqtt
      topic: paradoxdCTL/out
  condition:
    condition: template
    value_template: >
      {{ trigger.payload_json.sub_eventD in ['Strobe', 'Bell on'] }}
  action:
    - service: notify.mobile_app_sm_g955f
      data:
        title: 'attention'
        message: "House Alarm!"
        data:
          ttl: 0
          priority: high
1 Like

Thanks, it looks good.
Right now everybody sleeps, so I will test it tomorrow morning.

Thank you!

1 Like

Hi Taras
I hope you are fine!

Regarding my (Paradox) alarm sometimes although the alarm is armed the status in HA remains as disarmed. It is a known bug (?) and the person who made this project has told to send a “status request” but I really don’t know how I could do this.

here is what I think I should read but as I said I don’t understand much.

So if / when you have time and the knowledge please seed some light.

EDIT: I think I found the solution. Thanks anyway…