Jinja2 basic question

Hi everybody,

sorry for my ignorance, but I’m stuck on sytax :frowning:
Basically I want
payload: "{{ states('switch.scheduler_thermostat_0' + '3'}}"

Where the last number has to be a result of another (time)function.
But how can I nest this function?
Following does not seem to work:
payload: "{{ states('switch.scheduler_thermostat_0' + {{1+2}} }}"

Can anybody help me with the correct syntax?

many thanx,
Bart

ok, I finally found it.
Took me a while, but hopefully somebody has some benefits of this :slight_smile:

payload: "{{ states('switch.scheduler_thermostat_0' ~ (1+2) }}"