With the Hub Mode in Controller for HomeKit, you can easily toggle a lamp using a single switch. How this works is explained in this guide.
Start Event
Create a new workflow and select “Button Press” as your start event.
Steps
Add an IF/ELSE Step
Under the IF condition, check if the lamp is off and turn it on.
Under the ELSE condition, turn the lamp off if it’s on.
Final Overview
Now you can toggle your lamp with a single switch—simple and efficient!