Anyone know the syntax for templating an attribute with a space in the name?

This, {{states.sensor.jparthum.attributes['Formatted Address']}}, works in HA’s dev-template, but I’m having trouble figuring out how (or if?) I can reference this attribute from a template in the data field of a Call Service node in node-red-contrib-home-assistant-websocket.

Any advice would be much appreciated.

{{entity.sensor.jparthum.attributes.Formatted Address}}

HA and node-red-contrib-home-assistant-websocket use a different template system

1 Like

OK, I feel dumb. Hours of trial-and-error and I didn’t even try the simplest method. :face_with_head_bandage:

Thank you, Kermit.

Hi

Just wanted to link these 2 topics