tom_l
April 27, 2020, 8:17am
5
Nope. Same problem, just different location:
last_changed
isn’t an attribute it is a property of the state object. Check the developer tool / states menu, you won’t see last_changed
in the attributes column. Petro explains it here:
Ok, so this is where things get funky. You should familiarize yourself with home assistant state objects. This is what home assistant passes around when doing pretty much anything. These state objects contain 8 or so properties. Do not get these properties confused with the devices attributes.
These properties are:
Field
Description
state.state
String representation of the current state of the entity. Example off.
state.entity_id
Entity ID. Format: .<object_id>. Example: light.…