YAML syntax muddle

Help please! I’m using the script below to send the temperature to one of my TRVs. The script worked fine, but I now want to add an offset temperature. So I added: “+ input_number.offset_br3”. The script doesn’t work anymore. What am I doing wrong? Sorry, I don’t understand YAML very well…

action: climate.set_temperature
metadata: {}
data:
temperature: “{{ states(‘input_number.target_temperature + input_number.offset_br3’) | float }}”
target:
entity_id:
- climate.loft_bedroom

temperature: "{{ states('input_number.target_temperature') | float(0) + states('input_number.offset_br3') | float(0) }}"

The part you are having trouble with is not YAML, it’s Jinja2 templating.

1 Like

Thanks so much! That’s my problem solved… :grinning:

1 Like