{"id":50582959,"url":"https://github.com/dacarson/homebridge-pvs6","last_synced_at":"2026-06-05T04:00:54.052Z","repository":{"id":362397253,"uuid":"1258843976","full_name":"dacarson/homebridge-pvs6","owner":"dacarson","description":"Homebridge plugin for SunStrong PVS6 solar monitoring — exposes Solar Production and Grid Meter as Eve Energy accessories with fakegato history.","archived":false,"fork":false,"pushed_at":"2026-06-04T03:06:16.000Z","size":76,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-04T04:23:00.340Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/dacarson.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-06-04T01:16:11.000Z","updated_at":"2026-06-04T03:06:20.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dacarson/homebridge-pvs6","commit_stats":null,"previous_names":["dacarson/homebridge-pvs6"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/dacarson/homebridge-pvs6","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacarson%2Fhomebridge-pvs6","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacarson%2Fhomebridge-pvs6/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacarson%2Fhomebridge-pvs6/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacarson%2Fhomebridge-pvs6/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dacarson","download_url":"https://codeload.github.com/dacarson/homebridge-pvs6/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacarson%2Fhomebridge-pvs6/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33928631,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-05T02:00:06.157Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-06-05T04:00:44.209Z","updated_at":"2026-06-05T04:00:54.035Z","avatar_url":"https://github.com/dacarson.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# homebridge-pvs6\n\nA [Homebridge](https://homebridge.io) plugin for the [SunStrong PVS6](https://sunstrong.com) solar monitoring system. Exposes solar production and grid metering as **Eve Energy** accessories in Apple HomeKit, with real-time power, cumulative energy, voltage, and native Eve app history.\n\n---\n\n## Features\n\n- **Solar Production** accessory — always registered; real-time PV output (W), lifetime generation (kWh)\n- **Grid Import + Grid Export** accessory pair — optional (default enabled); each shows non-negative watts and its own Eve app history\n- Import and Export accessories are always registered together as a pair, making import/export history immediately readable as separate graphs\n- Up to 7 days of native power history in the Eve app via [fakegato-history](https://github.com/simont77/fakegato-history)\n- Polls the PVS6 **local** FCGI API — no SunStrong Connect, no cloud dependency\n- Automatically identifies production and consumption CT meters from the PVS6 device list\n- Designed to complement [homebridge-rainforest-eagle3](https://github.com/dacarson/homebridge-rainforest-eagle3) for a complete solar + grid picture in Apple Home\n\n---\n\n## Supported Hardware\n\n| Device | Status |\n|---|---|\n| SunStrong PVS6 (firmware build 61840+) | Supported |\n| PVS5 | Not supported |\n| PVS2 | Not supported |\n\n---\n\n## How It Works\n\nThe PVS6 exposes a local HTTPS varserver API that this plugin polls on a configurable interval. It reads two data streams:\n\n- **Livedata** — aggregate solar production and net grid power computed by the PVS6\n- **Meter data** — per-phase detail from the CT meters (voltage, cumulative energy)\n\nThe plugin automatically identifies the production meter (model suffix `p`, e.g. `PVS6M0400p`) and consumption meter (model suffix `c`, e.g. `PVS6M0400c`) from the device list.\n\nAll accessories render as **smart plugs** in Apple Home:\n\n- **Solar Production** — always registered; `On` when the panels are producing power\n- **Grid Import** — `On` when importing from the grid; zero watts when net-exporting\n- **Grid Export** — `On` when net-exporting solar to the grid; zero watts when importing\n\nGrid Import and Grid Export are always registered together — enabling `accessories.grid` creates both.\n\n---\n\n## Requirements\n\n- [Homebridge](https://homebridge.io) v1.6 or later\n- Node.js 18 or later\n- SunStrong PVS6 on the same local network as your Homebridge host\n- The PVS6's **full serial number** (printed on the unit label)\n\n---\n\n## Installation\n\nInstall via the Homebridge UI plugin search, or from the command line:\n\n```bash\nnpm install -g homebridge-pvs6\n```\n\n---\n\n## Configuration\n\nAdd a platform entry to your Homebridge `config.json`:\n\nMinimal config (solar only — grid disabled):\n\n```json\n{\n  \"platforms\": [\n    {\n      \"platform\": \"PVS6\",\n      \"name\": \"PVS6\",\n      \"host\": \"192.168.1.x\",\n      \"serialNumber\": \"ZT231385000549A1234\",\n      \"accessories\": { \"grid\": false }\n    }\n  ]\n}\n```\n\nStandard config (solar + grid import/export pair):\n\n```json\n{\n  \"platforms\": [\n    {\n      \"platform\": \"PVS6\",\n      \"name\": \"PVS6\",\n      \"host\": \"192.168.1.x\",\n      \"serialNumber\": \"ZT231385000549A1234\",\n      \"pollInterval\": 10,\n      \"solarName\": \"Solar Production\",\n      \"gridName\": \"Grid Meter - Import\",\n      \"gridExportName\": \"Grid Meter - Export\"\n    }\n  ]\n}\n```\n\n### Configuration Options\n\n| Field | Type | Required | Default | Description |\n|---|---|---|---|---|\n| `platform` | string | yes | — | Must be `PVS6` |\n| `host` | string | yes | — | IP address or hostname of the PVS6 on your local network |\n| `serialNumber` | string | yes | — | Full PVS6 serial number. The last 5 characters are used as the API password |\n| `pollInterval` | integer | no | `10` | Seconds between polls. Minimum enforced: `5` |\n| `accessories.grid` | boolean | no | `true` | Enable the Grid Import + Grid Export accessory pair. Set `false` to disable both |\n| `solarName` | string | no | `\"Solar Production\"` | HomeKit display name for the Solar Production accessory |\n| `gridName` | string | no | `\"Grid Meter - Import\"` | HomeKit display name for the Grid Import accessory |\n| `gridExportName` | string | no | `\"Grid Meter - Export\"` | HomeKit display name for the Grid Export accessory |\n\n### Finding Your Serial Number\n\nThe serial number is printed on the label on the PVS6 unit (format: `ZT...`). It is also visible in the SunStrong Connect app. The last 5 characters of the serial number are used as the local API login password — no separate password configuration is required.\n\n---\n\n## HomeKit Accessories\n\n### Solar Production\n\n| Characteristic | Source | Notes |\n|---|---|---|\n| On | `pv_p \u003e 0` | True when panels are actively generating |\n| OutletInUse | Always `true` | Required by Eve Energy |\n| Eve Watts | `pv_p × 1000` | Real-time solar output in Watts |\n| Eve kWh | `pv_en` | Lifetime generation in kWh |\n\n### Grid Import\n\n| Characteristic | Source | Notes |\n|---|---|---|\n| On | `net_p \u003e 0` | True when importing from grid |\n| OutletInUse | Always `true` | Required by Eve Energy |\n| Eve Watts | `max(0, net_p) × 1000` | Import watts; zero when net-exporting |\n| Eve kWh | `posLtea3phsumKwh` | Lifetime imported energy from consumption CT meter |\n\n### Grid Export *(optional — enabled with `accessories.grid: true`)*\n\n| Characteristic | Source | Notes |\n|---|---|---|\n| On | `net_p \u003c 0` | True when net-exporting solar to the grid |\n| OutletInUse | Always `true` | Required by Eve Energy |\n| Eve Watts | `max(0, −net_p) × 1000` | Export watts; zero when importing |\n| Eve kWh | `negLtea3phsumKwh` | Lifetime exported energy from consumption CT meter |\n\n---\n\n## Error Handling\n\nThe plugin is designed to be resilient to transient PVS6 failures:\n\n- If the PVS6 is unreachable at startup, authentication retries every 30 seconds\n- Overlapping poll cycles are skipped — only one request is in flight at a time\n- Poll cycles are skipped (not fatal) on timeout (\u003e10 s), JSON parse errors, or HTTP 5xx responses\n- HTTP 5xx triggers a short backoff to avoid overwhelming the PVS6's embedded HTTP server\n- HTTP 401 during polling triggers silent re-authentication with a 60-second backoff\n- Missing fields in a partial response retain their last known-good values\n- HomeKit characteristics remain visible and frozen at last-known values during outages\n\n---\n\n## Building from Source\n\n```bash\ngit clone https://github.com/dacarson/homebridge-pvs6.git\ncd homebridge-pvs6\nnpm install\nnpm run build\n```\n\nTo develop with live rebuilds:\n\n```bash\nnpm run watch\n```\n\n---\n\n## Related Plugins\n\n- [homebridge-rainforest-eagle3](https://github.com/dacarson/homebridge-rainforest-eagle3) — Rainforest EAGLE-200 grid meter, designed to sit alongside this plugin in Apple Home\n\n---\n\n## License\n\nApache-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdacarson%2Fhomebridge-pvs6","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdacarson%2Fhomebridge-pvs6","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdacarson%2Fhomebridge-pvs6/lists"}