OpenEPaperLink / Home_Assistant_Integration

Home assistant Integration for the OpenEPaperLink project
Apache License 2.0
137 stars 32 forks source link

Support templates in format and border descriptors #35

Closed psfales closed 9 months ago

psfales commented 10 months ago

As far as I can tell, it's not possible use a template in lines4 or lines5 services for the "format:" or "border:" lines

It would be nice if it were possible to use templates to do things like:

format1: "{% if state_attr('climate.lower_level','current_temperature') > 80 -%}lwbr{%- else -%}lwbb{%- endif %}"

to use red text if the temperature is over 80, and black text otherwise.

psfales commented 10 months ago

It would also be useful to have templates supported in the "color" field for drawcustom.

Color is the one that's of most interest to me, but I imagine templates could also be useful for the other fields like font, size, x, y, etc.

tioan commented 10 months ago

It would also be useful to have templates supported in the "color" field for drawcustom.

alias: OEPL - Display Schreibtische description: "" trigger:

psfales commented 10 months ago

OK, my face is red... I was sure that I tested it in drawcustom, but apparently I didn't do it correctly because, yes, it works for me to!

So you can ignore that comment! But I believe it's still correct that it doesn't work in the lines4 or lines5 service, right?

jonasniesner commented 9 months ago

Closing this issue because a workaround was found and 4line/5line are depricated