How can I work with this MQTT payload from Z-Wave JS UI?

I send out a message to the two Z-Wave JS UI instances on my network to check that the devices are online every minute, with five different devices on a rotating basis. I have been using Node-RED to receive the answer and send it to the “keep alive system” (which is on a separate device and can restart the container, reboot the Pi with SSH if that doesn’t work or even turn on and off again the Shelly that the Pi is plugged into if everything else fails), but I would like to get everything into Home Assistant.

The message that is received by Node-RED is this:

In Node-RED, a switch node checks if msg.payload.success contains true, and if it does sends the message “Z-Wave is alive” to the keep alive system. I am using a persistant notification to find the correct way of using the payload, but I’m failing miserably. This is the code:

triggers:
  - trigger: mqtt
    options:
      topic: zwave/_CLIENTS/ZWAVE_GATEWAY-zwave-js-ui/api/refreshCCValues
conditions: []
actions:
  - action: notify.persistent_notification
    data:
      title: "{{ now() | as_local }}"
      message: |+

      data: "{{'trigger.payload_json.success'}}"
    enabled: true
mode: single

I thought that payload_json.success would be the correct, but traces gives me this error:

Feil: expected dict for dictionary value @ data['data']
Resultat:
params:
  domain: notify
  service: persistent_notification
  service_data:
    title: '2026-04-19 14:58:01.495285+02:00'
    message: |+

    data: trigger.payload_json.success
  target: {}
running_script: false

If I only use trigger.payload_json I don’t get the error, but I get a notification that only contains the time and date. Can somebody please tell me what I’m doing wrong here? This is a JSON payload, right?