#Was there a Change in Payload Templates??

1 messages · Page 1 of 1 (latest)

cobalt sedge
#

Hi, had the below automation working for quite some time, updated to 2025.3.0 this morning, and now I'm seeing this error:
Error while executing automation automation.test_thermostat: extra keys not allowed @ data['payload_template']

  - service: mqtt.publish
    data:
      topic: hermes/dialogueManager/endSession
      payload_template: '{"siteId": "{{ trigger.payload_json.siteId }}", "sessionId":
        "{{ trigger.payload_json.sessionId }}",  "text": "Okay, setting the themostat
        to ({{ trigger.payload_json.slots[0].value.value }}) degrees."}'

Thanks for any help!!!

tacit cedar
#

payload_template is no longer supported (this happened a few months ago). payload supports templates and should be used instead.

#

Also, services are now known as actions, but there is no plan to phase out the ability to use the old naming in YAML