USB adapter switch
Control the power of any USB device

Introduction
You can place this small USB adapter switch between any USB device.
Now you can control the power of the connected USB device(s) via your automations.
The first port can also be used to switch on/off data access via USB, the (optional) others are only for USB power control.
Table of Contents
Purposes

- Control the power of the USB charger for your phone;
- Control a USB lamp;
- Control a USB desk fan;
- Control a device connected to a USB powerbank;
- Cut off the USB data connection for a webcam;
- Make periodic backups on an external hard disk and cut-off the connection by default;
- Control battery-to-USB Christmas decorations;
Specifications
This sensor has the following specifications:

- Zigbee or WiFi protocol
- Input: 5V-12V
- Output: 5V-12V - 2,5A
- Control the power via USB
- Control to transfer data via a single port
- Toggle the state with the physic button on the device
- Type TS0003
Zigbee adapter switch (AliExpress)
|
TS0003
Please let me know if this device also works with ZHA.
Zigbee2MQTT
This device is registered as TS0003 in Zigbee2MQTT.

To pair this device, you first need to set the Zigbee2MQTT to pairing mode.
Then set the device in pairing mode.
On the top of the sensor is a small button, press and hold this button for 5 seconds to activate the pairing mode.
Now the device should be found by Zigbee2MQTT and added to your network.

To control each port, you need to send on the MQTT topic zigbee2mqtt/usbswitch/set
this payload to activate the left USB port.
{
"state_left": "ON"
}
To control the other ports you can use state_center
and state_right
with also the values OFF
or TOGGLE
.
With the property on_time
you can specify how long (in seconds) the device should be in this state.
See the Z2M product page for all control option details.
Buy
The use links are affiliate links, when you buy it via this link, you also support this blog but still pay the original price.
If you’re interested in this sensor,
you can buy it
here (AliExpress) or via
Amazon US.
There are different versions you can choose between:
-
It’s available for the Zigbee or WiFi protocol;
-
With 1, 2 or 3 USB ports;
That’s it!
See also my other Zigbee devices list:
<< See also my other Zigbee content