{"id":41223503,"url":"https://github.com/solectrus/shelly-collector","last_synced_at":"2026-01-23T00:26:05.584Z","repository":{"id":223325148,"uuid":"759902575","full_name":"solectrus/shelly-collector","owner":"solectrus","description":"Collects power consumption from Shelly and transmits it to InfluxDB. Ready for use on a Raspberry Pi.","archived":false,"fork":false,"pushed_at":"2026-01-13T04:14:54.000Z","size":648,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2026-01-13T07:48:14.832Z","etag":null,"topics":["house-automation","influxdb","rasperry-pi","shelly"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/solectrus.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":"2024-02-19T14:57:08.000Z","updated_at":"2026-01-13T04:14:57.000Z","dependencies_parsed_at":"2025-02-05T01:26:18.441Z","dependency_job_id":"a54eb8f0-0c83-4b43-87b3-bd9875d57df9","html_url":"https://github.com/solectrus/shelly-collector","commit_stats":null,"previous_names":["solectrus/shelly-collector"],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/solectrus/shelly-collector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solectrus%2Fshelly-collector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solectrus%2Fshelly-collector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solectrus%2Fshelly-collector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solectrus%2Fshelly-collector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solectrus","download_url":"https://codeload.github.com/solectrus/shelly-collector/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solectrus%2Fshelly-collector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28676014,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T20:48:19.482Z","status":"ssl_error","status_checked_at":"2026-01-22T20:48:14.968Z","response_time":144,"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":["house-automation","influxdb","rasperry-pi","shelly"],"created_at":"2026-01-23T00:26:04.919Z","updated_at":"2026-01-23T00:26:05.559Z","avatar_url":"https://github.com/solectrus.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Continuous integration](https://github.com/solectrus/shelly-collector/actions/workflows/push.yml/badge.svg)](https://github.com/solectrus/shelly-collector/actions/workflows/push.yml)\n[![Maintainability](https://qlty.sh/gh/solectrus/projects/shelly-collector/maintainability.svg)](https://qlty.sh/gh/solectrus/projects/shelly-collector)\n[![wakatime](https://wakatime.com/badge/user/697af4f5-617a-446d-ba58-407e7f3e0243/project/018dc198-44e2-4b00-bb01-a7b07d445b01.svg)](https://wakatime.com/badge/user/697af4f5-617a-446d-ba58-407e7f3e0243/project/018dc198-44e2-4b00-bb01-a7b07d445b01)\n[![Code Coverage](https://qlty.sh/gh/solectrus/projects/shelly-collector/coverage.svg)](https://qlty.sh/gh/solectrus/projects/shelly-collector)\n\n# Shelly Collector\n\nCollects electricity consumption data from Shelly energy meters and transfers it to InfluxDB 2\n\nTested with these Shelly devices:\n\n- Shelly Pro 3EM\n- Shelly Pro EM-50\n- Shelly Pro 1PM\n- Shelly Pro 4PM\n- Shelly 3EM\n- Shelly Plus Plug S\n- Shelly PM Mini Gen3\n- Shelly Plug S (Gen3)\n- Shelly Plug 2\n- Shelly EM\n\nThere are two ways to get the data from the Shelly devices: Via local access (HTTP) or via the Shelly Cloud API.\n\n## Requirements\n\nLinux machine with Docker installed, InfluxDB 2 database\n\n## Getting started\n\n1. Prepare a Linux box (Raspberry Pi, Synology NAS, ...) with Docker installed\n\n2. Make sure your InfluxDB2 database is ready (not subject of this README)\n\n3. Prepare an `.env` file (see `.env.example`)\n\n4. Run the Docker container on your Linux box:\n\n   ```bash\n   docker compose up\n   ```\n\nThe Docker image support multiple platforms: `linux/amd64`, `linux/arm64`, `linux/arm/v7`\n\n## Output\n\nThe Shelly Collector sends the following data to InfluxDB (stored as fields in the given measurement):\n\n- `power_a` (in W, if available)\n- `power_b` (in W, if available)\n- `power_c` (in W, if available)\n- `power` (in W, stores `power_a + power_b + power_c` if not available)\n- `response_duration` (in milliseconds)\n- `temp` (in °C, if available)\n\nBy default, all numeric values are stored as floating-point numbers in InfluxDB. If you need integer values for power measurements instead (e.g., when migrating from Home Assistant), you can set the power data type to integer using the `INFLUX_POWER_DATA_TYPE` environment variable:\n\n```bash\nINFLUX_POWER_DATA_TYPE=Integer\n```\n\nThis will affect all power-related fields (`power`, `power_a`, `power_b`, `power_c`) while keeping other fields like `temp` and `response_duration` as floats. This is useful when you previously stored power values as integers and want to avoid InfluxDB type conflicts.\n\n## License\n\nCopyright (c) 2024-2026 Georg Ledermann, released under the MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolectrus%2Fshelly-collector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolectrus%2Fshelly-collector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolectrus%2Fshelly-collector/lists"}