Sometimes full brightness is just too much. Wouldn’t it be great to dim your lights using an Apple Home button? With a workflow and the Hub Mode in Controller for HomeKit, that’s easily done. This step-by-step guide shows you exactly how to set it up.
Start Event
A single button press serves as the start event for the workflow.
Steps
Add a "Control Accessory" Step
We start by turning on the light.
Add an "If/Else" Step
Next, add an If/Else step with the condition: Brightness is less than 25%. If the condition is met, set the brightness to 25%.
Add an "Else if" Step
Click the plus icon between “If” and “Else” to insert an “Else If” step. Check if the brightness is less than 50%, and if that condition is true, set the brightness to 50%.
Then, repeat this by adding additional “Else If” steps for 75% and finally for 100%.
Blink the Light When Maximum Brightness is Reached
Now tap on “Else execute”. Any actions you add here will run when the brightness is already at 100%.
Add a “Control Accessory” step to turn off the light. Then add a “Wait” step and set it to 1 second. Finally, add another “Control Accessory” step to turn the light back on.
This creates a short blink effect when you press the button and the light is already at full brightness.
Dim the Light
To dim the light instead, create a second workflow. You can use a double press of the button as the trigger.
Start by checking if the brightness is greater than 75%. If so, set it to 75%.
Then repeat the same logic for 50% and 25%.
Finally, add one last check: If the brightness is above 0%, turn the light off.
Final Overview
Each time the button is pressed, the brightness increases in 25% steps.
