J’ai bien un fichier json
, mais je vois rien :
{
"trace": {
"last_step": "action/1",
"run_id": "6ace0ea1f108d01d3e5c5c689948b487",
"state": "stopped",
"script_execution": "finished",
"timestamp": {
"start": "2024-04-20T10:28:05.536340+00:00",
"finish": "2024-04-20T10:28:08.254181+00:00"
},
"domain": "automation",
"item_id": "1712750803094",
"trigger": null,
"trace": {
"trigger": [
{
"path": "trigger",
"timestamp": "2024-04-20T10:28:05.536567+00:00",
"changed_variables": {
"this": {
"entity_id": "automation.garage_door_open_notification",
"state": "on",
"attributes": {
"id": "1712750803094",
"last_triggered": "2024-04-18T09:17:26.553597+00:00",
"mode": "single",
"current": 0,
"friendly_name": "Sécurité - Alerte - Garage - Porte"
},
"last_changed": "2024-04-20T09:26:11.922748+00:00",
"last_reported": "2024-04-20T09:26:42.330602+00:00",
"last_updated": "2024-04-20T09:26:11.922748+00:00",
"context": {
"id": "01HVXD7PPJCSVNX7SCXZ7D5CDP",
"parent_id": null,
"user_id": null
}
},
"trigger": {
"platform": null
}
}
}
],
"action/0": [
{
"path": "action/0",
"timestamp": "2024-04-20T10:28:05.538068+00:00",
"changed_variables": {
"context": {
"id": "01HVXGS1908Y6Z7CQXVJNW6BSC",
"parent_id": "01HVXGS18Z1YMX42Q7S4KCE43G",
"user_id": null
}
},
"result": {
"params": {
"domain": "notify",
"service": "notify",
"service_data": {
"message": "Porte du garage ouverte"
},
"target": {}
},
"running_script": false
}
}
],
"action/1": [
{
"path": "action/1",
"timestamp": "2024-04-20T10:28:08.229879+00:00",
"result": {
"params": {
"domain": "tts",
"service": "speak",
"service_data": {
"cache": true,
"media_player_entity_id": "media_player.assistants_vocaux",
"message": "la porte du garage est ouverte",
"language": "fr",
"entity_id": [
"tts.google_fr_fr"
]
},
"target": {
"entity_id": [
"tts.google_fr_fr"
]
}
},
"running_script": false
}
}
]
},
"config": {
"id": "1712750803094",
"alias": "Sécurité - Alerte - Garage - Porte",
"description": "",
"trigger": [
{
"platform": "state",
"entity_id": [
"cover.smart_garage_door_2201056910492536102948e1e98494c8_garage"
],
"for": {
"hours": 0,
"minutes": 0,
"seconds": 2
},
"to": "opening"
}
],
"condition": [
{
"condition": "time",
"after": "22:35:00",
"before": "06:00:00",
"weekday": [
"mon",
"tue",
"wed",
"thu",
"fri",
"sat",
"sun"
]
}
],
"action": [
{
"service": "notify.notify",
"data": {
"message": "Porte du garage ouverte"
}
},
{
"service": "tts.speak",
"metadata": {},
"data": {
"cache": true,
"media_player_entity_id": "media_player.assistants_vocaux",
"message": "la porte du garage est ouverte",
"language": "fr"
},
"target": {
"entity_id": "tts.google_fr_fr"
}
}
],
"mode": "single"
},
"blueprint_inputs": null,
"context": {
"id": "01HVXGS1908Y6Z7CQXVJNW6BSC",
"parent_id": "01HVXGS18Z1YMX42Q7S4KCE43G",
"user_id": null
}
},
"logbookEntries": []
}
D’accord, d’accord…
Oui.
Ah !
Et le mets où
dans mon code ?
alias: Sécurité - Alerte - Garage - Porte
description: ""
trigger:
- platform: state
entity_id:
- cover.smart_garage_door_2201056910492536102948e1e98494c8_garage
for:
hours: 0
minutes: 0
seconds: 2
to: opening
condition:
- condition: time
after: "22:35:00"
before: "06:00:00"
weekday:
- mon
- tue
- wed
- thu
- fri
- sat
- sun
action:
- service: notify.notify
data:
message: Porte du garage ouverte
- service: tts.speak
metadata: {}
data:
cache: true
media_player_entity_id: media_player.assistants_vocaux
message: la porte du garage est ouverte
language: fr
target:
entity_id: tts.google_fr_fr
mode: single
Désolé de paraître aussi con, mais je suis un peu perdu là.