@@ -81,6 +81,7 @@ attribute value instead of the state value. `icon` lets you display an icon inst
81
81
| icon | string/bool | `false` | Display default or custom icon instead of state or attribute value |
82
82
| state_color | bool | `false` | Enable colored icon when entity is active |
83
83
| hide_unavailable | bool | `false` | Hide entity if unavailable or not found |
84
+ | hide_if | object/any | _[Hiding](#hiding)_ | Hide entity if its value matches specified value or criteria |
84
85
| styles | object | | Add custom CSS styles to the entity element |
85
86
| format | string | _[Formatting](#formatting)_ | Format entity value |
86
87
| tap_action | object | _[Actions](#actions)_ | Custom entity tap action |
@@ -109,6 +110,7 @@ an object containing configuration options listed below, or any of the default s
109
110
| name | string/bool | `friendly_name` | Override entity friendly name (or `false` to hide) |
110
111
| unit | string/bool | `unit_of_measurement` | Override entity unit of measurement (or `false` to hide) |
111
112
| hide_unavailable | bool | `false` | Hide secondary info if unavailable or not found |
113
+ | hide_if | object/any | _[Hiding](#hiding)_ | Hide secondary info if value matches specified criteria |
112
114
| format | string | _[Formatting](#formatting)_ | Format secondary info value |
113
115
114
116
# ## Actions
@@ -146,6 +148,18 @@ The `format` option supports the following values:
146
148
| position | `number` | Reverses a position percentage (ex. `70%` open -> `30%` closed) |
147
149
| precision<0-9> | `number` | Set decimal precision of number value (`precision3` -> `18.123`) |
148
150
151
+ # ## Hiding
152
+
153
+ The `hide_if` option can be used to hide an entity if its state or attribute value matches the specified criteria.
154
+ It can be used directly with a string, number or boolean value (i.e. `hide_if : ' off' ` ), as a list with several values,
155
+ or as an object with one or more of the options listed below.
156
+
157
+ | Name | Type | Description |
158
+ | ------- | -------- | --------------------------------------------------------------- |
159
+ | above | number | Hidden if entity _number_ value is above the specified value |
160
+ | below | number | Hidden if entity _number_ value is below the specified value |
161
+ | value | list/any | Hidden if value matches specified value or any value in a list |
162
+
149
163
## Examples
150
164
151
165

0 commit comments