Home_Assistant_Integration icon indicating copy to clipboard operation
Home_Assistant_Integration copied to clipboard

Enhancement to multiline

Open cokeman0 opened this issue 1 year ago • 0 comments

I have some suggestions for multiline

  1. possibility to have Icon as a "code" in the value field
  2. 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.

cokeman0 avatar Jan 07 '24 08:01 cokeman0