{"id":21612200,"url":"https://github.com/vlcty/teslawallbox","last_synced_at":"2025-03-18T16:26:36.725Z","repository":{"id":74267705,"uuid":"423188080","full_name":"vlcty/TeslaWallbox","owner":"vlcty","description":"Simple Golang interface for Gen 3 Tesla wallboxes","archived":false,"fork":false,"pushed_at":"2022-12-09T17:57:08.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T13:05:51.741Z","etag":null,"topics":["emobility","tesla","wallbox"],"latest_commit_sha":null,"homepage":"","language":"Go","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/vlcty.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}},"created_at":"2021-10-31T15:38:17.000Z","updated_at":"2021-11-06T22:27:00.000Z","dependencies_parsed_at":"2023-02-28T07:46:07.988Z","dependency_job_id":null,"html_url":"https://github.com/vlcty/TeslaWallbox","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.0714285714285714,"last_synced_commit":"de594507772664323e2d947a2750325e698585f2"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vlcty%2FTeslaWallbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vlcty%2FTeslaWallbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vlcty%2FTeslaWallbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vlcty%2FTeslaWallbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vlcty","download_url":"https://codeload.github.com/vlcty/TeslaWallbox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244258456,"owners_count":20424392,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["emobility","tesla","wallbox"],"created_at":"2024-11-24T21:17:06.687Z","updated_at":"2025-03-18T16:26:36.701Z","avatar_url":"https://github.com/vlcty.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TeslaWallbox\n\nSimple Golang interface for Gen 3 Tesla wallboxes.\n\nThe following things are provided:\n\n- Fetch version information from the wallbox like serial number and firmware version\n- Fetch lifetime stats like dispensed energy, total uptime, how often the contactors were closed\n- Fetch vitals like voltage, current, temperatures etc\n\nPlanned features:\n\n- Translation of EVSE states to meaningfull values\n- Translation of config states to meaningfull values\n\n## Install\n\nJust like any other go module:\n\n```\ngo get -u github.com/vlcty/TeslaWallbox\n```\n\n## Sample code\n\n``` go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/vlcty/TeslaWallbox\"\n)\n\nfunc main() {\n\twallboxIP := \"10.10.0.39\"\n\n\tversion, versionError := teslaWallbox.FetchVersion(wallboxIP)\n\tstats, statsError := teslaWallbox.FetchLifetimeStats(wallboxIP)\n\tvitals, vitalsError := teslaWallbox.FetchVitals(wallboxIP)\n\n\tif versionError != nil {\n\t\tpanic(versionError)\n\t} else {\n\t\tfmt.Printf(\"Version:\\n%+v\\n\", version)\n\t}\n\n\tif statsError != nil {\n\t\tpanic(statsError)\n\t} else {\n\t\tfmt.Printf(\"Stats:\\n%+v\\n\", stats)\n\t}\n\n\tif vitalsError != nil {\n\t\tpanic(vitalsError)\n\t} else {\n\t\tfmt.Printf(\"Vitals:\\n%+v\\n\", vitals)\n\t}\n}\n```\n\n## Tested with\n\nFirmware versions:\n\n- 21.29.1\n- 21.36.5\n- 22.7.0\n\nOnly tested with the 3 phase electricity grid in the EU. Other grid systems may not work. Tesla can revoke access to the internal API at any given time.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvlcty%2Fteslawallbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvlcty%2Fteslawallbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvlcty%2Fteslawallbox/lists"}