2.1 KiB
type, title, sidebar_label, description
type | title | sidebar_label | description |
---|---|---|---|
card | Picture Card | Picture | The Picture card allows you to set an image to use for navigation to various paths in your interface or to call a service. |
The Picture card allows you to set an image to use for navigation to various paths in your interface or to call a service.
Screenshot of the picture card.
{% configuration %}
type:
required: true
description: "picture
"
type: string
image:
required: true
description: "The URL of an image. When you want to store images in your Home Assistant installation use the hosting files documentation. After storing your files, use the /local
path, for example, /local/filename.jpg
."
type: string
theme:
required: false
description: Override the used theme for this card with any loaded theme. For more information about themes, see the frontend documentation.
type: string
tap_action:
required: false
description: Action taken on card tap. See action documentation.
type: map
hold_action:
required: false
description: Action taken on card tap and hold. See action documentation.
type: map
double_tap_action:
required: false
description: Action taken on card double tap. See action documentation.
type: map
{% endconfiguration %}
Options For Exemptions
{% configuration badges %} user: required: true description: User ID that can see the view tab. type: string {% endconfiguration %}
Examples
Navigate to another view:
type: picture
image: /local/home.jpg
tap_action:
action: navigate
navigation_path: /lovelace/home
Check the views setup on how to setup custom IDs.
Toggle entity using a service:
type: picture
image: /local/light.png
tap_action:
action: call-service
service: light.toggle
service_data:
entity_id: light.ceiling_lights