mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-08 18:06:54 +00:00
Update picture-elements docs. (#5830)
This commit is contained in:
parent
d400dd24ba
commit
628d0b65cd
@ -40,23 +40,6 @@ title:
|
|||||||
|
|
||||||
## {% linkable_title Elements %}
|
## {% linkable_title Elements %}
|
||||||
|
|
||||||
### {% linkable_title Navigate to other views %}
|
|
||||||
|
|
||||||
{% configuration %}
|
|
||||||
type:
|
|
||||||
required: true
|
|
||||||
description: navigation
|
|
||||||
type: string
|
|
||||||
navigation_path:
|
|
||||||
required: true
|
|
||||||
description: URL path to another view.
|
|
||||||
type: string
|
|
||||||
icon:
|
|
||||||
required: false
|
|
||||||
description: Material Design Icon.
|
|
||||||
type: string
|
|
||||||
{% endconfiguration %}
|
|
||||||
|
|
||||||
### {% linkable_title State Badge %}
|
### {% linkable_title State Badge %}
|
||||||
|
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
@ -87,9 +70,21 @@ entity:
|
|||||||
type: string
|
type: string
|
||||||
tap_action:
|
tap_action:
|
||||||
required: false
|
required: false
|
||||||
description: "Set to `toggle` to change state"
|
description: more-info, toggle, navigate, call-service
|
||||||
type: string
|
type: string
|
||||||
default: more-info
|
default: more-info
|
||||||
|
navigation_path:
|
||||||
|
required: false
|
||||||
|
description: Url path to navigate to (e.g. `/lovelace/1`)
|
||||||
|
type: string
|
||||||
|
service:
|
||||||
|
required: false
|
||||||
|
description: "Service to call (e.g. `light.turn_on`)"
|
||||||
|
type: string
|
||||||
|
service_data:
|
||||||
|
required: false
|
||||||
|
description: The service data to use.
|
||||||
|
type: object
|
||||||
style:
|
style:
|
||||||
required: true
|
required: true
|
||||||
description: Position and style the element using CSS.
|
description: Position and style the element using CSS.
|
||||||
@ -107,6 +102,23 @@ entity:
|
|||||||
required: true
|
required: true
|
||||||
description: Entity id
|
description: Entity id
|
||||||
type: string
|
type: string
|
||||||
|
tap_action:
|
||||||
|
required: false
|
||||||
|
description: more-info, toggle, navigate, call-service
|
||||||
|
type: string
|
||||||
|
default: more-info
|
||||||
|
navigation_path:
|
||||||
|
required: false
|
||||||
|
description: Url path to navigate to (e.g. `/lovelace/1`)
|
||||||
|
type: string
|
||||||
|
service:
|
||||||
|
required: false
|
||||||
|
description: "Service to call (e.g. `light.turn_on`)"
|
||||||
|
type: string
|
||||||
|
service_data:
|
||||||
|
required: false
|
||||||
|
description: The service data to use.
|
||||||
|
type: object
|
||||||
style:
|
style:
|
||||||
required: true
|
required: true
|
||||||
description: Position and style the element using CSS.
|
description: Position and style the element using CSS.
|
||||||
@ -138,20 +150,37 @@ style:
|
|||||||
type: object
|
type: object
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
### {% linkable_title Service Call Icon %}
|
### {% linkable_title Icon Element %}
|
||||||
|
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
type:
|
type:
|
||||||
required: true
|
required: true
|
||||||
description: service-icon
|
description: icon
|
||||||
|
type: string
|
||||||
|
icon:
|
||||||
|
required: true
|
||||||
|
description: Icon to display (e.g. `mdi:home`)
|
||||||
type: string
|
type: string
|
||||||
title:
|
title:
|
||||||
required: false
|
required: false
|
||||||
description: Icon tooltip.
|
description: Icon tooltip.
|
||||||
type: string
|
type: string
|
||||||
|
entity:
|
||||||
|
required: false
|
||||||
|
description: Entity to use for more-info/toggle
|
||||||
|
type: string
|
||||||
|
tap_action:
|
||||||
|
required: false
|
||||||
|
description: more-info, toggle, navigate, call-service
|
||||||
|
type: string
|
||||||
|
default: more-info
|
||||||
|
navigation_path:
|
||||||
|
required: false
|
||||||
|
description: Url path to navigate to (e.g. `/lovelace/1`)
|
||||||
|
type: string
|
||||||
service:
|
service:
|
||||||
required: true
|
required: false
|
||||||
description: "Service like `light.turn_on`."
|
description: "Service to call (e.g. `light.turn_on`)"
|
||||||
type: string
|
type: string
|
||||||
service_data:
|
service_data:
|
||||||
required: false
|
required: false
|
||||||
@ -176,9 +205,21 @@ entity:
|
|||||||
type: string
|
type: string
|
||||||
tap_action:
|
tap_action:
|
||||||
required: false
|
required: false
|
||||||
description: none, more-info, toggle, call-service
|
description: none, more-info, toggle, navigate, call-service
|
||||||
type: string
|
type: string
|
||||||
default: more-info
|
default: more-info
|
||||||
|
navigation_path:
|
||||||
|
required: false
|
||||||
|
description: Url path to navigate to (e.g. `/lovelace/1`)
|
||||||
|
type: string
|
||||||
|
service:
|
||||||
|
required: false
|
||||||
|
description: "Service to call (e.g. `light.turn_on`)"
|
||||||
|
type: string
|
||||||
|
service_data:
|
||||||
|
required: false
|
||||||
|
description: The service data to use.
|
||||||
|
type: object
|
||||||
image:
|
image:
|
||||||
required: false
|
required: false
|
||||||
description: The image to display.
|
description: The image to display.
|
||||||
@ -199,14 +240,6 @@ state_filter:
|
|||||||
required: false
|
required: false
|
||||||
description: '[State-based CSS filters](#how-to-use-state_filter)'
|
description: '[State-based CSS filters](#how-to-use-state_filter)'
|
||||||
type: object
|
type: object
|
||||||
service:
|
|
||||||
required: false
|
|
||||||
description: Service to call.
|
|
||||||
type: string
|
|
||||||
service_data:
|
|
||||||
required: false
|
|
||||||
description: The service data to use.
|
|
||||||
type: object
|
|
||||||
style:
|
style:
|
||||||
required: true
|
required: true
|
||||||
description: Position and style the element using CSS.
|
description: Position and style the element using CSS.
|
||||||
@ -277,6 +310,15 @@ state_filter:
|
|||||||
service: light.turn_off
|
service: light.turn_off
|
||||||
service_data:
|
service_data:
|
||||||
entity_id: group.all_lights
|
entity_id: group.all_lights
|
||||||
|
- type: icon
|
||||||
|
icon: mdi:home
|
||||||
|
tap_action: navigate
|
||||||
|
navigation_path: /lovelace/0
|
||||||
|
style:
|
||||||
|
top: 10%
|
||||||
|
left: 10%
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## {% linkable_title Images Example %}
|
## {% linkable_title Images Example %}
|
||||||
@ -302,6 +344,7 @@ state_filter:
|
|||||||
# Camera, red border, rounded-rectangle - show more-info on click
|
# Camera, red border, rounded-rectangle - show more-info on click
|
||||||
- type: image
|
- type: image
|
||||||
entity: camera.driveway_camera
|
entity: camera.driveway_camera
|
||||||
|
camera_image: camera.driveway_camera
|
||||||
style:
|
style:
|
||||||
top: 5%
|
top: 5%
|
||||||
left: 10%
|
left: 10%
|
||||||
|
Loading…
x
Reference in New Issue
Block a user