mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Lovelace: update picture (#5766)
This commit is contained in:
parent
d0a5d62488
commit
8e3fa61659
@ -38,30 +38,25 @@ service_data:
|
||||
required: false
|
||||
description: The service data.
|
||||
type: object
|
||||
keys:
|
||||
entity_id:
|
||||
required: true
|
||||
description: The ID of the entity to use.
|
||||
type: string
|
||||
{% endconfiguration %}
|
||||
|
||||
## {% linkable_title Examples %}
|
||||
|
||||
Basic navigation example:
|
||||
Navigate to another view:
|
||||
|
||||
```yaml
|
||||
- type: picture
|
||||
image: /local/exit.jpg
|
||||
navigation_path: /lovelace/arsaboo
|
||||
image: /local/home.jpg
|
||||
navigation_path: /lovelace/home
|
||||
```
|
||||
|
||||
Check the [views](/lovelace/views/) setup on how to setup custom IDs.
|
||||
|
||||
Basic navigation example:
|
||||
Toggle entity using a service:
|
||||
|
||||
```yaml
|
||||
- type: picture
|
||||
image: /local/exit.jpg
|
||||
image: /local/light.png
|
||||
service: light.toggle
|
||||
service_data:
|
||||
entity_id: light.ceiling_lights
|
||||
|
Loading…
x
Reference in New Issue
Block a user