Skip to main content

Estimate Energy Consumption

Project description

PyPI hacs_badge

Docker PyPI HACS hassfest

EstimEnergy

EstimEnergy is tool for monitoring and estimating energy usage and cost. It consists of a FastAPI application that collects data from a home-assistant-glow device, an accompanying API client library and a HACS enabled custom integration for Home Assistant that exposes the data via a sensor entity.

EstimEnergy API

Installation

# docker-compose

services:
  estimenergy:
    image: ghcr.io/eulemitkeule/estimenergy:latest
    container_name: estimenergy
    restart: unless-stopped
    ports:
      - 12380:80
    volumes:
      - /path/to/appdata/estimenergy:/config

The mounted folder must contain a config.yml file that is used to integrate and configure home-assistant-glow devices.

Configuration

# config.yml

collectors:
  - name: <name_your_glow_device> # "glow"
    host: <glow_device_ip_address> # 192.168.0.123
    port: <glow_device_ip_address> # 6053
    password: <glow_device_password> # ""
    cost_per_kwh: <cost_per_kilowatt_hour> # 0.1234
    base_cost_per_month: <independent_cost_per_month> # 12.34
    payment_per_month: <monthly_payment_in_advance> # 123.4
    billing_month: <month_the_billing_period_begins> # 9
    max_incomplete_days: <explained_below> # 5
    min_hour: <explained_below> # 0
    max_hour: <explained_below> # 24

EstimEnergy Library

Installation

pip install estimenergy

Usage

from estimenergy.client import EstimEnergyClient

client = EstimEnergyClient(
    host="<estimenergy_api_ip_address",
    port=<estimenergy_api_port>
)

data = client.get_data(name="<glow_device_name>")

Home Assistant Integration

Installation

Install the repository in HACS via custom repository option. After restarting Home Assistant you can add and configure the integration via the integrations UI.

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

estimenergy-1.7.0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

estimenergy-1.7.0-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file estimenergy-1.7.0.tar.gz.

File metadata

  • Download URL: estimenergy-1.7.0.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for estimenergy-1.7.0.tar.gz
Algorithm Hash digest
SHA256 9e058aa35ebda54007783dc7eb006c615bc83ceae2568ca731e86e80215428a3
MD5 1e388a08db840d87eb5fd0a954f941cc
BLAKE2b-256 4594248bd129b4c7d54d36a2e06dc4d5e0190e913d6c4c180a4fdcdf11fa7fa1

See more details on using hashes here.

File details

Details for the file estimenergy-1.7.0-py3-none-any.whl.

File metadata

  • Download URL: estimenergy-1.7.0-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for estimenergy-1.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fafadffa20f139e8ced2273d166defa6bf7654894dc38dbf6b8a61eef31dc26a
MD5 3c3ae673281a07ffa9fe994150fcddd1
BLAKE2b-256 881a303ba7a7bd865cbbce7c63fcb0edf353a41e2aa5c1c65bd5cf12c6026a7b

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