🚜 Removes lists from Lovelace examples (#8570)

This commit is contained in:
Franck Nijhof 2019-02-14 13:09:06 +01:00 committed by Fabian Affolter
parent 98ea438d47
commit a41ea11d9e
24 changed files with 320 additions and 323 deletions

View File

@ -18,7 +18,7 @@ Screenshot of the Alarm Panel card.
</p>
```yaml
- type: alarm-panel
type: alarm-panel
entity: alarm_control_panel.alarm
```
@ -70,7 +70,7 @@ Screenshot of the Alarm Panel card.
Define the State List:
```yaml
- type: alarm-panel
type: alarm-panel
name: House Alarm
entity: alarm_control_panel.alarm
states:

View File

@ -47,7 +47,7 @@ Note: Conditions with more than one entity are treated as an 'and' condition. Th
### {% linkable_title Examples %}
```yaml
- type: conditional
type: conditional
conditions:
- entity: light.bed_light
state: "on"

View File

@ -155,7 +155,7 @@ icon:
Entity rows:
```yaml
- type: entities
type: entities
title: Entities card sample
show_header_toggle: true
entities:
@ -170,7 +170,7 @@ Entity rows:
Special rows:
```yaml
- type: entities
type: entities
title: Entities card sample
show_header_toggle: true
entities:

View File

@ -18,12 +18,8 @@ Screenshot of the Entity Button card.
</p>
```yaml
- type: entity-button
type: entity-button
entity: light.living_room
- type: entity-button
entity: light.office
- type: entity-button
entity: light.bedroom
```
{% configuration %}
@ -106,7 +102,7 @@ theme:
Title and Script Service Example:
```yaml
- type: entity-button
type: entity-button
name: Turn Off Lights
tap_action:
action: call-service

View File

@ -48,7 +48,7 @@ show_empty:
Show only active switches or lights in the house
```yaml
- type: entity-filter
type: entity-filter
entities:
- entity: light.bed_light
name: Bed
@ -61,7 +61,7 @@ Show only active switches or lights in the house
Show only people that are at home using [glance](/lovelace/glance/):
```yaml
- type: entity-filter
type: entity-filter
entities:
- device_tracker.demo_paulus
- device_tracker.demo_anne_therese

View File

@ -18,7 +18,7 @@ Screenshot of the gauge card.
</p>
```yaml
- type: gauge
type: gauge
entity: sensor.cpu_usage
```
@ -79,7 +79,7 @@ severity:
Title and Unit of Measurement Example:
```yaml
- type: gauge
type: gauge
name: CPU Usuage
unit: '%'
entity: sensor.cpu_usage
@ -93,7 +93,7 @@ Screenshot of the gauge card with custom title and unit of measurement.
Define the severity map:
```yaml
- type: gauge
type: gauge
name: With Severity
unit: '%'
entity: sensor.cpu_usage

View File

@ -124,7 +124,7 @@ hold_action:
Basic example:
```yaml
- type: glance
type: glance
title: Glance card sample
entities:
- binary_sensor.movement_backyard
@ -144,7 +144,7 @@ Screenshot of the glance card with custom title.
Define entities as objects and apply a custom name:
```yaml
- type: glance
type: glance
title: Better names
entities:
- entity: binary_sensor.movement_backyard

View File

@ -65,7 +65,7 @@ name:
## {% linkable_title Example %}
```yaml
- type: history-graph
type: history-graph
title: 'My Graph'
entities:
- sensor.outside_temperature

View File

@ -26,7 +26,7 @@ cards:
## {% linkable_title Example %}
```yaml
- type: horizontal-stack
type: horizontal-stack
cards:
- type: picture-entity
image: /local/bed_1.png

View File

@ -44,7 +44,7 @@ title:
### {% linkable_title Examples %}
```yaml
- type: iframe
type: iframe
url: https://grafana.localhost/d/000000027/worldping-endpoint-summary?var-probe=All&panelId=2&fullscreen&orgId=3&theme=light
aspect_ratio: 75%
```

View File

@ -19,10 +19,8 @@ Screenshot of the Light card.
</p>
```yaml
- type: light
type: light
entity: light.bedroom
- type: light
entity: light.office
```
{% configuration %}
@ -46,10 +44,13 @@ name:
Overwriting names example:
```yaml
- type: light
type: light
entity: light.bedroom
name: Kids Bedroom
- type: light
```
```yaml
type: light
entity: light.office
name: My Office
```

View File

@ -58,7 +58,7 @@ default_zoom:
## {% linkable_title Examples %}
```yaml
- type: map
type: map
aspect_ratio: 16:9
default_zoom: 8
entities:
@ -67,7 +67,7 @@ default_zoom:
```
```yaml
- type: map
type: map
geo_location_sources:
- nsw_rural_fire_service_feed
entities:

View File

@ -36,7 +36,7 @@ title:
## {% linkable_title Example %}
```yaml
- type: markdown
type: markdown
content: >
## Lovelace

View File

@ -31,6 +31,6 @@ entity:
## {% linkable_title Example %}
```yaml
- type: media-control
type: media-control
entity: media_player.lounge_room
```

View File

@ -461,7 +461,7 @@ hold_action:
## {% linkable_title Example %}
```yaml
- type: picture-elements
type: picture-elements
image: /local/floorplan.png
elements:
- type: state-icon
@ -504,7 +504,7 @@ hold_action:
## {% linkable_title Images Example %}
```yaml
- type: picture-elements
type: picture-elements
image: /local/floorplan.png
elements:
# state_image & state_filter - toggle on click

View File

@ -113,7 +113,7 @@ hold_action:
Basic example:
```yaml
- type: picture-entity
type: picture-entity
entity: light.bed_light
image: /local/bed_light.png
```
@ -121,7 +121,7 @@ Basic example:
Different images for each state:
```yaml
- type: picture-entity
type: picture-entity
entity: light.bed_light
state_image:
"on": /local/bed_light_on.png

View File

@ -125,7 +125,7 @@ icon:
## {% linkable_title Examples %}
```yaml
- type: picture-glance
type: picture-glance
title: Living room
entities:
- switch.decorative_lights
@ -139,7 +139,7 @@ icon:
Display a camera image as background:
```yaml
- type: picture-glance
type: picture-glance
title: Living room
entities:
- switch.decorative_lights
@ -150,7 +150,7 @@ Display a camera image as background:
Display a camera image without additional entities:
```yaml
- type: picture-glance
type: picture-glance
title: Front garden
entities: []
camera_image: camera.front_garden_camera
@ -159,7 +159,7 @@ Display a camera image without additional entities:
Use different images based on entity state:
```yaml
- type: picture-glance
type: picture-glance
title: Living room
entities:
- switch.decorative_lights

View File

@ -83,7 +83,7 @@ hold_action:
Navigate to another view:
```yaml
- type: picture
type: picture
image: /local/home.jpg
tap_action:
action: navigate
@ -95,7 +95,7 @@ Check the [views](/lovelace/views/) setup on how to setup custom IDs.
Toggle entity using a service:
```yaml
- type: picture
type: picture
image: /local/light.png
service: light.toggle
service_data:

View File

@ -36,6 +36,6 @@ name:
## {% linkable_title Example %}
```yaml
- type: plant-status
type: plant-status
entity: plant.bonsai
```

View File

@ -61,7 +61,7 @@ theme:
## {% linkable_title Example %}
```yaml
- type: sensor
type: sensor
entity: sensor.illumination
name: Illumination
```

View File

@ -20,7 +20,7 @@ Screenshot of the Shopping List card.
</p>
```yaml
- type: shopping-list
type: shopping-list
```
{% configuration %}
@ -39,6 +39,6 @@ title:
Title Example:
```yaml
- type: shopping-list
type: shopping-list
title: Shopping List
```

View File

@ -36,6 +36,6 @@ name:
## {% linkable_title Example %}
```yaml
- type: thermostat
type: thermostat
entity: climate.nest
```

View File

@ -28,7 +28,7 @@ cards:
Basic example:
```yaml
- type: vertical-stack
type: vertical-stack
cards:
- type: picture-entity
entity: camera.demo_camera
@ -46,7 +46,7 @@ Basic example:
Combination of vertical and horizontal stack card:
```yaml
- type: vertical-stack
type: vertical-stack
cards:
- type: picture-entity
entity: group.all_lights

View File

@ -36,7 +36,7 @@ name:
{% linkable_title Example %}
```yaml
- type: weather-forecast
type: weather-forecast
entity: weather.dark_sky
```