It supports brightness control, pressed-rotation color-temperature control, custom Single/Double/Hold actions, optional Hold repeating, and a separate Release Action.
Breaking changes — read before updating
-
Home Assistant Core 2025.4 or newer is required.
-
Target Lightnow accepts one light entity selected in the UI. Existing templates and entity lists are no longer supported. -
Brightness sensitivity now uses a direct
1-100 %/tickvalue. The default is2 %/tick. -
Pressed-rotation color-temperature sensitivity now uses a direct
1-10000 K/tickvalue. The default is100 K/tick. -
The unused
translate_friendly_nameinput has been removed. -
Hold Repeat Maximum Duration now defaults to 11 seconds and cannot be set higher.
After re-importing, open every automation created from this Blueprint, review the changed inputs, and save it again. Existing template/list targets must be replaced with one light or light-group entity.
Import Blueprint
If the Blueprint is already installed, use Settings > Automations & scenes > Blueprints > ⋮ > Re-import blueprint. Re-importing overwrites the installed Blueprint with the current version.
Supported device
-
Aqara Rotary Knob H1 (wireless) ZNXNKG02LM
-
Zigbee2MQTT 2.0.0 and later; older versions may also work but are not guaranteed
Requirements
-
Home Assistant Core 2025.4 or newer
-
Zigbee2MQTT
-
Home Assistant MQTT integration
-
The knob’s Zigbee2MQTT operation mode set to
event -
One target
lightentity with brightness support -
Kelvin color-temperature support for pressed rotation
The Blueprint reads each JSON action directly from the knob’s Zigbee2MQTT device topic. It does not use generated Home Assistant action sensor entity IDs. Renaming those sensor entity IDs does not affect this version.
The legacy_action_sensor setting can be either enabled or disabled; it does not affect this Blueprint because the Blueprint does not use legacy action sensor entities.
Configuration
-
Import or re-import the Blueprint.
-
Enter the Zigbee2MQTT base topic. Keep
zigbee2mqttif you did not change it. -
Enter the knob’s exact Zigbee2MQTT friendly name. This forms the device topic together with the base topic, for example
zigbee2mqtt/knob. -
Select one target light or light-group entity.
-
Configure Single, Double, and Hold actions as needed.
-
Expand
Hold Repeat & Releaseonly if repeat or release behavior is needed. -
Adjust brightness, color temperature, transition, and limit settings.
Controlling multiple lights
Target Light accepts one entity. To control multiple lights, select a single group entity created with either:
Direct entity lists and templates are not supported.
Knob controls
-
Turn right: Increase brightness
-
Turn left: Decrease brightness
-
Press and turn right: Increase color temperature
-
Press and turn left: Decrease color temperature
-
Single / Double / Hold: Run the configured action
-
Release: Run Release Action when configured
One 12-degree rotation is one tick. For example, with the default brightness value of 2 %/tick, five ticks change brightness by 10%. With the default color-temperature value of 100 K/tick, five pressed-rotation ticks change the target by 500 K.
The Blueprint uses the cumulative angle from one rotation gesture and clamps the result to the configured light limits. High per-tick values are safe: the result stops at the selected minimum or maximum instead of exceeding it.
Restore Brightness
-
Disabled by default: turning right while the target is off starts from the configured minimum brightness and applies the rotation.
-
Enabled: turning right while the target is off first restores the previous brightness when the light supports it, then later movement continues adjustment.
Hold Repeat & Release
The Press Action section contains only Single Action, Double Action, and Hold Action. Repeat and release settings are in the separate, collapsed Hold Repeat & Release section.
-
Do not repeat: Run Hold Action once.
-
Repeat Hold Action: Run Hold Action once, then repeat it.
-
Hold once, then repeat a separate action: Run Hold Action once, then repeat Hold Repeat Action.
Repeating stops when release, another knob action, or the maximum duration is reached. Release Action runs once when a release event is received, independently of the selected Hold Repeat Mode.
LEAVE RELEASE ACTION EMPTY unless an action is specifically needed when the knob is released.
Hold Repeat Maximum Duration is a software fallback for a lost release event. It cannot prevent the knob’s hardware behavior.
RELEASE THE PHYSICAL BUTTON BEFORE 10 SECONDS. Holding it for 10 seconds can place the knob into networking mode, interrupt its Zigbee connection, and require pairing again.
Updating
Home Assistant supports updating an installed Blueprint by re-importing it. Review the Breaking Changes section first, re-import the Blueprint, then review and save each existing automation that uses it.
Official Home Assistant guide: Using automation blueprints





