Plugs and switches · Aqara
Light Switch H2 US (double rocker)
What it can do
- Local control
Chip or platform · Connectivity
- Zigbee
Identifiers
- Zigbee model
- lumi.switch.agl004
Supported by
- Zigbee2MQTTMIT (project's license)
Hacks for this device family
From the Xiaomi Mi Home and Aqara devices fiche: what owners already do with devices like this.
An evening~30 minNo risk
Control plugs, fans and purifiers without the app
Pull each device's token once with the console tool, then every command stays on your network, from a script or from Home Assistant.
An evening~30 minNo risk
Move Aqara sensors off the Aqara hub
Unpair a sensor from the Aqara app and re-pair it to your own Zigbee coordinator. It keeps working, next to any other Zigbee brand.
Hands-on~1 hCan brick it
Open a root shell on the gateway itself
A command sent over the miio protocol turns on Telnet on the gateway, letting a community daemon run Zigbee2MQTT directly on the hardware. It has to be re-enabled after every reboot.
Projects for this device family
- Koenkk/zigbee2mqttZigbee to MQTT bridge, removes the need for proprietary vendor hubsActive★ 15.8K
- al-one/hass-xiaomi-miotHome Assistant integration for Xiaomi MIoT devices via the miot spec protocolActive★ 6.2K
- rytilahti/python-miioPython library & console tool for controlling Xiaomi smart appliancesActive★ 4.3K
- AlexxIT/XiaomiGateway3Home Assistant control of Xiaomi Gateway 3 Zigbee/BLE/Mesh devices locallyActive★ 2.8K
- Do1e/mijia-apiPython API, CLI and MCP server to control Mijia devices through the unofficial Mi Home APIActive★ 923
- niceboygithub/AqaraGatewayHome Assistant integration for Aqara gateways and hubs over local MQTT and telnetActive★ 645