Back to blog
Home AssistantAutomatizaciónHomelab

Home Assistant 2026.12 standardizes physical button triggers

The new button triggers make repeatable, traceable homelab actions practical from physical remotes.

By Isma3 min read

In my homelab, some tasks are better triggered without opening a web interface: start a backup, mute alerts during maintenance, or put a service into maintenance mode. Connecting a physical remote is not the hard part; the problem is that integrations often describe button presses in different ways. Home Assistant 2026.12 adds dedicated triggers for button presses and button holds, which makes that layer more consistent. (home-assistant.io)

A shared contract for remotes

The button.pressed trigger works with button entities, input_button helpers, and event entities using the button device class. Its press_count option can distinguish single, double, triple, and higher press counts, provided that the device reports multi-press events. That lets me describe intent in the automation — “double press starts a backup” — instead of binding the logic to an integration-specific event name. (home-assistant.io)

For press-and-hold behavior, there is button.held, designed for compatible event entities with the button device class. It can run once when a long press is detected, or repeat using interval while the button remains held. Home Assistant also provides button.hold_ended for actions that should happen when the button is released after a hold. (home-assistant.io)

A small backup trigger

This example uses a double press on a rack remote to start a backup script. The entity IDs are only examples and need to be replaced with the ones from each installation, but the trigger, press_count, condition, and action syntax are documented. The maintenance toggle adds a simple guard so an accidental gesture cannot start a sensitive job at the wrong time. (home-assistant.io)

alias: "Start manual homelab backup"
mode: single
triggers:
  - trigger: button.pressed
    target:
      entity_id: event.rack_remote_backup
    options:
      press_count: 2
conditions:
  - condition: state
    entity_id: input_boolean.mantenimiento_homelab
    state: "on"
actions:
  - action: script.turn_on
    target:
      entity_id: script.backup_homelab

The same structure can mute alerts, enable a maintenance scene, or trigger a task that already has its own safeguards. I would keep destructive operations behind a script with checks rather than expose them directly to a button press. The remote should be a convenient input, while the important logic remains in version-controlled YAML.

The important limitations

Not every button suddenly gains support for double presses, triple presses, or holds. A press_count above one requires multi_press; devices that report each press separately will run the single-press automation twice and will not run the double-press automation. Helpers and entities in the button domain only support a single press through this trigger. (home-assistant.io)

Button holds have similar constraints. button.held only works with supported event entities, and repeating while held requires the device to report both the start and end of the long press; repeats also stop after 30 seconds. If a remote only exposes a proprietary event that does not map to these event types, the event-received trigger may still be necessary, and the integration capabilities need checking first. (home-assistant.io)

Test before mounting the remote

Before assigning operational work to a physical button, I would inspect the event types exposed by the entity and review the automation traces. Home Assistant records cases where an entity lacks the capabilities required by a trigger, which is particularly useful when testing multi-press and hold behavior. I would also choose the automation mode deliberately: single prevents a second run while the first is still active, but queued or restart behavior may fit another task better. (home-assistant.io)


Source: 2026.12 release notes · Official documentation: button.pressed · Official documentation: button.held

Newsletter

What I learn coding with AI, every two weeks in your inbox.

Real numbers, mistakes included. No spam, unsubscribe in one click.

No spam, unsubscribe in one click. I only use your email to send you this and the newsletter. More in the privacy policy.