From 6197ec55b98444be4a3015f34584b988fbda4117 Mon Sep 17 00:00:00 2001 From: inukiwi Date: Thu, 25 Jun 2026 13:10:27 +0000 Subject: [PATCH 1/2] Update Android docs for notification_icon_color over color --- docs/notifications/basic.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/notifications/basic.md b/docs/notifications/basic.md index 46f5dfa3cef..f18ff10719d 100644 --- a/docs/notifications/basic.md +++ b/docs/notifications/basic.md @@ -208,9 +208,14 @@ automation: ## Android Specific -### Notification Color +### Notification Icon Color -In Android you can set the `color` of the notification, you can use either the color name or the hex code. +In Android you can set the background color of the notification icon with `notification_icon_color`, you can use either the color name or the hex code. + +:::info +This parameter was previously named `color`. +`color` is still accepted but `notification_icon_color` is preferred going onwards. +::: ```yaml automation: @@ -223,7 +228,7 @@ automation: title: "Motion Detected in Backyard" message: "Someone might be in the backyard." data: - color: "#2DF56D" # or "red" + notification_icon_color: "#2DF56D" # or "red" ``` ### Sticky Notification From c780de9c5e4af8c2c00686eed715e333b9d16b02 Mon Sep 17 00:00:00 2001 From: inukiwi Date: Sat, 4 Jul 2026 10:31:45 +0000 Subject: [PATCH 2/2] Remove "color" parameter from live activities docs --- docs/notifications/live-activities.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/docs/notifications/live-activities.md b/docs/notifications/live-activities.md index 150e199daaf..04a7029b2fc 100644 --- a/docs/notifications/live-activities.md +++ b/docs/notifications/live-activities.md @@ -62,7 +62,6 @@ action: when_relative: true notification_icon: mdi:washing-machine notification_icon_color: "#2196F3" - color: "#2196F3" ``` ![Android Live Update showing "Washing Machine / Rinsing ยท 1 of 2" on the Lock Screen](/assets/android/live_updates_washing_lockscreen.png) @@ -90,7 +89,6 @@ action: progress_max: 3600 notification_icon: mdi:washing-machine notification_icon_color: "#4CAF50" - color: "#4CAF50" ```
@@ -268,8 +266,7 @@ A platform badge (![iOS](/assets/iOS.svg) / ![Android](/assets/android.svg)) mar | `when` | number | Timer reference point. A Unix timestamp, or seconds from now when `when_relative` is `true`. | | `when_relative` | boolean | If `true`, treat `when` as seconds from now rather than a Unix timestamp. | | `notification_icon` | string | A [Material Design Icon](https://pictogrammers.com/library/mdi/) slug, such as `mdi:washing-machine`. | -| ![iOS](/assets/iOS.svg) `notification_icon_color` | string | Hex color for the icon, such as `#2196F3`. | -| ![Android](/assets/android.svg) `color` | string | Hex color for the icon, such as `#2196F3`. | +| `notification_icon_color` | string | Hex color for the icon, such as `#2196F3`. | | ![iOS](/assets/iOS.svg) `silent` | boolean | If `true`, an update arrives without a sound and at a lower, power-conserving priority that iOS may delay or batch, so use it for non-urgent updates. Has no effect when starting the activity. | | ![iOS](/assets/iOS.svg) `url` | string | Where to go when the activity is tapped. A relative Home Assistant path such as `/lovelace/0` opens that view in the app; a full `https://` URL opens in the browser. The tap always opens the server that started the activity. `url` applies to the update it is sent with, so include it on each update where you want a specific destination. See [Opening a page on tap](#opening-a-page-on-tap). | | ![iOS](/assets/iOS.svg) `background_color` | string | Lock Screen background color, such as `#101820`. Defaults to black. See [Custom colors](#custom-colors). |