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