https://www.amazon.de/ARCELI-SRD-05VDC-SL-C-Relais-Modul-Kostenloser-Intelligent/dp/B07JL4YB8R
- Tested with Ubuntu 20
sudo apt install usbrelay
sudo usbrelay
which will output something like
Device Found
type: 16c0 05df
path: /dev/hidraw0
serial_number:
Manufacturer: www.dcttech.com
Product: USBRelay2
Release: 100
Interface: 0
Number of Relays = 2
1_1=0
1_2=0
Use the information obtained by getting the state to set the variables (in this case 1_1
and 1_2
, I saw these be different initially, not sure why)
To enable relay 1 do
sudo usbrelay 1_1=1