Multi layer attributes

I’m sure i’ve done this before but can I remember how. hopefully its a simple one.

I have a entity. ‘climate.home’ with the below attributes

Google Photos

I’m trying to get the ‘mode’ state.

something like
state_attr(‘climate.home’, ‘status’, ‘system_mode_status’, ‘mode’)

I have no problem getting any of the first layer of attributes but cant seem to work out how to get any attributes a little deeper.

any help much appreciated.

{{ states.climate.home.attributes.status.system_mode_status.mode }}

many thanks Phil. How I didn’t try this I have no idea. must have tried everything else.

1 Like