{"id":49782279,"url":"https://github.com/markmac99/enphase_integration","last_synced_at":"2026-05-11T22:04:26.474Z","repository":{"id":355597950,"uuid":"1228642802","full_name":"markmac99/enphase_integration","owner":"markmac99","description":"A simple tool to collect data from an Enphase Envoy solar controller and publish it to MQ","archived":false,"fork":false,"pushed_at":"2026-05-04T12:05:35.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-04T13:05:59.861Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/markmac99.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-05-04T08:16:41.000Z","updated_at":"2026-05-04T12:05:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/markmac99/enphase_integration","commit_stats":null,"previous_names":["markmac99/enphase_integration"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/markmac99/enphase_integration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmac99%2Fenphase_integration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmac99%2Fenphase_integration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmac99%2Fenphase_integration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmac99%2Fenphase_integration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markmac99","download_url":"https://codeload.github.com/markmac99/enphase_integration/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmac99%2Fenphase_integration/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32914542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-11T17:09:15.040Z","status":"ssl_error","status_checked_at":"2026-05-11T17:08:45.420Z","response_time":120,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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-05-11T22:04:22.724Z","updated_at":"2026-05-11T22:04:26.467Z","avatar_url":"https://github.com/markmac99.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Enphase Integration\n\nThis is a very basic python script to connect to an Enphase Envoy Gateway to retrieve realtime data on the PV, Battery, Grid and overall load, measured in Watts. The data are then published to MQTT. \n\nThe script written for Linux-like OSes but it will also work under windows: you would just need to create a powershell or batch script that does the same as `enphase.sh`. \n\n## Installation\nFirst install miniconda3 and create a miniconda environment `openhabstuff`. If you want to give the environment a different name you will need to edit the shell script that runs the tool (see later).\n\nThen run\n``` bash\nconda activate openhabstuff\nmkdir ~/src\ncd ~/src\ngit clone https://github.com/markmac99/enphase_integration.git\n\ncd enphase_integration\npip install -r requirements.txt`\n```\n\n## Configuration and first run.\nTo configure your own installation, copy `config.json.sample` to `config.json`, then update the various fields as needed. The meanings should be obvious but at a minimum you must set the MQ host, username, password and port, the Gateway's IP address on your home network and your Enphase username and password (same ones as for the mobile phone or web apps). \n\nIf you used a different miniconda environment name, edit `enphase.sh` to activate the correct name.\n\nYou should now be able to run the tool from the commandline, and values should appear in your MQTT server under the topic specified in the config file. \n\n![alt text](image.png)\n\n\n## Scheduling the process\nI run the script every minute via cron:\n\n``` bash\n* * * * * $HOME/src/enphase/enphase.sh \u003e\u003e $HOME/logs/enphase.log 2\u003e\u00261\n```\n\n## Exploring the API\nThere are several requests that can be made to the local API. These are listed in `get_data.ps1`. Edit the file to set the IP address variable then you can run the script or just run each of the individual commands to see what they provide. \n\nSome sample output is provided in `sample_livedata.json`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkmac99%2Fenphase_integration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkmac99%2Fenphase_integration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkmac99%2Fenphase_integration/lists"}