GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - zewelor/ha-eem-pt: Home Assistant / HACS integration for EEM Online electricity consumption in Madeira, Portugal

BranchesTags
Open more actions menu

Latest commit

 

History

24 Commits
24 Commits

Folders and files

NameName
Last commit message
Last commit date
.agents
.agents
 
 
.claude
.claude
 
 
.codex
.codex
 
 
.devcontainer
.devcontainer
 
 
.github
.github
 
 
.vscode
.vscode
 
 
config
config
 
 
custom_components/eem_online
custom_components/eem_online
 
 
docs
docs
 
 
schemas
schemas
 
 
script
script
 
 
tests
tests
 
 
.commitlintrc.json
.commitlintrc.json
 
 
.editorconfig
.editorconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.markdownlint-cli2.jsonc
.markdownlint-cli2.jsonc
 
 
.markdownlint.json
.markdownlint.json
 
 
.pre-commit-config.yaml
.pre-commit-config.yaml
 
 
.prettierignore
.prettierignore
 
 
.prettierrc.yml
.prettierrc.yml
 
 
.release-please-manifest.json
.release-please-manifest.json
 
 
.templatesyncignore
.templatesyncignore
 
 
.yamllint.yml
.yamllint.yml
 
 
AGENTS.md
AGENTS.md
 
 
AI_POLICY.md
AI_POLICY.md
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CLAUDE.md
CLAUDE.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
DEPENDENCIES.md
DEPENDENCIES.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
hacs.json
hacs.json
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
pyproject.toml
pyproject.toml
 
 
release-please-config.json
release-please-config.json
 
 
requirements.txt
requirements.txt
 
 
requirements_dev.txt
requirements_dev.txt
 
 
requirements_test.txt
requirements_test.txt
 
 

Repository files navigation

EEM Online for Home Assistant

Unofficial project. This community integration is not affiliated with, endorsed by, or supported by Empresa de Electricidade da Madeira, S.A. (EEM). The EEM name and logo are used only to identify the service with which this integration interoperates.

EEM Online is a minimal custom integration for electricity consumption published by Empresa de Electricidade da Madeira. It configures one login and one contract through the Home Assistant UI.

The integration polls every 12 hours. It exposes the latest available daily consumption and cumulative meter reading, each with its operator date as an attribute. Daily consumption is also imported as an external long-term statistic for the Energy Dashboard.

Current scope

  • one EEM login and one contract per config entry;
  • daily consumption from resumo/ultimasemana;
  • the latest cumulative meter reading from the last 30 complete days of leituras;
  • a seven-day overlapping correction window;
  • two read-only sensors with consumption_date and reading_date attributes;
  • one external statistic: eem_online:<contract>_consumption.

Fifteen-minute samples, individual meter registers, locally retained reading history, billing, prices, production, export, one entry managing multiple contracts, options, actions, and repair flows are outside this version.

Installation

EEM Online requires Home Assistant 2026.9.2 or newer and HACS 2.0.5 or newer.

Install through HACS

Open your Home Assistant instance and open the EEM Online repository in HACS

  1. Select the button above and open the link in your Home Assistant instance.
  2. In HACS, select Download.
  3. Restart Home Assistant.

If the button does not open the repository, add it manually:

  1. Open HACS and select the three-dot menu in the top-right corner.
  2. Select Custom repositories.
  3. Enter https://github.com/zewelor/ha-eem-pt and select Integration as the category.
  4. Select Add, open EEM Online, and select Download.
  5. Restart Home Assistant.

Add the integration

Open your Home Assistant instance and start setting up EEM Online

Select the button above, or open Settings > Devices & services > Add integration and search for EEM Online.

Enter the EEM Online username, password, and numeric electricity contract number. The integration validates the credentials and checks that the configured contract endpoint returns a supported response before creating the entry.

To monitor another contract from the same EEM Online account, add the integration again with the same credentials and the other contract number. Home Assistant keeps each contract as an independent integration entry with its own sensors and Energy statistic.

Energy Dashboard

Open Settings > Dashboards > Energy, add an electricity grid consumption source, and select the statistic named EEM Online <contract> consumption. The Energy Dashboard uses the imported historical statistic; the latest-daily-consumption sensor is only a compact status view. The meter-reading sensor is also for display only and must not be added as a second consumption source.

Data assumptions

EEM Online does not publish a supported public API. The MVP currently interprets the sum of consumoCheias, consumoVazio, and consumoPonta as kWh for the civil date in data, in the Atlantic/Madeira time zone. Local PoC observations support that shape, but the daily-summary date semantics still need confirmation. A live, anonymized leituras check confirmed the data timestamp, numeric totalRegistadores, and pagination shape; the portal labels meter readings in kWh and reports production in a separate field. Zero daily consumption is not imported because the weekly response does not prove that a zero-valued day is complete.

Development

The project structure and development tooling are based on the HACS Integration Blueprint.

script/setup/bootstrap
script/lint
script/type-check
script/hassfest
script/test

About

Home Assistant / HACS integration for EEM Online electricity consumption in Madeira, Portugal

Topics

electricityenergyhacshome-assistantmadeira

Resources

Readme
MIT license

Contributing

Contributing
Activity

Stars

0 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Used by

Contributors

Languages

Generated from jpawlowski/ha-integration-blueprint
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.