Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type: markdown
- title: Pylenie
- content: >-
- <table width="100%" border="1px">
- <tr><th>Alergen</th><th>Poziom</th><tr>
- {%- for s in states.sensor | selectattr('entity_id', 'match', 'sensor.pylenie.*') | list %}
- <tr>
- <td>{{ s.attributes.get("friendly_name") | replace("Pylenie - ","") | capitalize }}</td>
- <td>{{ "●" * s.state | int}}</td>
- </tr>
- {%- endfor %}
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement