mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-17 14:26:51 +00:00
Documentation for home-assistant/home-assistant-polymer#3505 (#10200)
* Documentation for home-assistant/home-assistant-polymer#3505 * Add raw tags
This commit is contained in:
parent
ef860a6255
commit
9a4c87e398
@ -46,3 +46,27 @@ content: >
|
|||||||
|
|
||||||
Starting with Home Assistant 0.72, we're experimenting with a new way of defining your interface. We're calling it the **Lovelace UI**.
|
Starting with Home Assistant 0.72, we're experimenting with a new way of defining your interface. We're calling it the **Lovelace UI**.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Template variables
|
||||||
|
|
||||||
|
A special template variable - `config` is set up for the `content` of the card. It contains the configuration of the card.
|
||||||
|
|
||||||
|
E.g.
|
||||||
|
{% raw %}
|
||||||
|
```yaml
|
||||||
|
type: entity-filter
|
||||||
|
entities:
|
||||||
|
- light.bed_light
|
||||||
|
- light.ceiling_lights
|
||||||
|
- light.kitchen_lights
|
||||||
|
card:
|
||||||
|
type: markdown
|
||||||
|
content: |
|
||||||
|
The lights that are on are:
|
||||||
|
{% for l in config.entities %}
|
||||||
|
- {{ l.entity }}
|
||||||
|
{%- endfor %}
|
||||||
|
|
||||||
|
And the door is {% if is_state('binary_sensor.door', 'on' %} open {% else %} closed {% endif %}.
|
||||||
|
```
|
||||||
|
{% endraw %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user