Skip to content

Commit 1de2cd8

Browse files
author
Michael Kaspar
committed
last_updated virtual attribute documentation added to section state variables
1 parent 5343be6 commit 1de2cd8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/reference.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,12 +262,13 @@ Here's an example using ``input_number``, assuming it has been configured to cre
262262
input_number.test.set_value(value=13)
263263
input_number.test.set_value(13)
264264
265-
Three additional virtual attribute values are available when you use a variable directly as
265+
Four additional virtual attribute values are available when you use a variable directly as
266266
``DOMAIN.entity.attr`` or call ``state.get("DOMAIN.entity.attr")``:
267267

268268
- ``entity_id`` is the DOMAIN.entity as string
269269
- ``last_changed`` is the last UTC time the state value was changed (not the attributes)
270270
- ``last_updated`` is the last UTC time the state entity was updated
271+
- ``last_reported``is the last UTC time the integration set the state of an entity, regardless of whether it changed or not
271272
272273
If you need to compute how many seconds ago the ``binary_sensor.test1`` state changed, you could
273274
do this:

0 commit comments

Comments
 (0)