Getting this warning with 2024.8.0:
Deprecated
payload_templateoption used in MQTT publish action call to topiczigbee2mqtt/Lights/setfrom payload template{"led_effect": {"color": 170, "duration": 60, "effect": "pulse", "level": 100}}. Use thepayloadoption instead. In automations templates are supported natively. Update the automation or script to use thepayloadoption instead and restart Home Assistant to fix this issue.
I believe this line just needs to be changed from
payload_template: '{{ payload }}'
to
payload: '{{ payload }}'