Home_Assistant_Integration
Home_Assistant_Integration copied to clipboard
Enhancement to multiline
I have some suggestions for multiline
- possibility to have Icon as a "code" in the value field
- possibility to have color as a "code" in the value field
e.g. a to-do list
[ ] task 1 - due next week - (a MDI icon checkbox, some text, in black) [ ] task 2 - overdue - (a MDI icon checkbox, some text, in red)
or a calendar
mdi:birthdaycake - uncle tom 60 years 02.02.24 -(where text is in black, but on the day changes to red)
Today I use multiline with the following: - type: multiline value: >- {%- for item in mylist['todo.my_tasks']['items'] %} {{ item.summary}}¤ {%- endfor %} delimiter: ¤
thinking maybe you could do something like this:
- type: multiline
value: >-
{%- for item in mylist['todo.my_tasks']['items'] %}
§icon: {{ item.icon }}
§color: {{ item.color }}
{{ item.summary}}¤
{%- endfor %}
delimiter: ¤
controlcommand: §
font, size etc, would also be nice options.