Automation trigger from dynamic MQTT

I would like to listen for the following MQTT payload and have it act as an automation trigger:

{
  "event": "ERROR",
  "partition_id": 0,
  "error_type": "ARM_FAILED",
  "description": "Zones not bypassed",
  "version": 1,
  "nonce": "qolsys",
  "requestID": "864a86c9-2875-42dd-8654-81ee816d7f24"
}

However, the “requestID” in the payload changes with each MQTT message. Is there a way for me to use only part of the payload to act as a trigger, e.g., “description”: “Zones not bypassed”?

Yes. Look at the second example in the documentation: MQTT Trigger.

I don’t know how I missed that. Thank you!

1 Like