68 lines
4.9 KiB
JSON
68 lines
4.9 KiB
JSON
[
|
|
{
|
|
"id": "9b73b619-98d7-4719-8886-ce48c1d7726c",
|
|
"automation": "- id: 9b73b619-98d7-4719-8886-ce48c1d7726c\n alias: Alerte Météo France actualisation\n description: ''\n triggers:\n - trigger: homeassistant\n event: start\n id: Start\n - trigger: time\n at: 06:32:00\n id: Heure632\n - trigger: time\n at: '16:32:00'\n id: Heure1632\n - trigger: time_pattern\n minutes: /5\n id: Toutesles5minutes\n conditions:\n - condition: or\n conditions:\n - condition: trigger\n id:\n - Start\n - condition: trigger\n id:\n - Heure632\n - condition: trigger\n id:\n - Heure1632\n - condition: and\n conditions:\n - condition: trigger\n id:\n - Toutesles5minutes\n - condition: state\n entity_id: sensor.meteo_france_alertes_image_today\n state: unavailable\n alias: 5minutesETtoday\n - condition: and\n conditions:\n - condition: trigger\n id:\n - Toutesles5minutes\n - condition: state\n entity_id: sensor.meteo_france_alertes_image_tomorrow\n state: unavailable\n alias: 5minutesETtomorrow\n actions:\n - action: homeassistant.update_entity\n data: {}\n target:\n entity_id: sensor.meteo_france_alertes_image_today\n - action: homeassistant.update_entity\n data: {}\n target:\n entity_id:\n - sensor.meteo_france_alertes_image_tomorrow\n - delay:\n hours: 0\n minutes: 0\n seconds: 5\n milliseconds: 0\n - alias: Répéter MAJ Today\n repeat:\n count: 1\n sequence:\n - if:\n - condition: state\n entity_id: sensor.meteo_france_alertes_image_today\n state: unavailable\n then:\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.meteo_france_alertes_image_today\n data: {}\n - delay:\n hours: 0\n minutes: 0\n seconds: 5\n milliseconds: 0\n - alias: Répéter MAJ Tomorrow\n repeat:\n count: 1\n sequence:\n - if:\n - condition: state\n entity_id: sensor.meteo_france_alertes_image_tomorrow\n state: unavailable\n then:\n - action: homeassistant.update_entity\n data: {}\n target:\n entity_id: sensor.meteo_france_alertes_image_tomorrow\n - delay:\n hours: 0\n minutes: 0\n seconds: 5\n milliseconds: 0\n - action: homeassistant.update_entity\n data: {}\n target:\n entity_id:\n - camera.mf_alerte_today\n - camera.mf_alerte_tomorrow\n - delay:\n hours: 0\n minutes: 0\n seconds: 5\n milliseconds: 0\n - action: homeassistant.update_entity\n data: {}\n target:\n entity_id:\n - sensor.meteo_france_alertes_55\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "meteo france alertes image today",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.meteo_france_alertes_image_today",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "meteo france alertes image tomorrow",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.meteo_france_alertes_image_tomorrow",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mf alerte today",
|
|
"room": null,
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.mf_alerte_today",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mf alerte tomorrow",
|
|
"room": null,
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.mf_alerte_tomorrow",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "meteo france alertes 55",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.meteo_france_alertes_55",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "bcf16b90-ce5f-404a-8689-b20882323e44",
|
|
"automation": "- id: bcf16b90-ce5f-404a-8689-b20882323e44\n alias: Mise à jour niveau d'alerte en cas d'indisponibilité\n description: Parfois la mise à jour de l'API produit une indisponibilité du sensor.\n Cette automation permet de tenter une mise à jour si le capteur est passé à unknow\n triggers:\n - trigger: time_pattern\n minutes: /5\n conditions:\n - condition: state\n entity_id: sensor.meteo_france_alertes_55\n state: unknown\n actions:\n - action: homeassistant.update_entity\n data: {}\n target:\n entity_id:\n - sensor.meteo_france_alertes_55\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "meteo france alertes 55",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.meteo_france_alertes_55",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] |