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.3.tar.gz (3.3 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.3-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for jumpstarter_driver_energenie-0.7.3.tar.gz
Algorithm Hash digest
SHA256 6b48f870e44d873944f7a0f73e74a440550993a559777e11b793b656e7cdfa97
MD5 76b499ac179240313cd4430281f31eef
BLAKE2b-256 1f2f57a6a4699224141be1e65378af5a81e0be1d5865ba5a67b8917cf8d96c38

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jumpstarter_driver_energenie-0.7.3-py3-none-any.whl
Algorithm Hash digest
SHA256 af6bd9b295fe49a4a39df440b1451ed979de462c4db0773cf207122ba74915bb
MD5 bcbf90509802d71fd5b0bbf2e0ac7bd8
BLAKE2b-256 d5dd721008c97687e5f95bb28a1afec16bf4e5e490128042788399da2796fd5d

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