A single press can keep its existing action while a double press triggers something different. Home Assistant’s button trigger adds a press-count selector, with single through quadruple choices in the interface and higher counts available in YAML.
The device must report multiple presses itself; the trigger does not turn several separate clicks into a double press. Ordinary software buttons retain single-press behavior.
Abílio Costa also adds a condition that checks whether a button is still held. It needs separate start and end reports, so devices that only report a hold after release do not qualify. A thirty-second timeout prevents a missed release from leaving the condition true indefinitely.