{"id":49087443,"url":"https://github.com/maxbeizer/homeassistant-nes","last_synced_at":"2026-04-20T16:35:46.621Z","repository":{"id":349864628,"uuid":"1204119756","full_name":"maxbeizer/homeassistant-nes","owner":"maxbeizer","description":"HA app for Nashville Electrical Service","archived":false,"fork":false,"pushed_at":"2026-04-07T21:51:30.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-07T23:19:12.000Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxbeizer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-07T17:55:15.000Z","updated_at":"2026-04-07T21:51:35.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/maxbeizer/homeassistant-nes","commit_stats":null,"previous_names":["maxbeizer/homeassistant-nes"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/maxbeizer/homeassistant-nes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxbeizer%2Fhomeassistant-nes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxbeizer%2Fhomeassistant-nes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxbeizer%2Fhomeassistant-nes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxbeizer%2Fhomeassistant-nes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxbeizer","download_url":"https://codeload.github.com/maxbeizer/homeassistant-nes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxbeizer%2Fhomeassistant-nes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32055613,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-20T16:35:43.993Z","updated_at":"2026-04-20T16:35:46.617Z","avatar_url":"https://github.com/maxbeizer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nashville Electric Service (NES) for Home Assistant\n\n[![hacs_badge](https://img.shields.io/badge/HACS-Custom-orange.svg)](https://hacs.xyz/)\n[![GitHub Release](https://img.shields.io/github/v/release/maxbeizer/homeassistant-nes)](https://github.com/maxbeizer/homeassistant-nes/releases)\n[![License: MIT](https://img.shields.io/github/license/maxbeizer/homeassistant-nes)](LICENSE)\n\nA custom [Home Assistant](https://www.home-assistant.io/) integration for [Nashville Electric Service (NES)](https://www.nespower.com/) that provides energy usage and cost data from the NES customer portal.\n\n## Sensors\n\n| Sensor | Unit | Device Class | Description |\n|--------|------|--------------|-------------|\n| Monthly Energy Usage | kWh | `energy` | Billed energy for the most recent billing period |\n| Monthly Energy Cost | USD | `monetary` | Billed cost for the most recent billing period |\n| Yearly Energy Usage | kWh | `energy` | Total energy over the last 13 billing periods |\n| Yearly Energy Cost | USD | `monetary` | Total cost over the last 13 billing periods |\n\nThe **Monthly Energy Usage** sensor is compatible with Home Assistant's [Energy Dashboard](https://www.home-assistant.io/docs/energy/).\n\n## Installation\n\n### HACS (Recommended)\n\n1. Open HACS in your Home Assistant instance\n2. Click the three dots menu → **Custom repositories**\n3. Add `https://github.com/maxbeizer/homeassistant-nes` with category **Integration**\n4. Search for \"Nashville Electric Service\" and install\n5. Restart Home Assistant\n6. Go to **Settings → Devices \u0026 Services → Add Integration → Nashville Electric Service**\n\n### Manual\n\n1. Copy the `custom_components/nes` directory into your Home Assistant `config/custom_components/` directory\n2. Restart Home Assistant\n3. Go to **Settings → Devices \u0026 Services → Add Integration → Nashville Electric Service**\n\n## Configuration\n\nYou'll need your NES customer portal credentials — the same email and password you use at [myaccount.nespower.com](https://myaccount.nespower.com/).\n\n## How it works\n\nThe integration authenticates with NES through a multi-step flow:\n\n1. **Azure AD B2C** headless login (Authorization Code + PKCE)\n2. **NES JWT exchange** to create a server-side session\n3. **NES OAuth2** token grant with the SSO session\n\nUsage data is polled every **6 hours**. NES updates billing data monthly, so more frequent polling is unnecessary.\n\n## Troubleshooting\n\n| Problem | Solution |\n|---------|----------|\n| Invalid email or password | Verify your credentials work at [myaccount.nespower.com](https://myaccount.nespower.com/) |\n| No data after setup | Usage data may take a few minutes to appear after initial setup |\n| Integration won't load | Check Home Assistant logs: **Settings → System → Logs**, filter by `nes` |\n\n## Development\n\n```bash\n# Clone and set up\ngit clone https://github.com/maxbeizer/homeassistant-nes.git\ncd homeassistant-nes\npython3 -m venv .venv \u0026\u0026 source .venv/bin/activate\npip install homeassistant pytest-homeassistant-custom-component\n\n# Run tests\npytest tests/\n```\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxbeizer%2Fhomeassistant-nes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxbeizer%2Fhomeassistant-nes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxbeizer%2Fhomeassistant-nes/lists"}