mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-09 20:48:59 +00:00

* Dashboards: apply sentence-style capitalization * Apply sentence-style capitalization, apply reuse * Apply suggestions from code review Co-authored-by: Joakim Sørensen <joasoe@gmail.com> * Apply suggestions from code review * Add substep on dashboard control * Remove code fence from title - to focus on the topic of the content, rather than the code itself * Apply suggestions from code review Co-authored-by: Joakim Sørensen <joasoe@gmail.com> --------- Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
86 lines
2.2 KiB
Markdown
86 lines
2.2 KiB
Markdown
---
|
|
type: card
|
|
title: "Sensor card"
|
|
sidebar_label: Sensor
|
|
description: "The sensor card gives you a quick overview of your sensors state with an optional graph to visualize change over time."
|
|
---
|
|
|
|
The sensor card gives you a quick overview of your sensors state with an optional graph to visualize change over time.
|
|
|
|
<p class='img'>
|
|
<img src='/images/dashboards/sensor.png' alt='Screenshot of the sensor card'>
|
|
Screenshot of the sensor card.
|
|
</p>
|
|
|
|
{% include dashboard/edit_dashboard.md %}
|
|
|
|
All options for this card can be configured via the user interface.
|
|
|
|
## YAML configuration
|
|
|
|
The following YAML options are available when you use YAML mode or just prefer to use YAML in the code editor in the UI.
|
|
|
|
{% configuration %}
|
|
type:
|
|
required: true
|
|
description: "`sensor`"
|
|
type: string
|
|
entity:
|
|
required: true
|
|
description: Entity ID of `sensor` domain.
|
|
type: string
|
|
icon:
|
|
required: false
|
|
description: The card icon.
|
|
type: string
|
|
name:
|
|
required: false
|
|
description: The card name.
|
|
type: string
|
|
graph:
|
|
required: false
|
|
description: Type of graph (`none` or `line`).
|
|
type: string
|
|
unit:
|
|
required: false
|
|
description: The unit of measurement.
|
|
type: string
|
|
detail:
|
|
required: false
|
|
description: Detail of the graph `1` or `2` (`1` = one point/hour, `2` = six points/hour).
|
|
type: integer
|
|
default: 1
|
|
hours_to_show:
|
|
required: false
|
|
description: Hours to show in graph. Minimum is 1 hour. Big values can result in delayed rendering, especially if the selected entities have a lot of state changes.
|
|
type: integer
|
|
default: 24
|
|
limits:
|
|
required: false
|
|
description: Limits of the graph Y-axis.
|
|
type: map
|
|
keys:
|
|
min:
|
|
description: Minimum value of the graph Y-axis.
|
|
type: float
|
|
required: false
|
|
default: The minimum sample among the displayed values.
|
|
max:
|
|
description: Maximum value of the graph Y-axis.
|
|
type: float
|
|
required: false
|
|
default: The maximum sample among the displayed values.
|
|
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
|
|
{% endconfiguration %}
|
|
|
|
### Example
|
|
|
|
```yaml
|
|
type: sensor
|
|
entity: sensor.illumination
|
|
name: Illumination
|
|
```
|