Skip to main content

Energenie is an advanced surge protector with power management features

Project description

EnerGenie

Drivers for EnerGenie products.

EnerGenie driver

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.

driver: jumpstarter_driver_energenie.driver.EnerGenie

Installation

pip3 install --extra-index-url https://pkg.jumpstarter.dev/simple/ jumpstarter-driver-energenie

Configuration

export:
  power:
    type: jumpstarter_driver_energenie.driver.EnerGenie
    config:
      host: "192.168.0.1"
      password: "password"
      slot: "1"

Config parameters

Parameter Description Type Required Default
host The ip address of the EnerGenie system string yes None
password The password of the EnerGenie system string no None
slot The slot number to be managed, 1, 2, 3, 4 int yes 1

PowerClient API

The EnerGenie driver provides a PowerClient with the following API:

.. autoclass:: jumpstarter_driver_power.client.PowerClient()
    :no-index:
    :members: on, off

Examples

Powering on and off a device

:skipif: True
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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jumpstarter_driver_energenie-0.6.0.tar.gz (161.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jumpstarter_driver_energenie-0.6.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file jumpstarter_driver_energenie-0.6.0.tar.gz.

File metadata

File hashes

Hashes for jumpstarter_driver_energenie-0.6.0.tar.gz
Algorithm Hash digest
SHA256 e00ac9dcda0f458dcc1ed9a9808022dab848291040729d2055d9701b72b32c82
MD5 3452f7d244237697a0a9732bb85baf70
BLAKE2b-256 d47f490022428406c0cc5c1b3ef05532a1e162e241d317c8e32e2222f226c1b0

See more details on using hashes here.

File details

Details for the file jumpstarter_driver_energenie-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jumpstarter_driver_energenie-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a35a16848a641e951cd6566de5869fc6c3c589228c4a98232cdf8ff0a82e086a
MD5 5e3137f9b04dc20e53d67d574e41d9b4
BLAKE2b-256 1db41a5ee1d2470da5cd5a2e0faabf9f09c9bf3b75c06db5d77a4a775111b2ac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page