Energenie PDU Driver¶
Drivers for EnerGenie products.
This driver provides a client for the EnerGenie Programmable power switch. The driver was tested on EG-PMS2-LAN device only but should be easy to support other devices.
Installation¶
$ pip3 install --extra-index-url https://pkg.jumpstarter.dev/simple jumpstarter-driver-energenie
Configuration¶
Example configuration:
export:
power:
type: jumpstarter_driver_energenie.driver.EnerGenie
config:
host: "192.168.0.1"
password: "password"
slot: 1
Parameter |
Description |
Type |
Required |
Default |
|---|---|---|---|---|
host |
The IP address of the EnerGenie system |
|
yes |
|
password |
The password of the EnerGenie system |
|
no |
|
slot |
The slot number to be managed (1, 2, 3, or 4) |
|
no |
|
API Reference¶
- class jumpstarter_driver_energenie.driver.EnerGenie¶
driver for the EnerGenie Programmable surge protector with LAN interface.
This driver was tested on EG-PMS2-LAN device only but should be easy to support other devices.
- login()¶
Log in to the programmable power switch.
- Returns:
True if login is successful, False otherwise.
- set_switch(switch_number, state)¶
Set the state of a specific switch.
- Parameters:
switch_number – The switch number (1, 2, etc.).
state – The state to set (1 for ON, 0 for OFF).
- Returns:
True if the operation is successful, False otherwise.
Examples¶
Powering on and off a device
client.power.on()
time.sleep(1)
client.power.off()
CLI¶
$ sudo uv run jmp exporter shell -c ./packages/jumpstarter-driver-energenie/examples/exporter.yaml
$$ j
Usage: j [OPTIONS] COMMAND [ARGS]...
Generic composite device
Options:
--help Show this message and exit.
Commands:
power Generic power
$$ j power on
$$ exit