type: entity-filter
entities:
- light.bed_light
- light.ceiling_lights
- light.kitchen_lights
state_filter:
- 'on'
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 %}.
主要问题:
1. l 是个什么鬼?从何而来?是个什么数据类型?
2. config.entities是个什么鬼?config从何而来?是个什么数据类型?
3. ”for l in config.entities“这个循环是个什么机理?循环靠什么终止呢?
小白对HA文档,如同看天书,费力费力。想咨询以下如何有效的学习呢?