mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-08 01:46:50 +00:00
Adjust documentation for the redesigned area card (#39637)
This commit is contained in:
parent
940045cde3
commit
94e9e1cd55
@ -17,8 +17,8 @@ related:
|
|||||||
The area card lets you control and monitor an individual {% term area %}.
|
The area card lets you control and monitor an individual {% term area %}.
|
||||||
|
|
||||||
<p class='img'>
|
<p class='img'>
|
||||||
<img src='/images/dashboards/area-card.png' alt='Screenshot of the area card'>
|
<img src='/images/dashboards/area-cards.png' alt='Screenshot of the area cards'>
|
||||||
Screenshot of the area card.
|
Screenshot of the area cards.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
{% include dashboard/edit_dashboard.md %}
|
{% include dashboard/edit_dashboard.md %}
|
||||||
@ -42,14 +42,14 @@ area:
|
|||||||
required: true
|
required: true
|
||||||
description: ID of the `area`.
|
description: ID of the `area`.
|
||||||
type: string
|
type: string
|
||||||
show_camera:
|
display_type:
|
||||||
required: false
|
required: false
|
||||||
description: Changes the area picture to a live feed of the camera set for the area.
|
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).
|
||||||
type: boolean
|
type: string
|
||||||
default: false
|
default: "picture"
|
||||||
camera_view:
|
camera_view:
|
||||||
required: false
|
required: false
|
||||||
description: 'If showing a camera, "live" will show the live view if `stream` is enabled.'
|
description: 'If showing a camera, `live` will show the live view if `stream` is enabled.'
|
||||||
default: auto
|
default: auto
|
||||||
type: string
|
type: string
|
||||||
aspect_ratio:
|
aspect_ratio:
|
||||||
@ -69,12 +69,21 @@ alert_classes:
|
|||||||
required: false
|
required: false
|
||||||
type: list
|
type: list
|
||||||
default: "moisture, motion"
|
default: "moisture, motion"
|
||||||
description: A list of binary sensor device classes which will populate alert icons in the card when the state is on.
|
description: A list of binary sensor device classes which will populate alert icons in the card when the state is on. If the display type is set to `compact`, only the first alert icon will be displayed.
|
||||||
sensor_classes:
|
sensor_classes:
|
||||||
required: false
|
required: false
|
||||||
type: list
|
type: list
|
||||||
default: "temperature, humidity"
|
default: "temperature, humidity"
|
||||||
description: A list of sensor device classes which will display their averaged sensor readings for the area.
|
description: A list of sensor device classes which will display their averaged sensor readings for the area.
|
||||||
|
features:
|
||||||
|
required: false
|
||||||
|
description: Additional widgets to control entities in the area. See [available features](/dashboards/features).
|
||||||
|
type: list
|
||||||
|
features_position:
|
||||||
|
required: false
|
||||||
|
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
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
@ -21,6 +21,7 @@ Features can be enabled on the following cards:
|
|||||||
- [Humidifier](/dashboards/humidifier/)
|
- [Humidifier](/dashboards/humidifier/)
|
||||||
- [Thermostat](/dashboards/thermostat/)
|
- [Thermostat](/dashboards/thermostat/)
|
||||||
- [Tile](/dashboards/tile/)
|
- [Tile](/dashboards/tile/)
|
||||||
|
- [Area](/dashboards/area/)
|
||||||
|
|
||||||
## Customizing features
|
## Customizing features
|
||||||
|
|
||||||
@ -720,3 +721,31 @@ operation_modes:
|
|||||||
type: list
|
type: list
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
|
## Area control
|
||||||
|
|
||||||
|
Widget that displays buttons to control different types of entity in your area.
|
||||||
|
|
||||||
|
<p class='img'>
|
||||||
|
<img src='/images/dashboards/features/area_controls.png' alt='Screenshot of the area card with the area controls feature'>
|
||||||
|
Screenshot of the area card with the area controls feature
|
||||||
|
</p>
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
features:
|
||||||
|
- type: "area-controls"
|
||||||
|
controls:
|
||||||
|
- light
|
||||||
|
- fan
|
||||||
|
- switch
|
||||||
|
```
|
||||||
|
|
||||||
|
{% configuration features %}
|
||||||
|
type:
|
||||||
|
required: true
|
||||||
|
description: "`area-controls`"
|
||||||
|
type: string
|
||||||
|
controls:
|
||||||
|
required: true
|
||||||
|
description: List of controls to show on the card. The list can contain `light`, `fan`, and `switch`.
|
||||||
|
type: list
|
||||||
|
{% endconfiguration %}
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 141 KiB |
BIN
source/images/dashboards/area-cards.png
Normal file
BIN
source/images/dashboards/area-cards.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 92 KiB |
BIN
source/images/dashboards/features/area_controls.png
Normal file
BIN
source/images/dashboards/features/area_controls.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
Loading…
x
Reference in New Issue
Block a user