Skip to main content

A Volttron agent that acts as a Virtual End Node (VEN) within the OpenADR 2.0b specification.

Project description

OpenADRVen Agent

Passing? pypi version

OpenADR (Automated Demand Response) is a standard for alerting and responding to the need to adjust electric power consumption in response to fluctuations in grid demand.

Prerequisites

  • Python 3.8

Installation

  1. Create and activate a virtual environment.

    python -m venv env
    source env/bin/activate
    
  2. Install volttron and start the platform.

    pip install volttron
    
    
    # Start platform with output going to volttron.log
    volttron -vv -l volttron.log &
    
  3. Install and start the Volttron OpenADRVen Agent.

    vctl install volttron-openadr-ven --agent-config <path to agent config> \
    --vip-identity openadr.ven \
    --start
    
  4. View the status of the installed agent

    vctl status
    
  5. Observe Data

    The OpenADR publishes events on the message bus. To see these events in the Volttron log file, install a Listener Agent:

    vctl install volttron-listener --start
    

    Once installed, you should see the data being published by viewing the Volttron logs file that was created in step 2.

    To watch the logs, open a separate terminal and run the following command:

    tail -f <path to folder containing volttron.log>/volttron.log
    

Agent Configuration

The required parameters for this agent are "ven_name" and "vtn_url". Below is an example of a correct configuration with optional parameters added.

    {
        "ven_name": "PNNLVEN",
        "vtn_url": "https://eiss2demo.ipkeys.com/oadr2/OpenADR2/Simple/2.0b",
        "cert_path": "~/.ssh/secret/TEST_RSA_VEN_210923215148_cert.pem",
        "key_path": "~/.ssh/secret/TEST_RSA_VEN_210923215148_privkey.pem",
        "debug": true,
        "disable_signature": true
    }

Save this configuration in a JSON file in your preferred location. An example of such a configuration is saved in the root of this repository; the file is named config_example1.json

Development

Please see the following for contributing guidelines contributing.

Please see the following helpful guide about developing modular VOLTTRON agents

Disclaimer Notice

This material was prepared as an account of work sponsored by an agency of the United States Government. Neither the United States Government nor the United States Department of Energy, nor Battelle, nor any of their employees, nor any jurisdiction or organization that has cooperated in the development of these materials, makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness or any information, apparatus, product, software, or process disclosed, or represents that its use would not infringe privately owned rights.

Reference herein to any specific commercial product, process, or service by trade name, trademark, manufacturer, or otherwise does not necessarily constitute or imply its endorsement, recommendation, or favoring by the United States Government or any agency thereof, or Battelle Memorial Institute. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or any agency thereof.

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

volttron_openadr_ven-1.0.1a0.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

volttron_openadr_ven-1.0.1a0-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file volttron_openadr_ven-1.0.1a0.tar.gz.

File metadata

  • Download URL: volttron_openadr_ven-1.0.1a0.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.8.15 Linux/5.15.0-1024-azure

File hashes

Hashes for volttron_openadr_ven-1.0.1a0.tar.gz
Algorithm Hash digest
SHA256 2d0695bab0dfa03a3c462f18e9bb3ff88ae419469e2aa4304b0f2ca0f6c826f3
MD5 1a8079186d825623fd0de1dfde9a050e
BLAKE2b-256 e704149482628c80bd62f9d62184bbe32d348ed8433b8b941091c696b652e812

See more details on using hashes here.

File details

Details for the file volttron_openadr_ven-1.0.1a0-py3-none-any.whl.

File metadata

File hashes

Hashes for volttron_openadr_ven-1.0.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 327aeaaf107095890a8a7f2a1911b4818098300598aef4dbcfe36551f1660f6a
MD5 3af3c71dec655900778a258a421e4056
BLAKE2b-256 9ffcff94c500c5a2323df92c588cf2dfb54601daf462742217b0b27979d84709

See more details on using hashes here.

Supported by

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