Automation YAML
alias: Close cover in the morning
description: ""
trigger:
- platform: time
at: "07:00:00"
condition: []
action:
- service: cover.set_cover_position
target:
area_id: bedroom
device_id: cf64f3079ef03a29d458a9993f6074e4
data:
position: 26
mode: single
Trace
{
"trace": {
"last_step": "action/0",
"run_id": "a2ef173464bdd6a0f6ccbb827fc886ff",
"state": "stopped",
"script_execution": "finished",
"timestamp": {
"start": "2024-04-24T06:41:34.257606+00:00",
"finish": "2024-04-24T06:41:34.295691+00:00"
},
"domain": "automation",
"item_id": "1713083324644",
"trigger": "time",
"trace": {
"trigger/0": [
{
"path": "trigger/0",
"timestamp": "2024-04-24T06:41:34.257935+00:00",
"changed_variables": {
"this": {
"entity_id": "automation.close_cover_in_the_morning",
"state": "on",
"attributes": {
"id": "1713083324644",
"last_triggered": "2024-04-23T07:26:10.926248+00:00",
"mode": "single",
"current": 0,
"friendly_name": "Close cover in the morning"
},
"last_changed": "2024-04-23T15:34:39.314363+00:00",
"last_reported": "2024-04-23T15:34:39.314875+00:00",
"last_updated": "2024-04-23T15:34:39.314363+00:00",
"context": {
"id": "01HW5SGGYJ5R2W6CPTSCNXZNJX",
"parent_id": null,
"user_id": null
}
},
"trigger": {
"id": "0",
"idx": "0",
"alias": null,
"platform": "time",
"now": "2024-04-24T08:41:34.256814+02:00",
"description": "time",
"entity_id": null
}
}
}
],
"action/0": [
{
"path": "action/0",
"timestamp": "2024-04-24T06:41:34.259685+00:00",
"changed_variables": {
"context": {
"id": "01HW7DD4HHAT2ZDFSGD471DHPE",
"parent_id": null,
"user_id": null
}
},
"result": {
"params": {
"domain": "cover",
"service": "set_cover_position",
"service_data": {
"position": 26,
"area_id": [
"bedroom"
],
"device_id": [
"cf64f3079ef03a29d458a9993f6074e4"
]
},
"target": {
"area_id": [
"bedroom"
],
"device_id": [
"cf64f3079ef03a29d458a9993f6074e4"
]
}
},
"running_script": false
}
}
]
},
"config": {
"id": "1713083324644",
"alias": "Close cover in the morning",
"description": "",
"trigger": [
{
"platform": "time",
"at": "07:00:00"
}
],
"condition": [],
"action": [
{
"service": "cover.set_cover_position",
"target": {
"area_id": "bedroom",
"device_id": "cf64f3079ef03a29d458a9993f6074e4"
},
"data": {
"position": 26
}
}
],
"mode": "single"
},
"blueprint_inputs": null,
"context": {
"id": "01HW7DD4HHAT2ZDFSGD471DHPE",
"parent_id": null,
"user_id": null
}
},
"logbookEntries": [
{
"name": "Close cover in the morning",
"message": "triggered by time",
"source": "time",
"entity_id": "automation.close_cover_in_the_morning",
"context_id": "01HW7DD4HHAT2ZDFSGD471DHPE",
"when": 1713940894.2584062,
"domain": "automation"
},
{
"when": 1713940894.424212,
"state": "closing",
"entity_id": "cover.sp2pm_roletnaprozor",
"context_event_type": "automation_triggered",
"context_domain": "automation",
"context_name": "Close cover in the morning",
"context_message": "triggered by time",
"context_source": "time",
"context_entity_id": "automation.close_cover_in_the_morning"
},
{
"when": 1713940894.87606,
"state": "open",
"entity_id": "cover.sp2pm_roletnaprozor",
"context_event_type": "automation_triggered",
"context_domain": "automation",
"context_name": "Close cover in the morning",
"context_message": "triggered by time",
"context_source": "time",
"context_entity_id": "automation.close_cover_in_the_morning"
}
]
}