Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 105648

How to access "old_state" within a template

$
0
0

I cannot find a good answer for this. I’m looking to extract the old state info from an entity state change within jinja template. Google says I can use {{ state_attr(‘entity_id’, ‘old_state’) }} but the value is null. I am specifically trying to get the attributes of the old_state, i.e. old_state.attributes.min_color_temp_kelvin.

7 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 105648

Trending Articles