Baytech driver

Baytech port switch

Arguments

connection

The next arguments depend on the value of the connection argument:
  • socket
    host
    Default: 127.0.0.1.
    port
    Default: 23.
  • comport
    device
    baudrate
    Possible values: 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 56000, 57600, 115200, 230400.
    Default: 9600.
user

Outlet type

Arguments

port
An integer value between 1 and 8.

Properties

state
Boolean (true or false).

Events

state
Fires whenever the value of the state property changes.

Commands

on
off
toggle
reboot

RPC type

Properties

power
Possible values: FAULTY, OK.
rmspower
A floating point value between -9.999e12 and 250.

Events

power
Fires whenever the value of the power property changes.
rmspower
Fires whenever the value of the rmspower property changes.

Commands

unit unitcommands