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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for jumpstarter_driver_energenie-0.7.0.tar.gz
Algorithm Hash digest
SHA256 48643dac7122efc1cc358447341414272caa6e23db93eb12c2a72ebca127453d
MD5 0de3eeaf3013075d1bc17bc4792f8cd2
BLAKE2b-256 f889f8b2c2ec8d774cb31ab2f747f2cf961ba96dcf7cb40f7284b92cd82814bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jumpstarter_driver_energenie-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f780a707a5d657929b058bfb9a0d35114471838018f8120a3349a3bc772d74bc
MD5 97e9875598b5bf811801e258316ad6b1
BLAKE2b-256 d029ece926cf1f317ddda9bf0ba95f7d1fbdf88e616fdc7102b0c5933b399e5b

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