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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -124,7 +124,7 @@ hold_action:
Basic example: Basic example:
```yaml ```yaml
- type: glance type: glance
title: Glance card sample title: Glance card sample
entities: entities:
- binary_sensor.movement_backyard - 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: Define entities as objects and apply a custom name:
```yaml ```yaml
- type: glance type: glance
title: Better names title: Better names
entities: entities:
- entity: binary_sensor.movement_backyard - entity: binary_sensor.movement_backyard

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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