to: 'on'\r
\r
action:\r
- service: script.notify_text\r
- data_template:\r
- title: "Home Assistant - Aggiornamento"\r
- message: "E' disponibile un aggiornamento per Home Assistant {{ state_attr('binary_sensor.updater', 'newest_version') }}. {{now().strftime('%Y-%m-%d %I:%M %p')}}"\r
- notification_id: "update"\r
- enable_persistent: 1\r
+ - service: script.notify_text\r
+ data_template:\r
+ title: "Home Assistant - Aggiornamento"\r
+ message: "E' disponibile un aggiornamento per Home Assistant {{ state_attr('binary_sensor.updater', 'newest_version') }}. {{now().strftime('%Y-%m-%d %I:%M %p')}}"\r
+ notification_id: "update"\r
+ enable_persistent: 1\r
+ \r
+ - service: input_boolean.turn_on\r
+ entity_id: input_boolean.update\r
\r
######################################################################\r
# Update Notification: Shelly\r
to: 'on'\r
\r
action:\r
- service: script.notify_text\r
- data_template:\r
- title: "Shelly - Aggiornamento"\r
- message: "Sono disponibili aggiornamenti per i dispositivi Shelly"\r
- notification_id: "update"\r
- enable_persistent: 1\r
+ - service: script.notify_text\r
+ data_template:\r
+ title: "Shelly - Aggiornamento"\r
+ message: "Sono disponibili aggiornamenti per i dispositivi Shelly"\r
+ notification_id: "update"\r
+ enable_persistent: 1\r
+\r
+ - service: input_boolean.turn_on\r
+ entity_id: input_boolean.update\r
\r
######################################################################\r
# Update Notification: HACS\r
above: 0\r
\r
action:\r
- service: script.notify_text\r
- data_template:\r
- title: "HACS - Aggiornamento"\r
- message: "Sono disponibili aggiornamenti per i moduli HACS"\r
- notification_id: "update"\r
- enable_persistent: 1\r
+ - service: script.notify_text\r
+ data_template:\r
+ title: "HACS - Aggiornamento"\r
+ message: "Sono disponibili aggiornamenti per i moduli HACS"\r
+ notification_id: "update"\r
+ enable_persistent: 1\r
+\r
+ - service: input_boolean.turn_on\r
+ entity_id: input_boolean.update\r
+\r
+######################################################################\r
+# Update: Aknowledge update\r
+#\r
+# Actions:\r
+# - persistent_notification.dismiss\r
+######################################################################\r
+- alias: "Update: Riconoscimento Aggiornamenti"\r
+ initial_state: 'on'\r
+\r
+ trigger:\r
+ platform: state\r
+ entity_id: input_boolean.update\r
+ to: 'off'\r
+\r
+ action:\r
+ - service: persistent_notification.dismiss\r
+ data_template:\r
+ notification_id: "update"\r