{"id":17799710,"url":"https://github.com/rspier/go-ecobee","last_synced_at":"2025-03-17T06:31:38.464Z","repository":{"id":57494070,"uuid":"91205801","full_name":"rspier/go-ecobee","owner":"rspier","description":"A go library for the Ecobee Thermostat API","archived":false,"fork":false,"pushed_at":"2024-06-30T05:31:32.000Z","size":54,"stargazers_count":18,"open_issues_count":3,"forks_count":15,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-27T19:03:36.051Z","etag":null,"topics":["ecobee","home-automation","thermostat"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rspier.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-13T22:14:59.000Z","updated_at":"2024-11-09T13:15:06.000Z","dependencies_parsed_at":"2022-09-02T01:40:09.513Z","dependency_job_id":"3898f9c2-5455-41b8-88a3-341900c8a1ac","html_url":"https://github.com/rspier/go-ecobee","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rspier%2Fgo-ecobee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rspier%2Fgo-ecobee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rspier%2Fgo-ecobee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rspier%2Fgo-ecobee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rspier","download_url":"https://codeload.github.com/rspier/go-ecobee/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243847062,"owners_count":20357317,"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":["ecobee","home-automation","thermostat"],"created_at":"2024-10-27T12:09:55.117Z","updated_at":"2025-03-17T06:31:38.116Z","avatar_url":"https://github.com/rspier.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-ecobee\n\nA go library and simple tools for accessing the\n[Ecobee Thermostat API](https://www.ecobee.com/home/developer/api/documentation/v1/index.shtml).\n\nThe go-ecobee CLI is built with the underlying go-ecobee API, and\nserves as it's primary example.\n\n## Setup\n\n### Install\n\n```\ngo install -u github.com/rspier/go-ecobee`\n```\n\n### Build\n\n```\ngo build main.go\n\n# fully static binary\nCGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o main\n```\n\n### Application ID\n\n[Enable your developer dashboard](https://www.ecobee.com/home/developer/loginDeveloper.jsp), if you have not already.\n\nCreate an Ecobee API Application ID (API key) by going to the\n[consumer portal](https://www.ecobee.com/consumerportal/index.html), clicking the \"Developer\" option in the menu, and clicking the \"Create New\" button.\n\nYou probably want to use the `ecobee PIN` authorization method for non-web based\ntools.\n\n### Thermostat ID\n\nYou'll need to know the serial number (Thermostat ID) of your\nthermostat.  You can find it on the About page of the\n[Ecobee portal](https://www.ecobee.com/consumerportal/index.html).\n\n### Config\n\nYou can store your default thermostat id and appid in\n`~/.go-ecobee.yaml` or you can use the `--thermostat` and `--appid`\nflags to the CLI.\n\n```yaml\nthermostat: \u003cThermostat ID\u003e\nappid: \u003cApp ID\u003e\n```\n\n## CLI Usage\n\n### Status\n\n```shell\n$ go-ecobee --command=status\nCurrent Settings (Home): 68.0 - 75.0.  Fan: auto\nHolding at 68.0 - 75.0 (Fan: auto) until 2017-04-22 00:00:00\nTemperature: 75.0\n  Bedroom\\*: 74.7\n  My ecobee3\\*: 76.2\n```\n\n### Hold Temperature\n\n```shell\n$ go-ecobee hold --heat 70 --cool 76 --duration 10m\nSuccessfully Held Temperature\n```\n\n### Message\n\n```shell\n$ go-ecobee message --message=\"Hi there!\"\nSuccessfully sent message: \"Hi there!\"\n```\n\n### Fan\n\n```shell\n$ go-ecobee fan --duration=5m\nRunning fan for 5 minutes\"\n```\n\n### List\n\n```shell\n$ go-ecobee list\n${THERMID}: My ecobee3\n```\n\n## Development\n\n## Lint\n\nUse [golangci-lint](https://golangci-lint.run/):\n\n```shell\ndocker run --rm -v $(pwd):/app -w /app \\\n  golangci/golangci-lint:v1.35.2 golangci-lint run \\\n  -E golint,goimports,misspell\n```\n\n## Ideas for future development\n\n### Sensor Failure Test\n\nUse includeSensors on the thermostat endpoint to analyze sensors where\nthe presence sensor may have failed -- i.e. present all the time.\n\n## Disclaimer\n\nThis is not an official Google project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frspier%2Fgo-ecobee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frspier%2Fgo-ecobee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frspier%2Fgo-ecobee/lists"}