Lesson 7: Smart Button, Smart Ideas (Multi-Action Control with the Zigbee Smart Button)
In this lesson, you’ll transform your smart home into something truly interactive—with just a single button. Using the Zigbee smart button from your kit, you’ll create multi-action controls that respond to different types of presses: single, double, and long press.
Step 1: Pair the Button in Home Assistant
- Go to Settings > Devices & Services > ZHA > Add Device
- Put the button into pairing mode by holding it for 5–10 seconds until it starts flashing
- Once detected, name it something like “Scene Button” or “Master Button” and assign it to a room
Step 2: Test the Button
Open the device’s page in Home Assistant and press:
- Single click
- Double click
- Long press
You should see different trigger events show up in the logs—confirming it’s working properly.
Step 3: Create Button-Based Automations
Now it’s time to assign smart actions to each press type.
Automation 1 – Single Press: Toggle a Lamp
- Trigger: Device = Button, Trigger = Single press
- Action: Toggle a smart plug connected to your lamp
Automation 2 – Double Press: Activate “Movie Mode”
- Trigger: Double press
- Action:
- Turn off all lights
- Set RGB bulbs to dim blue
- Turn on the fan if the room is warm
Automation 3 – Long Press: Power Down Everything
- Trigger: Long press
- Action:
- Turn off all smart plugs
- Turn off all bulbs
- (Optional) Set Home Assistant to “Away Mode”
You now have a powerful, portable smart remote that can live by your bed, on the wall, or in your pocket—triggering entire routines with just one press.
Creative Bonus Challenge – The “Morning Routine Button”
Design your perfect morning start-up with personalized automation:
- Single press: Fade lights on slowly over 20 seconds
- Double press: Turn on a coffee maker using a smart plug
- Long press: Play your favorite Spotify playlist using Home Assistant’s media integration
Wake up to your ideal environment, pre-set and waiting for you.
By the end of this lesson, you’ll know how to:
- Pair and configure your Zigbee smart button
- Detect and assign single, double, and long press triggers
- Control lights, plugs, and scenes
- Build powerful one-tap routines to simplify your day
Coming up next: we’ll revisit AI camera detection from last month and combine it with RGB mood lighting—automatically triggered when you sit on the couch. See you in the next lesson!