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

:substitutions:
$ pip3 install --extra-index-url {{index_url}} 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.7.2.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.7.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for jumpstarter_driver_energenie-0.7.2.tar.gz
Algorithm Hash digest
SHA256 e40213c4a549118cfcd70e21fbda080412ff6a37bfe64a02242583b9f75ae2a5
MD5 cad7cd2ed9587fe5b1327891beb59a0c
BLAKE2b-256 9fc14b6bf6875c871b6f10b61a38abb28b58d28d162d4a83e95aee731b451dbc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jumpstarter_driver_energenie-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 321983dde97a57c4d8a5a6d048e031664b3c87dbb81bacf27cef1299f83bae09
MD5 9a733529bd1c9905a7b8e47eb33020a2
BLAKE2b-256 3e6a61526ca4c42c20465ef041f3c9b18e5da8d3ee95c275c78ab6718279d32d

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