mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 13:26:54 +00:00
Lovelace: Fix example config for picture elements (#5871)
This commit is contained in:
parent
05f4374d7b
commit
30c23a4970
@ -292,8 +292,8 @@ Specify different [CSS filters](https://developer.mozilla.org/en-US/docs/Web/CSS
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
state_filter:
|
state_filter:
|
||||||
'on': brightness(110%) saturate(1.2)
|
"on": brightness(110%) saturate(1.2)
|
||||||
'off': brightness(50%) hue-rotate(45deg)
|
"off": brightness(50%) hue-rotate(45deg)
|
||||||
```
|
```
|
||||||
|
|
||||||
## {% linkable_title Example %}
|
## {% linkable_title Example %}
|
||||||
@ -324,7 +324,7 @@ state_filter:
|
|||||||
style:
|
style:
|
||||||
top: 95%
|
top: 95%
|
||||||
left: 60%
|
left: 60%
|
||||||
service: light.turn_off
|
service: homeassistant.turn_off
|
||||||
service_data:
|
service_data:
|
||||||
entity_id: group.all_lights
|
entity_id: group.all_lights
|
||||||
- type: icon
|
- type: icon
|
||||||
@ -334,8 +334,6 @@ state_filter:
|
|||||||
style:
|
style:
|
||||||
top: 10%
|
top: 10%
|
||||||
left: 10%
|
left: 10%
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## {% linkable_title Images Example %}
|
## {% linkable_title Images Example %}
|
||||||
@ -350,10 +348,10 @@ state_filter:
|
|||||||
tap_action: toggle
|
tap_action: toggle
|
||||||
image: /local/living_room.png
|
image: /local/living_room.png
|
||||||
state_image:
|
state_image:
|
||||||
'off': /local/living_room_off.png
|
"off": /local/living_room_off.png
|
||||||
filter: saturate(.8)
|
filter: saturate(.8)
|
||||||
state_filter:
|
state_filter:
|
||||||
'on': brightness(120%) saturate(1.2)
|
"on": brightness(120%) saturate(1.2)
|
||||||
style:
|
style:
|
||||||
top: 25%
|
top: 25%
|
||||||
left: 75%
|
left: 75%
|
||||||
|
Loading…
x
Reference in New Issue
Block a user