From 8e3703efd48d56576259dcd0a60f07e8f751c01f Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Wed, 25 Jun 2025 14:22:27 +0000 Subject: [PATCH 1/2] Add exclude entities params to area card Add color and drop theme option Add color and drop theme option Undo gem changes --- Gemfile.lock | 10 +++++----- source/_dashboards/area.markdown | 29 +++++++++++++++++++++-------- 2 files changed, 26 insertions(+), 13 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index a5411621419e..fb440a48e013 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -119,7 +119,7 @@ GEM regexp_parser (2.10.0) rexml (3.4.1) rouge (4.5.2) - rubocop (1.76.2) + rubocop (1.77.0) json (~> 2.3) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.1.0) @@ -133,7 +133,7 @@ GEM rubocop-ast (1.45.1) parser (>= 3.3.7.2) prism (~> 1.4) - ruby-lsp (0.24.1) + ruby-lsp (0.24.2) language_server-protocol (~> 3.17.0) prism (>= 1.2, < 2.0) rbs (>= 3, < 5) @@ -159,7 +159,7 @@ GEM rack-protection (= 4.1.1) rack-session (>= 2.0.0, < 3) tilt (~> 2.0) - sorbet-runtime (0.5.12189) + sorbet-runtime (0.5.12201) stringex (2.8.6) terminal-table (3.0.2) unicode-display_width (>= 1.1.1, < 3) @@ -185,8 +185,8 @@ DEPENDENCIES nokogiri (= 1.18.8) rackup (= 2.2.1) rake (= 13.3.0) - rubocop (= 1.76.2) - ruby-lsp (= 0.24.1) + rubocop (= 1.77.0) + ruby-lsp (= 0.24.2) sass-embedded (= 1.89.2) sass-globbing (= 1.1.5) sassc (= 2.1.0) diff --git a/source/_dashboards/area.markdown b/source/_dashboards/area.markdown index c5d94f4e753c..a0eae48443ac 100644 --- a/source/_dashboards/area.markdown +++ b/source/_dashboards/area.markdown @@ -4,8 +4,6 @@ title: "Area card" sidebar_label: Area description: "The area card gives control of your entities in a specified area." related: - - docs: /integrations/frontend/ - title: Themes - docs: /dashboards/cards/ title: Dashboard cards - docs: /dashboards/dashboards/#areas-dashboard @@ -42,6 +40,10 @@ area: required: true description: ID of the `area`. type: string +color: + required: false + description: Set the color for the icon and the hover/focus state. It accepts [color token](/dashboards/area/#available-colors) or hex color code. + type: string display_type: required: false description: Defines the card's display style. Options include `compact` (a minimal layout), `icon` (shows an area icon), `picture` (displays an image of the area), or `camera` (shows the live camera feed). @@ -61,10 +63,6 @@ navigation_path: required: false description: link to view. For more information about views, see the [view documentation](/dashboards/views/) type: string -theme: - required: false - description: Override the used theme for this card with any loaded theme. For more information about themes, see the [frontend documentation](/integrations/frontend/). - type: string alert_classes: required: false type: list @@ -84,6 +82,10 @@ features_position: description: Position of the features on the area card. Can be `bottom` or `inline`. Only the first feature will be displayed when the option is set to `inline`. type: string default: bottom +exclude_entities: + required: false + description: A list of entities that will be excluded from the card. It will affect sensor_classes, alert_classes and features. + type: list {% endconfiguration %} ### Example @@ -100,7 +102,18 @@ Complex example ```yaml type: area area: bedroom +display_type: picture navigation_path: my_bedroom -show_camera: true -theme: green +sensor_classes: + - temperature + - humidity +alert_classes: + - moisture + - motion +features: + - type: area-controls ``` + +## Available colors + +You want to colorize the area card? Choose one of the following colors: `primary`, `accent`, `disabled`, `red`, `pink`, `purple`, `deep-purple`, `indigo`, `blue`, `light-blue`, `cyan`, `teal`, `green`, `light-green`, `lime`, `yellow`, `amber`, `orange`, `deep-orange`, `brown`, `grey`, `blue-grey`, `black` and `white`. From cf4d91cb0441d39650cb81ddef41fb942bbb4d8d Mon Sep 17 00:00:00 2001 From: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com> Date: Wed, 25 Jun 2025 16:49:25 +0200 Subject: [PATCH 2/2] tiny tweak --- source/_dashboards/area.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_dashboards/area.markdown b/source/_dashboards/area.markdown index a0eae48443ac..cada9ef23d7c 100644 --- a/source/_dashboards/area.markdown +++ b/source/_dashboards/area.markdown @@ -84,7 +84,7 @@ features_position: default: bottom exclude_entities: required: false - description: A list of entities that will be excluded from the card. It will affect sensor_classes, alert_classes and features. + description: A list of entities that will be excluded from the card. It will affect sensor_classes, alert_classes, and features. type: list {% endconfiguration %} @@ -116,4 +116,4 @@ features: ## Available colors -You want to colorize the area card? Choose one of the following colors: `primary`, `accent`, `disabled`, `red`, `pink`, `purple`, `deep-purple`, `indigo`, `blue`, `light-blue`, `cyan`, `teal`, `green`, `light-green`, `lime`, `yellow`, `amber`, `orange`, `deep-orange`, `brown`, `grey`, `blue-grey`, `black` and `white`. +You want to colorize the area card? Choose one of the following colors: `primary`, `accent`, `disabled`, `red`, `pink`, `purple`, `deep-purple`, `indigo`, `blue`, `light-blue`, `cyan`, `teal`, `green`, `light-green`, `lime`, `yellow`, `amber`, `orange`, `deep-orange`, `brown`, `grey`, `blue-grey`, `black`, and `white`.