Now it tells me that it expects a float for temperature. Script and trace below:
up_two_degrees:
alias: Up two degrees
variables:
front_therm_setpoint: state_attr('climate.touchscreen_comfort_control_thermostat','temperature') + 2
test_setpoint: 82
sequence:
action: climate.set_temperature
target:
entity_id: climate.touchscreen_comfort_control_thermostat
data:
temperature: "{{ front_therm_setpoint }}"
description: up 2 degrees
icon: mdi:air-conditioner
{
"trace": {
"last_step": "sequence/0",
"run_id": "b87859f1b0dbe97bf02e91577a72ffa9",
"state": "stopped",
"script_execution": "error",
"timestamp": {
"start": "2024-11-15T21:28:04.270712+00:00",
"finish": "2024-11-15T21:28:04.280224+00:00"
},
"domain": "script",
"item_id": "up_two_degrees",
"error": "expected float for dictionary value @ data['temperature']",
"trace": {
"sequence/0": [
{
"path": "sequence/0",
"timestamp": "2024-11-15T21:28:04.272320+00:00",
"changed_variables": {
"front_therm_setpoint": "state_attr('climate.touchscreen_comfort_control_thermostat','temperature') + 2",
"test_setpoint": 82,
"this": {
"entity_id": "script.up_two_degrees",
"state": "off",
"attributes": {
"last_triggered": "2024-11-15T21:27:03.726114+00:00",
"mode": "single",
"current": 0,
"icon": "mdi:air-conditioner",
"friendly_name": "Up two degrees"
},
"last_changed": "2024-11-15T21:27:50.744475+00:00",
"last_reported": "2024-11-15T21:27:50.744475+00:00",
"last_updated": "2024-11-15T21:27:50.744475+00:00",
"context": {
"id": "01JCRVK9PRA9DM8XP629ZWB3QS",
"parent_id": null,
"user_id": null
}
},
"context": {
"id": "01JCRVKPXED9FQR52BDBQVGHHC",
"parent_id": null,
"user_id": "c0d2fe7812da474195e3950d945b961c"
}
},
"error": "expected float for dictionary value @ data['temperature']",
"result": {
"params": {
"domain": "climate",
"service": "set_temperature",
"service_data": {
"temperature": "state_attr('climate.touchscreen_comfort_control_thermostat','temperature') + 2",
"entity_id": [
"climate.touchscreen_comfort_control_thermostat"
]
},
"target": {
"entity_id": [
"climate.touchscreen_comfort_control_thermostat"
]
}
},
"running_script": false
}
}
]
},
"config": {
"alias": "Up two degrees",
"variables": {
"front_therm_setpoint": "state_attr('climate.touchscreen_comfort_control_thermostat','temperature') + 2",
"test_setpoint": 82
},
"sequence": {
"action": "climate.set_temperature",
"target": {
"entity_id": "climate.touchscreen_comfort_control_thermostat"
},
"data": {
"temperature": "{{ front_therm_setpoint }}"
}
},
"description": "up 2 degrees",
"icon": "mdi:air-conditioner"
},
"blueprint_inputs": null,
"context": {
"id": "01JCRVKPXED9FQR52BDBQVGHHC",
"parent_id": null,
"user_id": "c0d2fe7812da474195e3950d945b961c"
}
},
"logbookEntries": [
{
"state": "on",
"entity_id": "script.up_two_degrees",
"icon": "mdi:air-conditioner",
"when": 1731706084.2714305,
"context_user_id": "c0d2fe7812da474195e3950d945b961c"
},
{
"state": "off",
"entity_id": "script.up_two_degrees",
"icon": "mdi:air-conditioner",
"when": 1731706084.2794733,
"context_user_id": "c0d2fe7812da474195e3950d945b961c",
"context_state": "on",
"context_entity_id": "script.up_two_degrees"
}
]
}