Controller - SONOFF SNZB-01 Wireless Switch
This blueprint is part of the Controllers-Hooks Ecosystem. You can read more about this topic here.
Description
This blueprint provides universal support for running any custom action when a button is pressed on the provided SONOFF SNZB-01 Wireless Switch. Supports controllers integrated with Zigbee2MQTT, ZHA, deCONZ. Just specify the integration used to connect the remote to Home Assistant when setting up the automation, and the blueprint will take care of all the rest.
Automations created with this blueprint can be connected with one or more Hooks supported by this controller. Hooks allow to easily create controller-based automations for interacting with media players, lights, covers and more. See the list of Hooks available for this controller for additional details.
Requirements
Zigbee2MQTT Integration
OptionalIf you plan to integrate the with Zigbee2MQTT, you must have this integration set up. Installation methods differ between different installation types. Check out the documentation for full details on the required hardware and how to set up Zigbee2MQTT on your system.
Zigbee2MQTT DocsZHA Integration
OptionalIf you plan to integrate the with ZHA, you must have this integration set up. The ZHA integration can be configured from the Home Assistant UI. Check the documentation for full details on the required hardware and how to set up ZHA on your system.
ZHA Integration DocsdeCONZ Integration
OptionalIf you plan to integrate the with deCONZ, you must have this integration set up. The deCONZ integration can be configured from the Home Assistant UI and requires an additional container to run deCONZ on. Head over to the documentation for full details on the required hardware and how to set up deCONZ on your system.
deCONZ Integration DocsInput Text Integration
RequiredThis integration provides the entity which must be provided to the blueprint in the Helper - Last Controller Event input. Learn more about this helper by reading the dedicated section in the Additional Notes.
Inputs
Available Hooks
Light
This Hook blueprint allows to build a controller-based automation to control a light. Supports brightness and color control both for white temperature and rgb lights.
Default Mapping
- Button short press -> Toggle
- Button double press -> Color up
Media Player
This Hook blueprint allows to build a controller-based automation to control a media player. Supports volume setting, play/pause and track selection.
Default Mapping
- Button short press -> Play/Pause
- Button long press -> Stop
- Button double press -> Next track
Cover
This Hook blueprint allows to build a controller-based automation to control a cover. Supports opening, closing and tilting the cover.
Default Mapping
- Button short press -> Open cover
- Button long press -> Stop cover and cover tilt
- Button double press -> Close cover
Additional Notes
Helper - Last Controller Event
The helper_last_controller_event
(Helper - Last Controller Event) input serves as a permanent storage area for the automation. The stored info is used to implement the blueprint's core functionality. To learn more about the helper, how it's used and why it's required, you can read the dedicated section in the Controllers-Hooks Ecosystem documentation.
Behaviour of button long press
Please note that the long press action for this controller is triggered after the button is pressed and held for approximately 3 seconds. Since the device does not fire an event when the button is released, the blueprint does not support looping an action over a long press.
Changelog
-
2022-07-30: first blueprint version 🎉
-
2022-08-08: Optimize characters usage for the
helper_last_controller_event
text input. -
2025-02-13:
⚠️ Breaking Change:
Migrate to Zigbee2MQTT MQTT Device Triggers. (@yarafie)
The
controller_entity
input has been deprecated, andcontroller_device
is now mandatory. If you are a Zigbee2MQTT user and plan to update this blueprint, please make sure to remove thecontroller_entity