Help with correct MQTT trigger syntax in automation

Help with correct MQTT trigger syntax in automation. I can’t write it in such a way that the automation only works when the button is pressed correctly. ::
When I don’t specify the payload, automation works, but I don’t know how to correctly indicate in the payload that I only need to press the switch key.


image
Tell me how to correctly write a trigger for the single left one in this case

Thanks in advance

I found the answer to this question. It’s easy to check multiple values in the trigger section.

  • id: “15726685”
    alias: MQTT
    description: MQTT
    initial_state: true

    trigger:

    • platform: mqtt
      topic: zigbee2mqtt/Cube
      payload: “slide”
      value_template: “{{value_json.action}}”
      id: slide
    • platform: mqtt
      topic: zigbee2mqtt/Cube
      payload: “flip90”
      value_template: “{{value_json.action}}”
      id: flip
      condition:
      action:
    • choose:
      • conditions:
        • condition: trigger
          id: slide

I hope this will be useful. Good luck