mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-12 20:06:52 +00:00
Adjust entities
special row example (#16219)
This commit is contained in:
parent
53e61b1715
commit
720d097305
@ -213,7 +213,7 @@ conditions:
|
|||||||
type: string
|
type: string
|
||||||
row:
|
row:
|
||||||
required: true
|
required: true
|
||||||
description: Row to display if all conditions match.
|
description: Row to display if all conditions match. Can be any of the various supported rows described on this page.
|
||||||
type: map
|
type: map
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
@ -334,7 +334,7 @@ name:
|
|||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
Entity rows:
|
### Entity rows
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
type: entities
|
type: entities
|
||||||
@ -352,7 +352,7 @@ entities:
|
|||||||
- group.all_locks
|
- group.all_locks
|
||||||
```
|
```
|
||||||
|
|
||||||
Buttons row:
|
### Buttons row
|
||||||
|
|
||||||
Above the divider are regular entity rows, below one of type `buttons`. Note that regular entity rows automatically show the entity name, whereas for buttons you have to explicitely specify a label / name.
|
Above the divider are regular entity rows, below one of type `buttons`. Note that regular entity rows automatically show the entity name, whereas for buttons you have to explicitely specify a label / name.
|
||||||
|
|
||||||
@ -375,25 +375,46 @@ entities:
|
|||||||
name: Dining Ceiling
|
name: Dining Ceiling
|
||||||
```
|
```
|
||||||
|
|
||||||
Other special rows:
|
### Other special rows
|
||||||
|
|
||||||
|
<p class='img'>
|
||||||
|
<img src='/images/lovelace/lovelace_entity_row_special.jpg' alt='Screenshot of other special rows'>
|
||||||
|
Screenshot of other special rows.
|
||||||
|
</p>
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
type: entities
|
type: entities
|
||||||
title: Entities card sample
|
title: Entities card sample
|
||||||
show_header_toggle: true
|
|
||||||
entities:
|
entities:
|
||||||
- type: call-service
|
- type: button
|
||||||
icon: mdi:power
|
icon: mdi:power
|
||||||
name: Bed light
|
name: Bed light transition
|
||||||
action_name: Toggle light
|
action_name: Toggle light
|
||||||
|
tap_action:
|
||||||
|
type: call-service
|
||||||
service: light.toggle
|
service: light.toggle
|
||||||
service_data:
|
service_data:
|
||||||
entity_id: light.bed_light
|
entity_id: light.bed_light
|
||||||
|
transition: 10
|
||||||
- type: divider
|
- type: divider
|
||||||
- type: attribute
|
- type: attribute
|
||||||
entity: sun.sun
|
entity: sun.sun
|
||||||
attribute: elevation
|
attribute: elevation
|
||||||
name: Elevation
|
name: Sun elevation
|
||||||
|
prefix: '~'
|
||||||
|
suffix: Units
|
||||||
|
- type: conditional
|
||||||
|
conditions:
|
||||||
|
- entity: sun.sun
|
||||||
|
state: above_horizon
|
||||||
|
row:
|
||||||
|
entity: sun.sun
|
||||||
|
type: attribute
|
||||||
|
attribute: azimuth
|
||||||
|
icon: mdi:angle-acute
|
||||||
|
name: Sun azimuth
|
||||||
|
- type: section
|
||||||
|
label: Section example
|
||||||
- type: weblink
|
- type: weblink
|
||||||
name: Home Assistant
|
name: Home Assistant
|
||||||
url: https://www.home-assistant.io/
|
url: https://www.home-assistant.io/
|
||||||
|
BIN
source/images/lovelace/lovelace_entity_row_special.jpg
Normal file
BIN
source/images/lovelace/lovelace_entity_row_special.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 35 KiB |
Loading…
x
Reference in New Issue
Block a user