I have an Ecobee 3 thermostat, and I’d like to include a simple way to bump up the temperature by 3 degrees (F) - something for my wife to click when she just feels chilly. I can get an acceptable (not ideal) user interface by writing a script, and then including script:thermostat_increase_3 in a group.
But I can’t get the script to let me do inline math. I’m feeling very stupid; I’m a newbie.
Comments inline below show both what I want and some things I’ve tried.
# In scripts.yaml
thermostat_increase_3:
alias: Increase 3 degrees
sequence:
- service: climate.set_temperature
data:
entity_id: climate.myecobee
# Next line WORKS but doesn't accomplish what I want
# temperature: 70
# Simple test fails, doing any kind of math fails with "expected float for dictionary value @ data['temperature']. Got '65.1 + 10.1'"
temperature: 65.1 + 10.1
# Next line is what I'm actually trying to do; it fails with "expected float"
# temperature: (3 + states.climate.myecobee.attributes.temperature )
I’ve tried a stupid number of iterations of brackets and curly brackets and | floats and can’t get anywhere.
Help, please?