Voici la trace de la première automatisation:
{
"trace": {
"last_step": "action/0",
"run_id": "c87f7c75a02cc2bb4b1ade2cf23c0b1f",
"state": "stopped",
"script_execution": "finished",
"timestamp": {
"start": "2023-04-12T18:38:58.560258+00:00",
"finish": "2023-04-12T18:38:58.564837+00:00"
},
"domain": "automation",
"item_id": "1681318134506",
"trigger": "numeric state of sensor.tz3000_2putqrmw_ts011f_active_power_2",
"trace": {
"trigger/0": [
{
"path": "trigger/0",
"timestamp": "2023-04-12T18:38:58.560374+00:00",
"changed_variables": {
"this": {
"entity_id": "automation.switch_voiture_en_charge",
"state": "on",
"attributes": {
"last_triggered": "2023-04-12T18:07:43.613138+00:00",
"mode": "single",
"current": 0,
"id": "1681318134506",
"friendly_name": "Switch voiture en charge"
},
"last_changed": "2023-04-12T18:07:47.946626+00:00",
"last_updated": "2023-04-12T18:07:47.946626+00:00",
"context": {
"id": "01GXVADZ7AC1GAY9VW2CTBEYE5",
"parent_id": null,
"user_id": "f327fb460f76481ebceca116c3a613cb"
}
},
"trigger": {
"id": "0",
"idx": "0",
"alias": null,
"platform": "numeric_state",
"entity_id": "sensor.tz3000_2putqrmw_ts011f_active_power_2",
"below": null,
"above": 2000,
"from_state": {
"entity_id": "sensor.tz3000_2putqrmw_ts011f_active_power_2",
"state": "0",
"attributes": {
"state_class": "measurement",
"unit_of_measurement": "W",
"device_class": "power",
"friendly_name": "Prise garage Active power"
},
"last_changed": "2023-04-12T16:34:28.293422+00:00",
"last_updated": "2023-04-12T16:34:28.293422+00:00",
"context": {
"id": "01GXV532T5HWKXSG89PJJYPPDZ",
"parent_id": null,
"user_id": null
}
},
"to_state": {
"entity_id": "sensor.tz3000_2putqrmw_ts011f_active_power_2",
"state": "2081",
"attributes": {
"state_class": "measurement",
"unit_of_measurement": "W",
"device_class": "power",
"friendly_name": "Prise garage Active power"
},
"last_changed": "2023-04-12T18:33:58.557506+00:00",
"last_updated": "2023-04-12T18:33:58.557506+00:00",
"context": {
"id": "01GXVBXX0X0CTAMGP43G47W3H9",
"parent_id": null,
"user_id": null
}
},
"for": {
"__type": "<class 'datetime.timedelta'>",
"total_seconds": 300
},
"description": "numeric state of sensor.tz3000_2putqrmw_ts011f_active_power_2"
}
}
}
],
"action/0": [
{
"path": "action/0",
"timestamp": "2023-04-12T18:38:58.560730+00:00",
"changed_variables": {
"context": {
"id": "01GXVC72008TKX4DVHJPJPN42R",
"parent_id": "01GXVBXX0X0CTAMGP43G47W3H9",
"user_id": null
}
},
"result": {
"params": {
"domain": "input_boolean",
"service": "turn_on",
"service_data": {},
"target": {
"entity_id": [
"input_boolean.voiture_en_charge"
]
}
},
"running_script": false,
"limit": 10
}
}
]
},
"config": {
"id": "1681318134506",
"alias": "Switch voiture en charge",
"description": "",
"trigger": [
{
"platform": "numeric_state",
"entity_id": "sensor.tz3000_2putqrmw_ts011f_active_power_2",
"for": {
"hours": 0,
"minutes": 5,
"seconds": 0
},
"above": 2000
}
],
"condition": null,
"action": [
{
"service": "input_boolean.turn_on",
"target": {
"entity_id": "input_boolean.voiture_en_charge"
}
}
],
"mode": "single"
},
"blueprint_inputs": null,
"context": {
"id": "01GXVC72008TKX4DVHJPJPN42R",
"parent_id": "01GXVBXX0X0CTAMGP43G47W3H9",
"user_id": null
}
},
"logbookEntries": [
{
"name": "Switch voiture en charge",
"message": "triggered by numeric state of sensor.tz3000_2putqrmw_ts011f_active_power_2",
"source": "numeric state of sensor.tz3000_2putqrmw_ts011f_active_power_2",
"entity_id": "automation.switch_voiture_en_charge",
"context_id": "01GXVC72008TKX4DVHJPJPN42R",
"when": 1681324738.560477,
"domain": "automation"
}
]
}