Update templating.markdown (#24805)

This commit is contained in:
kepath 2022-11-09 08:40:05 +00:00 committed by GitHub
parent 839f919faf
commit 533945f95c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,7 +118,7 @@ Entities that are on:
{{ ['light.kitchen', 'light.dinig_room'] | select('is_state', 'on') | list }}
```
{% endraw% }
{% endraw %}
Other state examples:
{% raw %}
@ -203,7 +203,7 @@ List of friendly names:
{{ ['binary_sensor.garage_door', 'binary_sensor.front_door'] | map('state_attr', 'friendly_name') | list }}
```
{% endraw% }
{% endraw %}
List of lights that are on with a brightness of 255:
@ -213,7 +213,7 @@ List of lights that are on with a brightness of 255:
{{ ['light.kitchen', 'light.dinig_room'] | select('is_state', 'on') | select('is_state_attr', 'brightness', 255) | list }}
```
{% endraw% }
{% endraw %}
### Working with Groups