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.1.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.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for jumpstarter_driver_energenie-0.7.1.tar.gz
Algorithm Hash digest
SHA256 d070aef5358f760eca504f67b61aae21ae846fbba5c81aaa64a28ec8832827b0
MD5 73a450ecbb375ff91b24bd62b98237f3
BLAKE2b-256 2c27069f17b2747e92145332d50f3028351fd49a94f70ce1a3886e404acb3e5d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jumpstarter_driver_energenie-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3a5d841adc4f1ccbf8bd9b8bd3bd5b362f2e6276d76569be345fe65eaec830a1
MD5 4abcd3c694cced821e9ef0fc0a247801
BLAKE2b-256 afe0d721e8fa565a379d8b7d48ac2750c73e2d754f3bf5fe850b12d26ba5e112

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