docs: Examples for "templating entities"#163
Conversation
|
@PaulSD please review |
|
seem a very interesting development tour introducing here. the thing that always bugs my system is when config-template-card recalculates the complete card upon updating of the entities involved. Tbh, I steer away from config-template-card even if it requires me to write a config multiple times and use a conditional to replace it. The later is always much lighter in the system. So, re-iterating on my own request above, I fear that intoducing this functionality might make things even worse. iow, did you test to see what happens when implementing this seriously? Small documentation examples always work, but real life configs tend to be a different beast... |
|
It depends on a particular user config. |
I feel like either you or I must be missing something here. Basically, yes CTC does recalculate the whole card on every update, but that is the fundamental design of Lovelace (and the underlying Lit framework), it is true of all Lovelace cards, and it shouldn't have any measurable performance impact unless you have an extreme use case (like thousands of entities or templates that make slow AJAX calls). What specific problems are you observing? (Might be best to continue this discussion in #112 since it isn't really related to this documentation update.) |
Added some examples for "templating entities".