Hi,
Thanks for the quick response. I attached the trace but I am not sure if it was a failed attempt or a successful.
{
"trace": {
"last_step": "action/1",
"run_id": "7d4594d1801111d16f517a89eb1855e8",
"state": "stopped",
"script_execution": "cancelled",
"timestamp": {
"start": "2021-11-21T16:28:39.714628+00:00",
"finish": "2021-11-21T16:30:20.974297+00:00"
},
"domain": "automation",
"item_id": "1635175869643",
"trigger": "state of binary_sensor.combined_windows_livingroom",
"trace": {
"trigger/0": [
{
"path": "trigger/0",
"timestamp": "2021-11-21T16:28:39.715219+00:00",
"changed_variables": {
"this": {
"entity_id": "automation.turn_heating_wohnzimmer_off_if_fenster_open",
"state": "on",
"attributes": {
"last_triggered": "2021-11-21T15:06:13.979193+00:00",
"mode": "single",
"current": 0,
"id": "1635175869643",
"friendly_name": "Turn heating wohnzimmer off if fenster open"
},
"last_changed": "2021-11-21T16:27:12.313863+00:00",
"last_updated": "2021-11-21T16:27:12.313863+00:00",
"context": {
"id": "5e41aaecb387aced8e8590b52fb30762",
"parent_id": null,
"user_id": null
}
},
"trigger": {
"id": "0",
"idx": "0",
"platform": "state",
"entity_id": "binary_sensor.combined_windows_livingroom",
"from_state": {
"entity_id": "binary_sensor.combined_windows_livingroom",
"state": "off",
"attributes": {
"friendly_name": "combined_windows_livingroom"
},
"last_changed": "2021-11-21T16:15:37.464056+00:00",
"last_updated": "2021-11-21T16:15:37.464056+00:00",
"context": {
"id": "7b7a54d42b4c088bd6267cbb6e7871d1",
"parent_id": null,
"user_id": null
}
},
"to_state": {
"entity_id": "binary_sensor.combined_windows_livingroom",
"state": "on",
"attributes": {
"friendly_name": "combined_windows_livingroom"
},
"last_changed": "2021-11-21T16:28:31.711537+00:00",
"last_updated": "2021-11-21T16:28:31.711537+00:00",
"context": {
"id": "e488ae5ee291834be5c514c6ab01d67b",
"parent_id": null,
"user_id": null
}
},
"for": {
"__type": "<class 'datetime.timedelta'>",
"total_seconds": 8
},
"attribute": null,
"description": "state of binary_sensor.combined_windows_livingroom"
}
}
}
],
"condition/0": [
{
"path": "condition/0",
"timestamp": "2021-11-21T16:28:39.715485+00:00",
"result": {
"result": true
}
}
],
"condition/0/conditions/0": [
{
"path": "condition/0/conditions/0",
"timestamp": "2021-11-21T16:28:39.715615+00:00",
"result": {
"result": false
}
}
],
"condition/0/conditions/0/entity_id/0": [
{
"path": "condition/0/conditions/0/entity_id/0",
"timestamp": "2021-11-21T16:28:39.715742+00:00",
"result": {
"result": false,
"state": "heat",
"wanted_state": "off"
}
}
],
"action/0": [
{
"path": "action/0",
"timestamp": "2021-11-21T16:28:39.718208+00:00",
"changed_variables": {
"context": {
"id": "3ac2c6ad407eab5ca801265cbba7932f",
"parent_id": "e488ae5ee291834be5c514c6ab01d67b",
"user_id": null
}
},
"result": {
"params": {
"domain": "climate",
"service": "turn_off",
"service_data": {},
"target": {
"entity_id": [
"climate.thermostat_wohnzimmer"
]
}
},
"running_script": false,
"limit": 10
}
}
],
"action/1": [
{
"path": "action/1",
"timestamp": "2021-11-21T16:28:39.729057+00:00",
"result": {
"wait": {
"remaining": null,
"trigger": null
}
}
}
]
},
"config": {
"trigger": [
{
"platform": "state",
"entity_id": "binary_sensor.combined_windows_livingroom",
"to": "on",
"for": 8
}
],
"condition": [
{
"condition": "not",
"conditions": [
{
"condition": "state",
"entity_id": "climate.thermostat_wohnzimmer",
"state": "off"
}
]
}
],
"action": [
{
"service": "climate.turn_off",
"entity_id": "climate.thermostat_wohnzimmer"
},
{
"wait_for_trigger": [
{
"platform": "state",
"entity_id": "binary_sensor.combined_windows_livingroom",
"to": "off"
}
],
"continue_on_timeout": false
},
{
"service": "climate.turn_on",
"entity_id": "climate.thermostat_wohnzimmer"
}
],
"id": "1635175869643",
"alias": "Turn heating wohnzimmer off if fenster open",
"description": ""
},
"blueprint_inputs": {
"id": "1635175869643",
"alias": "Turn heating wohnzimmer off if fenster open",
"description": "",
"use_blueprint": {
"path": "SmartLiving.Rocks/window-open-climate-off.yaml",
"input": {
"window_entity": "binary_sensor.combined_windows_livingroom",
"climate_target": "climate.thermostat_wohnzimmer",
"minimum_open_time": 8
}
}
},
"context": {
"id": "3ac2c6ad407eab5ca801265cbba7932f",
"parent_id": "e488ae5ee291834be5c514c6ab01d67b",
"user_id": null
}
},
"logbookEntries": [
{
"when": "2021-11-21T16:28:39.730541+00:00",
"name": "Wohnzimmer Heizung",
"state": "off",
"entity_id": "climate.thermostat_wohnzimmer",
"context_domain": "climate",
"context_service": "turn_off",
"context_event_type": "call_service",
"message": "turned off"
}
]
}