From fddd7ffbbedea40744212d244c9c7192d90afb11 Mon Sep 17 00:00:00 2001 From: James Walker Date: Fri, 6 Jan 2023 23:48:46 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20use=20update=20entity=20for=20re?= =?UTF-8?q?lease=20notifications?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .HA_VERSION | 2 +- automations/system/update.yaml | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.HA_VERSION b/.HA_VERSION index cdf1917..951d542 100644 --- a/.HA_VERSION +++ b/.HA_VERSION @@ -1 +1 @@ -2022.12.0 \ No newline at end of file +2023.1.1 \ No newline at end of file diff --git a/automations/system/update.yaml b/automations/system/update.yaml index 5441ea3..5c674e8 100644 --- a/automations/system/update.yaml +++ b/automations/system/update.yaml @@ -1,11 +1,12 @@ -# Example configuration.yaml entry +# Get notifications when new updates are available - alias: "Update Available Notification" + id: "ae8b75ea-0914-4816-a772-4d0224b262fa" trigger: - platform: state - entity_id: binary_sensor.home_assistant_website_update_available - from: "off" + entity_id: update.home_assistant_core_update to: "on" action: - service: notify.notify data: - message: "Home Assistant {{ states('sensor.home_assistant_website') }} is available." + title: "New update available" + message: "Home Assistant Core update is available."