[FIXED] Template and variables not evaluated

hey all :slight_smile: i m having trouble with a template ( again )

- service: 'mqtt.publish'
      data:
        payload_template: '{"intentFilter": "Again", "sessionId": {{session_id}}, "customData": {{volume}} }'
        topic: 'hermes/dialogueManager/continueSession'
        retain: true
    - service: 'persistent_notification.create'
      data_template:
        message: '{{session_id}}'

the mqtt published is:

{"intentFilter": "Again", "sessionId": , "customData":  }

the variables are not evaluated in the payload
but i do get the session_id in the notification :confused:
tryed to several escapes strings but cant find why

thank you for your help

    - service: 'mqtt.publish'
      data_template:
        payload_template: '{"intentFilter": "Again", "sessionId": {{ session_id }}, "customData": {{ volume }} }'
        topic: 'hermes/dialogueManager/continueSession'
        retain: true
    - service: 'persistent_notification.create'
      data_template:
        message: '{{session_id}}'

forgot the data_template

Rather than editing your topic title, there’s a ‘solved’ button under your post.

didnt notice:) thank you :slight_smile: