--- title: Button description: Instructions on how to set up your button with Home Assistant. ha_category: - Button ha_release: 2021.12 ha_quality_scale: internal ha_domain: button ha_codeowners: - '@home-assistant/core' ha_integration_type: entity related: - docs: /docs/configuration/customizing-devices/ title: Customizing devices - docs: /dashboards/ title: Dashboard --- A button {% term entity %} is an entity that can fire an {% term event %} / trigger an {% term action %} towards a {% term device %} or {% term service %} but remains stateless from the Home Assistant perspective. It can be compared to a real live momentary switch, push-button, or some other form of a stateless switch. {% include integrations/building_block_integration.md %} ## The state of a button The button {% term entity %} is stateless, as in, it cannot have a state like the `on` or `off` state that, for example, a normal switch entity has. The state of a button is a timestamp showing the date and time of the last time the button had been pressed in the Home Assistant UI or via an action.
Screenshot showing the state of a button entity in the developer tools.
Example of device class icons.