Template node state entity

Hi!

I’m trying to create a Template node with a list of entity and the state of them.

Llum Menjador Gran:     {{states[switch.llum_menjador_gran].state}}
Llum Menjador Paret:    {{states.light.llum_menjador_paret.state}}
Llum Menjador Finestres:{{switch.llum_menjador_finestres.state}}
Llum HG:                {{light.switch_hg.state}}
Llum HM:                {{switch.llum_hm.state}}
Persiana HG:            {{cover.persiana_hg.state}}
Persiana HM:            {{cover.persiana_hm.state}}
Impresora 3D:           {{switch.endoll_impresora_3d.state}}

The debug node not shows the information:

Llum Menjador Gran:     
Llum Menjador Paret:    
Llum Menjador Finestres:
Llum HG:                
Llum HM:                
Persiana HG:            
Persiana HM:            
Impresora 3D:

The template Node is configured like this:

What I’m missing?

Thanks

That looks like the NR template node, use the HA render template node instead.

image

Thanks @Mikefila , if I use that node a error shows up:

HomeAssistantError: Request failed with status code 400

400 means it can’t find what you are looking for, I believe templates need the states key.

Llum HG:     {{light.switch_hg.state}}
Llum HG:     {{states.light.switch_hg.state}}
1 Like

Finally it works!!

Thank you so much!!! :raised_hands:

1 Like