Multi-Press Sensor Trigger Blueprint for Home Assistant
A simple and flexible blueprint for automating actions based on single, double, and long press events from a sensor entity. Ideal for devices like the Sonoff SNZB-01, this blueprint allows you to configure specific actions for each press type.
Features:
- Supports single press, double press, and long press events.
- Fully customizable actions for each press type.
- Works with any sensor entity that changes state based on button presses.
Usage:
- Import the blueprint using the link below.
- Create a new automation using the blueprint.
- Select the sensor entity and define actions for each press type.
Example Automations:
Single Press:
Toggle a light.
service: light.toggle
target:
entity_id: light.living_room
Double Press:
Turn on the light at full brightness.
service: light.turn_on
data:
brightness: 255
target:
entity_id: light.living_room
Long Press:
Turn off the light.
service: light.turn_off
target:
entity_id: light.living_room
Contribution:
Feel free to contribute or share feedback for improvements! You can fork this blueprint on GitHub or Gist and modify it to suit your needs.