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