🚜 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,8 +18,8 @@ Screenshot of the Alarm Panel card.
</p>
```yaml
- type: alarm-panel
entity: alarm_control_panel.alarm
type: alarm-panel
entity: alarm_control_panel.alarm
```
{% configuration %}
@ -70,10 +70,10 @@ Screenshot of the Alarm Panel card.
Define the State List:
```yaml
- type: alarm-panel
name: House Alarm
entity: alarm_control_panel.alarm
states:
type: alarm-panel
name: House Alarm
entity: alarm_control_panel.alarm
states:
- arm_home
- arm_away
- arm_night

View File

@ -47,13 +47,13 @@ Note: Conditions with more than one entity are treated as an 'and' condition. Th
### {% linkable_title Examples %}
```yaml
- type: conditional
conditions:
type: conditional
conditions:
- entity: light.bed_light
state: "on"
- entity: switch.decorative_lights
state_not: "off"
card:
card:
type: entities
entities:
- device_tracker.demo_paulus

View File

@ -155,10 +155,10 @@ icon:
Entity rows:
```yaml
- type: entities
title: Entities card sample
show_header_toggle: true
entities:
type: entities
title: Entities card sample
show_header_toggle: true
entities:
- entity: alarm_control_panel.alarm
name: Alarm Panel
- device_tracker.demo_paulus
@ -170,10 +170,10 @@ Entity rows:
Special rows:
```yaml
- type: entities
title: Entities card sample
show_header_toggle: true
entities:
type: entities
title: Entities card sample
show_header_toggle: true
entities:
- type: call-service
icon: mdi:power
name: Bed light

View File

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

View File

@ -48,27 +48,27 @@ show_empty:
Show only active switches or lights in the house
```yaml
- type: entity-filter
entities:
type: entity-filter
entities:
- entity: light.bed_light
name: Bed
- light.kitchen_lights
- light.ceiling_lights
state_filter:
state_filter:
- "on"
```
Show only people that are at home using [glance](/lovelace/glance/):
```yaml
- type: entity-filter
entities:
type: entity-filter
entities:
- device_tracker.demo_paulus
- device_tracker.demo_anne_therese
- device_tracker.demo_home_boy
state_filter:
state_filter:
- home
card:
card:
type: glance
title: People at home
```

View File

@ -18,8 +18,8 @@ Screenshot of the gauge card.
</p>
```yaml
- type: gauge
entity: sensor.cpu_usage
type: gauge
entity: sensor.cpu_usage
```
{% configuration %}
@ -79,10 +79,10 @@ severity:
Title and Unit of Measurement Example:
```yaml
- type: gauge
name: CPU Usuage
unit: '%'
entity: sensor.cpu_usage
type: gauge
name: CPU Usuage
unit: '%'
entity: sensor.cpu_usage
```
<p class='img'>
@ -93,11 +93,11 @@ Screenshot of the gauge card with custom title and unit of measurement.
Define the severity map:
```yaml
- type: gauge
name: With Severity
unit: '%'
entity: sensor.cpu_usage
severity:
type: gauge
name: With Severity
unit: '%'
entity: sensor.cpu_usage
severity:
green: 0
yellow: 45
red: 85

View File

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

View File

@ -65,9 +65,9 @@ name:
## {% linkable_title Example %}
```yaml
- type: history-graph
title: 'My Graph'
entities:
type: history-graph
title: 'My Graph'
entities:
- sensor.outside_temperature
- entity: media_player.lounge_room
name: Main player

View File

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

View File

@ -44,7 +44,7 @@ title:
### {% linkable_title Examples %}
```yaml
- type: iframe
url: https://grafana.localhost/d/000000027/worldping-endpoint-summary?var-probe=All&panelId=2&fullscreen&orgId=3&theme=light
aspect_ratio: 75%
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
entity: light.bedroom
- type: light
entity: light.office
type: light
entity: light.bedroom
```
{% configuration %}
@ -46,12 +44,15 @@ name:
Overwriting names example:
```yaml
- type: light
entity: light.bedroom
name: Kids Bedroom
- type: light
entity: light.office
name: My Office
type: light
entity: light.bedroom
name: Kids Bedroom
```
```yaml
type: light
entity: light.office
name: My Office
```
<p class='img'>

View File

@ -58,18 +58,18 @@ default_zoom:
## {% linkable_title Examples %}
```yaml
- type: map
aspect_ratio: 16:9
default_zoom: 8
entities:
type: map
aspect_ratio: 16:9
default_zoom: 8
entities:
- device_tracker.demo_paulus
- zone.home
```
```yaml
- type: map
geo_location_sources:
type: map
geo_location_sources:
- nsw_rural_fire_service_feed
entities:
entities:
- zone.home
```

View File

@ -36,8 +36,8 @@ title:
## {% linkable_title Example %}
```yaml
- type: markdown
content: >
type: markdown
content: >
## Lovelace
Starting with Home Assistant 0.72, we're experimenting with a new way of defining your interface. We're calling it the **Lovelace UI**.

View File

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

View File

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

View File

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

View File

@ -125,47 +125,47 @@ icon:
## {% linkable_title Examples %}
```yaml
- type: picture-glance
title: Living room
entities:
type: picture-glance
title: Living room
entities:
- switch.decorative_lights
- light.ceiling_lights
- lock.front_door
- binary_sensor.movement_backyard
- binary_sensor.basement_floor_wet
image: /local/living_room.png
image: /local/living_room.png
```
Display a camera image as background:
```yaml
- type: picture-glance
title: Living room
entities:
type: picture-glance
title: Living room
entities:
- switch.decorative_lights
- light.ceiling_lights
camera_image: camera.demo_camera
camera_image: camera.demo_camera
```
Display a camera image without additional entities:
```yaml
- type: picture-glance
title: Front garden
entities: []
camera_image: camera.front_garden_camera
type: picture-glance
title: Front garden
entities: []
camera_image: camera.front_garden_camera
```
Use different images based on entity state:
```yaml
- type: picture-glance
title: Living room
entities:
type: picture-glance
title: Living room
entities:
- switch.decorative_lights
- light.ceiling_lights
state_image:
state_image:
"on": /local/living_room_on.png
"off": /local/living_room_off.png
entity: group.living.room
entity: group.living.room
```

View File

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

View File

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

View File

@ -61,7 +61,7 @@ theme:
## {% linkable_title Example %}
```yaml
- type: sensor
entity: sensor.illumination
name: Illumination
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
title: Shopping List
type: shopping-list
title: Shopping List
```

View File

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

View File

@ -28,8 +28,8 @@ cards:
Basic example:
```yaml
- type: vertical-stack
cards:
type: vertical-stack
cards:
- type: picture-entity
entity: camera.demo_camera
show_info: false
@ -46,8 +46,8 @@ Basic example:
Combination of vertical and horizontal stack card:
```yaml
- type: vertical-stack
cards:
type: vertical-stack
cards:
- type: picture-entity
entity: group.all_lights
image: /local/house.png

View File

@ -36,8 +36,8 @@ name:
{% linkable_title Example %}
```yaml
- type: weather-forecast
entity: weather.dark_sky
type: weather-forecast
entity: weather.dark_sky
```
<p class="note">