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.
Hello
Is your blueprint compatible with the zigbeetomqqt version 2.0 who stop the usage of action and click
Only breaking when legacy is enabled:
Action and click sensors have been removed (homeassistant.legacy_triggers setting). This means all sensor.*_action and sensor.*_click entities are removed. Use the MQTT device trigger instead.
Entity attributes (homeassistant.legacy_entity_attributes setting) has been removed. This means that entities discovered by Zigbee2MQTT will no longer have entity attributes (Home Assistant entity attributes are accessed via e.g. states.binary_sensor.my_sensor.attributes).