diff --git a/source/_integrations/event.markdown b/source/_integrations/event.markdown index ba6f28cc175..1053cda4ce3 100644 --- a/source/_integrations/event.markdown +++ b/source/_integrations/event.markdown @@ -13,7 +13,7 @@ ha_integration_type: entity Events are signals that are emitted when something happens, for example, when a user presses a physical button like a doorbell or when a button on a remote control is pressed. -These events are stateless. For example, a doorbell does not have a state like being "on" or "off" but instead is momentarily pressed. Some events can have variations in the type of event that is emitted. For example, maybe your remote control is capable of emitting a single press, a double press, or a long press. +These events do not capture a state in the traditional sense. For example, a doorbell does not have a state such as "on" or "off" but instead is momentarily pressed. Some events can have variations in the type of event that is emitted. For example, maybe your remote control is capable of emitting a single press, a double press, or a long press. The event entity can capture these events in the physical world and makes them available in Home Assistant as an entity. @@ -21,9 +21,12 @@ The event entity can capture these events in the physical world and makes them a ## The state of an event entity -The event entity is stateless, as in, it cannot have a state like the `on` or `off` state that, for example, a normal switch or light entity has. +The event entity does not capture a state such as `on` or `off`. Instead, an event entity keeps track of the timestamp when the emitted event has last been detected. -Therefore, every event entity keeps track of the timestamp when the emitted event has last been detected. +

+ Event entity with timestamp value in state and event type "pressed" + Event entity with a timestamp value in state and event type "pressed". +

Because the state of an event entity in Home Assistant is a timestamp, it means we can use it in our automations. For example: diff --git a/source/images/integrations/event/event_timestamp.png b/source/images/integrations/event/event_timestamp.png new file mode 100644 index 00000000000..3c0a010d03b Binary files /dev/null and b/source/images/integrations/event/event_timestamp.png differ