backup: 2026-06-16 18:34
This commit is contained in:
@@ -1270,3 +1270,16 @@
|
|||||||
tag: timer_alert
|
tag: timer_alert
|
||||||
- delay:
|
- delay:
|
||||||
seconds: 30
|
seconds: 30
|
||||||
|
- id: '1781627636620'
|
||||||
|
alias: "\U0001F4BE Backup Git hebdomadaire"
|
||||||
|
description: Sauvegarde la config HA vers Gitea chaque dimanche à 3h
|
||||||
|
triggers:
|
||||||
|
- trigger: time
|
||||||
|
at: 03:00:00
|
||||||
|
conditions:
|
||||||
|
- condition: time
|
||||||
|
weekday:
|
||||||
|
- sun
|
||||||
|
actions:
|
||||||
|
- action: script.git_backup
|
||||||
|
mode: single
|
||||||
|
|||||||
@@ -81,3 +81,5 @@ rest:
|
|||||||
- depth
|
- depth
|
||||||
- magtype
|
- magtype
|
||||||
|
|
||||||
|
shell_command:
|
||||||
|
git_backup: /config/scripts/git_backup.sh
|
||||||
+81
-81
@@ -1,7 +1,6 @@
|
|||||||
notif_gotify:
|
notif_gotify:
|
||||||
alias: "\U0001F4E2 Notification Gotify"
|
alias: "\U0001F4E2 Notification Gotify"
|
||||||
description:
|
description: Envoie une notification via Gotify avec cooldown anti-spam global 10min
|
||||||
Envoie une notification via Gotify avec cooldown anti-spam global 10min
|
|
||||||
(bypass si priorité ≥ 8)
|
(bypass si priorité ≥ 8)
|
||||||
fields:
|
fields:
|
||||||
title:
|
title:
|
||||||
@@ -15,110 +14,111 @@ notif_gotify:
|
|||||||
example: 5
|
example: 5
|
||||||
default: 5
|
default: 5
|
||||||
sequence:
|
sequence:
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template:
|
value_template: "{{ (priority | default(5) | int) >= 8\n or (as_timestamp(now())
|
||||||
"{{ (priority | default(5) | int) >= 8\n or (as_timestamp(now())
|
- as_timestamp(states('input_datetime.last_notification'))) > 600 }}\n"
|
||||||
- as_timestamp(states('input_datetime.last_notification'))) > 600 }}\n"
|
- action: notify.gotify_notify
|
||||||
- action: notify.gotify_notify
|
data:
|
||||||
|
title: '{{ title | default(''Home Assistant'') }}'
|
||||||
|
message: '{{ message }}'
|
||||||
data:
|
data:
|
||||||
title: "{{ title | default('Home Assistant') }}"
|
priority: '{{ priority | default(5) }}'
|
||||||
message: "{{ message }}"
|
- action: input_datetime.set_datetime
|
||||||
data:
|
target:
|
||||||
priority: "{{ priority | default(5) }}"
|
entity_id: input_datetime.last_notification
|
||||||
- action: input_datetime.set_datetime
|
data:
|
||||||
target:
|
datetime: '{{ now() }}'
|
||||||
entity_id: input_datetime.last_notification
|
|
||||||
data:
|
|
||||||
datetime: "{{ now() }}"
|
|
||||||
incrementer_cycle_doris:
|
incrementer_cycle_doris:
|
||||||
alias: Incrémenter cycle Doris
|
alias: Incrémenter cycle Doris
|
||||||
sequence:
|
sequence:
|
||||||
- action: counter.increment
|
- action: counter.increment
|
||||||
data: {}
|
data: {}
|
||||||
target:
|
target:
|
||||||
entity_id: counter.cycle_doris
|
entity_id: counter.cycle_doris
|
||||||
description: ""
|
description: ''
|
||||||
reinitialiser_compteur_doris:
|
reinitialiser_compteur_doris:
|
||||||
alias: "\U0001F9F9 Réinitialiser compteur Doris"
|
alias: "\U0001F9F9 Réinitialiser compteur Doris"
|
||||||
description: Remet le compteur à zéro après vidange du réservoir
|
description: Remet le compteur à zéro après vidange du réservoir
|
||||||
sequence:
|
sequence:
|
||||||
- action: counter.reset
|
- action: counter.reset
|
||||||
target:
|
target:
|
||||||
entity_id: counter.cycle_doris
|
entity_id: counter.cycle_doris
|
||||||
- action: script.notif_gotify
|
- action: script.notif_gotify
|
||||||
data:
|
data:
|
||||||
title: "\U0001F9F9 Doris"
|
title: "\U0001F9F9 Doris"
|
||||||
message: Compteur remis à zéro après vidange
|
message: Compteur remis à zéro après vidange
|
||||||
priority: 3
|
priority: 3
|
||||||
icon: mdi:refresh
|
icon: mdi:refresh
|
||||||
mealie_semaine_precedente:
|
mealie_semaine_precedente:
|
||||||
alias: Mealie - Semaine précédente
|
alias: Mealie - Semaine précédente
|
||||||
sequence:
|
sequence:
|
||||||
- action: input_datetime.set_datetime
|
- action: input_datetime.set_datetime
|
||||||
target:
|
target:
|
||||||
entity_id: input_datetime.mealie_semaine_ref
|
entity_id: input_datetime.mealie_semaine_ref
|
||||||
data:
|
data:
|
||||||
date:
|
date: '{% set ref = states(''input_datetime.mealie_semaine_ref'') %} {% set
|
||||||
"{% set ref = states('input_datetime.mealie_semaine_ref') %} {% set
|
d = strptime(ref, ''%Y-%m-%d'') %} {{ (d.date() - timedelta(days=7)).strftime(''%Y-%m-%d'')
|
||||||
d = strptime(ref, '%Y-%m-%d') %} {{ (d.date() - timedelta(days=7)).strftime('%Y-%m-%d')
|
}}
|
||||||
}}
|
|
||||||
|
|
||||||
"
|
'
|
||||||
- action: automation.trigger
|
- action: automation.trigger
|
||||||
target:
|
target:
|
||||||
entity_id: automation.mealie_sync_menus_semaine
|
entity_id: automation.mealie_sync_menus_semaine
|
||||||
data:
|
data:
|
||||||
skip_condition: true
|
skip_condition: true
|
||||||
mode: single
|
mode: single
|
||||||
description: ""
|
description: ''
|
||||||
mealie_cette_semaine:
|
mealie_cette_semaine:
|
||||||
alias: Mealie - Cette semaine
|
alias: Mealie - Cette semaine
|
||||||
sequence:
|
sequence:
|
||||||
- action: input_datetime.set_datetime
|
- action: input_datetime.set_datetime
|
||||||
target:
|
target:
|
||||||
entity_id: input_datetime.mealie_semaine_ref
|
entity_id: input_datetime.mealie_semaine_ref
|
||||||
data:
|
data:
|
||||||
date:
|
date: '{{ (now().date() - timedelta(days=now().weekday())).strftime(''%Y-%m-%d'')
|
||||||
"{{ (now().date() - timedelta(days=now().weekday())).strftime('%Y-%m-%d')
|
}}
|
||||||
}}
|
|
||||||
|
|
||||||
"
|
'
|
||||||
- action: automation.trigger
|
- action: automation.trigger
|
||||||
target:
|
target:
|
||||||
entity_id: automation.mealie_sync_menus_semaine
|
entity_id: automation.mealie_sync_menus_semaine
|
||||||
data:
|
data:
|
||||||
skip_condition: true
|
skip_condition: true
|
||||||
mode: single
|
mode: single
|
||||||
description: ""
|
description: ''
|
||||||
mealie_semaine_suivante:
|
mealie_semaine_suivante:
|
||||||
alias: Mealie - Semaine suivante
|
alias: Mealie - Semaine suivante
|
||||||
sequence:
|
sequence:
|
||||||
- action: input_datetime.set_datetime
|
- action: input_datetime.set_datetime
|
||||||
target:
|
target:
|
||||||
entity_id: input_datetime.mealie_semaine_ref
|
entity_id: input_datetime.mealie_semaine_ref
|
||||||
data:
|
data:
|
||||||
date:
|
date: '{% set ref = states(''input_datetime.mealie_semaine_ref'') %} {% set
|
||||||
"{% set ref = states('input_datetime.mealie_semaine_ref') %} {% set
|
d = strptime(ref, ''%Y-%m-%d'') %} {{ (d.date() + timedelta(days=7)).strftime(''%Y-%m-%d'')
|
||||||
d = strptime(ref, '%Y-%m-%d') %} {{ (d.date() + timedelta(days=7)).strftime('%Y-%m-%d')
|
}}
|
||||||
}}
|
|
||||||
|
|
||||||
"
|
'
|
||||||
- action: automation.trigger
|
- action: automation.trigger
|
||||||
target:
|
target:
|
||||||
entity_id: automation.mealie_sync_menus_semaine
|
entity_id: automation.mealie_sync_menus_semaine
|
||||||
data:
|
data:
|
||||||
skip_condition: true
|
skip_condition: true
|
||||||
mode: single
|
mode: single
|
||||||
description: ""
|
description: ''
|
||||||
arreter_le_minuteur:
|
arreter_le_minuteur:
|
||||||
alias: Arrêter le minuteur
|
alias: Arrêter le minuteur
|
||||||
sequence:
|
sequence:
|
||||||
- action: input_boolean.turn_off
|
- action: input_boolean.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: input_boolean.timer_actif
|
entity_id: input_boolean.timer_actif
|
||||||
- action: notify.mobile_app_tablette
|
- action: notify.mobile_app_tablette
|
||||||
|
data:
|
||||||
|
message: clear_notification
|
||||||
data:
|
data:
|
||||||
message: clear_notification
|
tag: timer_alert
|
||||||
data:
|
description: ''
|
||||||
tag: timer_alert
|
backup_git:
|
||||||
description: ""
|
alias: "\U0001F4BE Backup Git"
|
||||||
|
description: Commit et push la config HA vers Gitea
|
||||||
|
sequence:
|
||||||
|
- action: shell_command.git_backup
|
||||||
|
|||||||
Reference in New Issue
Block a user