ReferenceDevice capabilities
button
button — device-scoped capability for HA button.* / input_button.* fire-only actuators.
button — device-scoped capability for HA button.* / input_button.* fire-only actuators. A button entity has no readable state — pressing it triggers an action on the HA side. There is no status / runtimeState: nothing to poll, nothing to subscribe to.
Usage: the admin UI renders a single "Press" affordance. The provider calls the HA button.press (or input_button.press) service. The domain is derived from the entity_id prefix at runtime.
At a glance
| Capability | button |
| Provided by | The device's own driver provides it: each device registers its own provider. |
| Active providers per device | one |
| Device types | button |
| Source | packages/types/src/capabilities/button.cap.ts |
Methods
Every method takes the device id (deviceId) to address the device; the input tables below list the other fields.
| Method | Kind | Required of a provider | Access |
|---|---|---|---|
press | mutation | yes | protected |
press
mutation
Input
No fields besides deviceId.
Output
Nothing.
Actions (offered in automations and on device cards)
| Action | Label | Sets |
|---|---|---|
button.press | Press |