Tuya M9-zigbee-SL
Wall switch with presence sensing
A Zigbee wall switch with four gangs and four scene buttons, a neutral wire connection and built-in motion sensing, reporting presence and switching up to eight endpoints.
Compatibility
Compatible with EpiSensor Edge over Zigbee.
Pair it with the Zigbee radio on an EpiSensor Gateway. Edge reads it locally on the Gateway.
Edge reads 37 values from it, listed under Interface.
Connect it with
Specifications
Zigbee2MQTT exposes eight switch endpoints, l1 to l8. Each reports on or off and accepts on, off or toggle. Each also has a power-on behaviour (off, on or previous), a switch mode (switch or scene) and an indicator light mode (normal, on, off or flash). A backlight can be turned on or off, and scene presses arrive as scene_1 to scene_8 action events.1
- Gangs
- 4 gangs and 4 scene buttons1
- Exposed endpoints
- 8 switch endpoints (l1 to l8)1
- Wiring
- Connects with a neutral wire1
- Sensing
- Motion and presence detection1
- Wireless
- Zigbee1
- Light-off delay
- 0 to 1,000 s1
- Power-on behaviour
- Off, on or previous state, per endpoint1
Where it is used
Switching lighting circuits in rooms and corridors, with presence at the switch used to switch lights off after the delay.
Building energy management systems (BEMS)Occupancy-linked lighting and comfort control in hotel rooms.
Hotel energy management systems
Interface
Readings and settings, with units and ranges where Tuya publishes them. readable, readable and writable.
| Reading | Unit | Range or values | Access |
|---|---|---|---|
| Measurements 3 | |||
| Switch | - | - | Read only |
| Presence | - | Binary state | Read only |
| Action | - | scene_1scene_2scene_3scene_4scene_5scene_6scene_7scene_8 |
Read only |
| Controls 8 | |||
| State L1 | - | Binary state | Read and write |
| State L2 | - | Binary state | Read and write |
| State L3 | - | Binary state | Read and write |
| State l4 | - | Binary state | Read and write |
| State l5 | - | Binary state | Read and write |
| State l6 | - | Binary state | Read and write |
| State l7 | - | Binary state | Read and write |
| State l8 | - | Binary state | Read and write |
| Settings 26 | |||
| Power on behaviour L1 | - | offpreviouson |
Read and write |
| Power on behaviour L2 | - | offpreviouson |
Read and write |
| Power on behaviour L3 | - | offpreviouson |
Read and write |
| Power on behaviour l4 | - | offpreviouson |
Read and write |
| Power on behaviour l5 | - | offpreviouson |
Read and write |
| Power on behaviour l6 | - | offpreviouson |
Read and write |
| Power on behaviour l7 | - | offpreviouson |
Read and write |
| Power on behaviour l8 | - | offpreviouson |
Read and write |
| Switch mode L1 | - | switchscene |
Read and write |
| Switch mode L2 | - | switchscene |
Read and write |
| Switch mode L3 | - | switchscene |
Read and write |
| Switch mode l4 | - | switchscene |
Read and write |
| Switch mode l5 | - | switchscene |
Read and write |
| Switch mode l6 | - | switchscene |
Read and write |
| Switch mode l7 | - | switchscene |
Read and write |
| Switch mode l8 | - | switchscene |
Read and write |
| Light mode L1 | - | normalonoffflash |
Read and write |
| Light mode L2 | - | normalonoffflash |
Read and write |
| Light mode L3 | - | normalonoffflash |
Read and write |
| Light mode l4 | - | normalonoffflash |
Read and write |
| Light mode l5 | - | normalonoffflash |
Read and write |
| Light mode l6 | - | normalonoffflash |
Read and write |
| Light mode l7 | - | normalonoffflash |
Read and write |
| Light mode l8 | - | normalonoffflash |
Read and write |
| Backlight mode | - | Binary state | Read and write |
| Delay | sec | 0 to 1,000 sec | Read and write |
Setup
-
Open pairing in Edge
In Edge, open pairing on the Gateway’s Zigbee network. The Gateway accepts new devices while pairing is open.
-
Put the switch in pairing mode
Follow the join instructions supplied with the unit. No public source gives a button sequence for this model.
-
Confirm the join
Check that Edge identifies the device as Tuya M9-zigbee-SL.1
-
Check one endpoint
Switch one gang from Edge and confirm the load and the reported state agree. Then check that presence changes when someone moves in front of the switch.
Sources
- Tuya M9-zigbee-SL: Smart Switch (4 gang + 4 scene) with neutral wire and motion sensing (opens in a new tab)
- Tuya device definitions including Tuya/M9-zigbee-SL (opens in a new tab)
Further reading
Product names and trademarks belong to their owners. Publication does not imply endorsement or a commercial relationship.












