[2025.2.0] MQTT payload_template depreciated

Yesterday I got the message, that in my heishamon.yaml there is a deprecation about payload_template in the theme “panasonic_heat_pump/commands/SetOperationMode” . I should use payload instead. What do I have to do, to get this repaired.

  #Sets heatmode to the selected value
  - alias: Set heatmode
    trigger:
      platform: state
      entity_id: input_select.heishamon_heatmode
    action:
      service: mqtt.publish
      data_template:
        topic: panasonic_heat_pump/commands/SetOperationMode
        retain: false #IMPORTANT! ALWAYS set retain flag false for commands!
        payload_template: >-
          {%- if states('input_select.heishamon_heatmode') == "Heizen" -%}
            0
          {%- elif states('input_select.heishamon_heatmode') == "WW" -%}
            3
          {%- elif states('input_select.heishamon_heatmode') == "Heizen+WW" -%}
            4
          {%- endif -%}

Can anyone advice?

It seems that you might just have to type payload: instead of payload_template:

@WallyR is correct, just replace payload_template with payload.

It works, thank you!