#How can I add a template to my dashboard ?

1 messages · Page 1 of 1 (latest)

sour fog
#

I have a template that outputs a number. I'd like to see that number on my dashboard (in addition to using it in automations). But it's not present in the dropdown list of entities when I try to create an entity card for it. What am I supposed to do ?

lofty moth
#

where did you put this template?

clear trellis
#

Assuming OP used the UI to make the entity, does the browser/app need to be refreshed afterwards?

sour fog
#

In configuration.yaml

#

template: etc

#

I reloaded the config

clear trellis
#

Did you check Developer Tools to ensure the entity is actually being created and is configured properly?

sour fog
#

How do I check that ?

#

Oh you mean if it's present in states ?

clear trellis
#

Correct. One of my template entities:

sour fog
#

Yes it's in there

#

Okay it's creating it's, but not under the name I'm giving it... And it created it 4 times

#

template:

  • sensor:
    • name: "Cheap electricity"
      unique_id: "cheap_electricity"
      state: >-
      {% set voltage = states('sensor.shellypmminig3_dcda0ceb089c_voltage') %}
      {{ voltage not in ['unavailable', 'unknown'] }}

This is the template. But I have it x4 in the states list, but the copies are marked "unavailable"

#

This is just broken. Man every time I try to use a feature of Home Assistant it turns out to be half broken.

clear trellis
#

Just curious what you're trying to do. Looks like you made an entity that shows the state of another entity.