One remote for lamps, air conditioners and scenes in Home Assistant
A single Aqara Wireless Mini Switch T1 wireless button with three actions: a single press toggles lamps, a double press stops the AC, a long press starts a scene. The logic is in Home Assistant and can be changed without touching the button.
- Level
- Beginner
- Active time
- 30–60 minutes
- Home Assistant required
- Yes
In the living room there are two lamps, an AC and a TV. All of that wants a different app or remote. A small wireless button with “single”, “double” and “long” press events can trigger three different actions, and Home Assistant decides what they are. We make one button that switches lights, the AC and a scene.
What we will get
One button for the living room with three actions: a single press toggles the lamps, a double press starts or stops the AC, and a long press turns on a “Movie” scene. The actions are examples and can be changed in minutes, because the logic is in Home Assistant, not in the button.
Boundary: one button can’t replace everything. We keep it to three actions, otherwise nobody in the house remembers it.
What we need
- Aqara Wireless Mini Switch T1: one button, which can be stuck on or sit on a table. It runs on a CR2032 battery according to the product description.
- Home Assistant with a Zigbee coordinator. According to the manufacturer the button works with an Aqara hub; in Home Assistant we connect it directly to a Zigbee coordinator. Zigbee2MQTT supports the model (as “Wireless mini switch T1”).
- The devices we control: lamps or plugs, an AC with an integration in Home Assistant, a scene.
You need a Zigbee hub or Home Assistant with a Zigbee adapter.
Setup time: about 30 minutes. Pairing Aqara devices sometimes takes several attempts.
How it works
The button sends an action: a single, double or long press. Zigbee2MQTT passes them on as “action” with values like single, double and hold. The automation looks at which action came and runs the linked action in Home Assistant. One button, three triggers, three separate actions.
That way nothing is “baked into” the button. If tomorrow we want the double press to do something else, we change it in Home Assistant without touching the button.
How it is at our place
In Marto’s Home Assistant, control of lights, ACs and scenes already goes through buttons: for example a switch by the bed toggles the main lamp and the LED strips, and in the hallway there is a scene switch for the lights. We did not find such an Aqara T1 button with exactly these three actions at Marto’s, so the example below is not a copy of a home setup.
Steps
- We put in a new battery and pair the button to the Zigbee network. We expect a new device with a battery sensor and an action.
- We press the button with the three kinds of press and note what Home Assistant shows (Developer tools or the Zigbee2MQTT log).
- We decide what the single, double and long press do. We write it on a sheet and show it to the household.
- We create one automation for each action, or one with “choose”. The example uses “choose”.
- We stick the button in place and try it from different distances.
# Example: one button, three actions. The topics and entity IDs are examples.
# Works with Zigbee2MQTT (MQTT action). With ZHA the trigger is different.
alias: Living room button - lamps, AC, scene
triggers:
- trigger: mqtt
topic: zigbee2mqtt/living_room_button/action
actions:
- choose:
- conditions: "{{ trigger.payload == 'single' }}"
sequence:
- action: light.toggle
target:
entity_id: light.living_room
- conditions: "{{ trigger.payload == 'double' }}"
sequence:
- action: climate.set_hvac_mode
target:
entity_id: climate.living_room
data:
hvac_mode: "off"
- conditions: "{{ trigger.payload == 'hold' }}"
sequence:
- action: scene.turn_on
target:
entity_id: scene.living_room_movie
mode: single
Checking the result
- Normal case: every press does its action in about a second.
- Edge case: a double press is read as two single ones. Then we add a short pause or replace it with a long press.
- Missing data: with a weak battery the button may not respond. The lamp switch keeps working.
If it doesn’t work
- It won’t pair → the battery is weak or the coordinator is far away → we move closer and try again.
- There is no action → the topic or device name is different → we look at the real name in Zigbee2MQTT.
- The AC doesn’t respond → its integration is missing in Home Assistant → we check it separately from the button.
Limitations
- It doesn’t detect which device is on: the action is “toggle”, not “make it be on”. When the states get out of step, we replace the action with an explicit turn on or turn off.
- Without Home Assistant and the Zigbee network the button does nothing. The ordinary switches stay.
- We turn off the button by deleting the automation or taking it off the wall.
Sources and verification status
Checked against the Zigbee2MQTT and Home Assistant documentation, 22.11.2026, against the product description in our catalog, and a read-only reading of Marto’s Home Assistant (see ha-evidence).
Need a hand?
We can set up and install everything in this project. In some regions we install it ourselves — ask us.
Contact us


