trying the card in markdown content_template to show the available js variables:
- type: custom:card-templater
card:
type: markdown
content_template: >
## Hello {{user.name}}
You are admin: {{user.is_admin}} and owner {{user.is_owner}}
This card is on the page {{page.path}} using {{theme}}, and
{{page.pathname}} is the path name of the current page
{{page.href}} - the full url of the current page
{{page.protocol}} - the protocol (http/https) of the current page
{{page.host}} - the host
entities:
- entity: sensor.time
It looks like this issue is that the markdown card natively supports templating, and also passes in variables. These were overriding the ones passed by card-templater,
Iāve been working on an alpha version of the card, which refactors the templating method, and Iāve implemented a fix for this issue in version 0.1.0-alpha2.
This version should also improve how quickly it responds to updates, as it now subscribes to template updates rather than directly checking for state updates.
Just wondering if this is a known issue. When using card templater with a gauge card and a needle, every time the entity state changes then the needle resets to zero and then moves to the correct position resulting in constant flicking of the needle. Any ideas if this can be fixed?
I have a water level sensor which gives integer values 0ā¦4 for 5 different levels. What Iām trying to achieve is, that instead of the number a text is shown in the gauge. How can I show that text in the gauge, but still make the gauge react correctly with its needle to the numbers 1ā¦5? What I tried is:
but the gauge wants numeric values. Any chance to get the numeric values to the gauge renderer, and afterwards change the text? I managed to misuse the āunit_of_measurementā-field as my text:
Iām feeling dumb but cannot work out why this is not working. I am trying to build a gauge that dynamically sets the max value to the oven setpoint with the current temperature on the gauge.
max_template: is ignored regardless of what I put in there. For a simple test, I put a raw number. The result is no scale shown on the gauge. (Changing to max: 200 results in a standard gauge, as expected).
Thanks so much for this card, the concept is so usefull!!!
Iām trying to modify the field āorp_setpointā in custom:pool-monitor-card
I replaced orp_setpoint with orp_setpoint_template and then I tried different syntaxes, without sucess.
In the place of āMY TEMPLATEā, I tried to apply following syntaxes,but none was sucessful.
Did I miss something??:
Isnāt it supposed to work with custom cards?
{{ 792 if states('sensor.analyseur_d_eau_ph')|round(1)==7 else
785 if states('sensor.analyseur_d_eau_ph')|round(1)==7.1 else
779 if states('sensor.analyseur_d_eau_ph')|round(1)==7.2 else
773 if states('sensor.analyseur_d_eau_ph')|round(1)==7.3 else
766 if states('sensor.analyseur_d_eau_ph')|round(1)==7.4 else
760 if states('sensor.analyseur_d_eau_ph')|round(1)==7.5 else
754 if states('sensor.analyseur_d_eau_ph')|round(1)==7.6 else
748 if states('sensor.analyseur_d_eau_ph')|round(1)==7.7 else 766}}