Event entity: add section heading for state (#2315)

* Lawn-mower: rename activity to state to streamline terminology

* Undo unrelated changes
This commit is contained in:
c0ffeeca7 2024-09-12 12:19:38 +02:00 committed by GitHub
parent e4b3bfe769
commit a9b5cfb9f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,12 +5,14 @@ sidebar_label: Event
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. The event entity captures these events in the physical world and makes them available in Home Assistant as an entity.
An event entity is derived from the [`homeassistant.components.event.EventEntity`](https://github.com/home-assistant/core/blob/dev/homeassistant/components/event/__init__.py).
## States
The event entity is stateless, meaning you don't have to maintain a state. Instead, you can trigger an event when something in the physical world happens. Home Assistant will keep track of the last event that was emitted and will show that as the current state of the entity.
The main state of the entity is the timestamp of when the last event was emitted, additionally the type of the event and optionally extra state data that was provided with the event are also kept track of.
An event entity is derived from the [`homeassistant.components.event.EventEntity`](https://github.com/home-assistant/core/blob/dev/homeassistant/components/event/__init__.py).
## Properties
:::tip