Google is committed to advancing racial equity for Black communities. See how.

fx set-relay

Actuates the state of an external relay by writing a single byte to |tty|.

usage: fx set-relay [--off|--on] /dev/ttyUSB0

Turn on or off a USB-connected relay on the specified device.

set-relay source code