Stepwise Brightness Control via Button

Stepwise brightness control workflow overview

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 Controller Hub 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.

Button single press as workflow trigger

Steps

Add a "Control Accessory" Step

We start by turning on the light.

Control accessory step turning light on

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%.

If else step checking brightness below 25 percent

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 the same pattern with additional "Else If" steps for 75% and finally 100%.

Additional else if steps for 50 75 and 100 percent

Blink the Light When Maximum Brightness Is Reached

Now tap on "Else execute". Any actions you add there run when brightness is already at 100%.

Add a "Control Accessory" step to turn off the light. Then add a "Wait" step set 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.

Else branch creating blink effect

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 brightness is greater than 75%. If true, set it to 75%.

Then repeat the same logic for 50% and 25%.

Finally add one last check: if brightness is above 0%, turn the light off.

Final Overview

Each time the button is pressed, the brightness increases in 25% steps.

Final stepwise brightness workflow overview
Download on the App Store

Get Inspired

Meeting Light

Meeting Light

Uses light color to show whether you’re in a meeting.

Waste Calendar

Waste Calendar

Never forget the bin again – with colored light and speech.

Carbon Dioxide Alert

Carbon Dioxide Alert

Get notified when COβ‚‚ levels exceed 1000 ppm.

Location-Based Workflow

Location-Based Workflow

Automate your routines based on where you are.

Laundry Done Alert

Laundry Done Alert

Receive a notification when your washing machine has finished.

Beat the Heat

Beat the Heat

Automatically close your blinds on hot days.

Wake-Up Light

Wake-Up Light

Use any Apple Home Lamp as a Wake-Up Light.

Irrigation Schedule

Irrigation Schedule

Keep your garden green.

Control Lights with Multiple Motion Sensors

Control Lights with Multiple Motion Sensors

For large or irregularly shaped spaces.

Stepwise Brightness Control via Button

Stepwise Brightness Control via Button

Control light brightness step by step.

Custom Notification with Live Camera Feed

Custom Notification with Live Camera Feed

Open the camera stream instantly.

Smart Bathroom Fan Control

Smart Bathroom Fan Control

Make your fan truly intelligent.

New Mail Notification

New Mail Notification

Get notified when new mail arrives.

Integrate Speakers into Workflows

Integrate Speakers into Workflows

Control volume, play music, or pause playback.

Battery Warning

Battery Warning

Get battery alerts when they matter.

Sleep Timer

Sleep Timer

Use a sleep timer with Apple Home.

Execute Workflow Only Once a Day

Execute Workflow Only Once a Day

Ensures the workflow runs only once.

Accessory Values in Notifications

Accessory Values in Notifications

Send notifications featuring real-time accessory values.

NFC Tags

NFC Tags

Automate Apple Home Accessories with NFC.

Blink Lights

Blink Lights

Make a light blink and effortlessly return it to its original state.

Display Camera When Motion Is Detected

Display Camera When Motion Is Detected

Automatically display the camera livestream whenever motion is detected.

Open Window Reminder

Open Window Reminder

Get a reminder if you forget to close a window after ventilating.

Toggle Lamp

Toggle Lamp

Easily toggle a lamp using a single switch.

Turn Light Off Using Motion Sensor

Turn Light Off Using Motion Sensor

Efficiently control your lighting with a motion sensor.