{"id":14985333,"url":"https://github.com/brittonhayes/homeassistant-ts","last_synced_at":"2025-04-11T16:31:04.583Z","repository":{"id":64246469,"uuid":"574361239","full_name":"brittonhayes/homeassistant-ts","owner":"brittonhayes","description":"A typescript REST API client for the Home Assistant API. Interact with your Home Assistant instance from TS/JS services..","archived":false,"fork":false,"pushed_at":"2023-05-15T20:05:41.000Z","size":580,"stargazers_count":4,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-31T06:51:34.991Z","etag":null,"topics":["homeassistant","iot","library","sdk","typescript"],"latest_commit_sha":null,"homepage":"https://brittonhayes.github.io/homeassistant-ts","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/brittonhayes.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}},"created_at":"2022-12-05T06:13:15.000Z","updated_at":"2024-01-02T22:03:12.000Z","dependencies_parsed_at":"2024-09-24T15:44:17.139Z","dependency_job_id":null,"html_url":"https://github.com/brittonhayes/homeassistant-ts","commit_stats":{"total_commits":46,"total_committers":3,"mean_commits":"15.333333333333334","dds":"0.23913043478260865","last_synced_commit":"67037efac6435460221e44c28fa42b15e15435a7"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brittonhayes%2Fhomeassistant-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brittonhayes%2Fhomeassistant-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brittonhayes%2Fhomeassistant-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brittonhayes%2Fhomeassistant-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brittonhayes","download_url":"https://codeload.github.com/brittonhayes/homeassistant-ts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223472810,"owners_count":17150745,"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":["homeassistant","iot","library","sdk","typescript"],"created_at":"2024-09-24T14:10:43.370Z","updated_at":"2024-11-07T07:05:59.577Z","avatar_url":"https://github.com/brittonhayes.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🏠 Home Assistant - Typescript SDK\n\n[![CI](https://github.com/brittonhayes/homeassistant-ts/actions/workflows/ci.yml/badge.svg)](https://github.com/brittonhayes/homeassistant-ts/actions/workflows/ci.yml)\n\n📚 [SDK Docs](https://brittonhayes.github.io/homeassistant-ts)\n\n📚 [OpenAPI 3.x Spec](https://github.com/brittonhayes/homeassistant-ts/tree/main/openapi.yaml)\n\nThis is typescript REST API client for the [Home Assistant](https://www.home-assistant.io/) API. Allows you to interact with your Home Assistant instance from Typescript/JS projects.\n\n## ⚡ Usage\n\nHow to use the library\n\n\n### 📦 Installation\n\n```bash\nnpm install @brittonhayes/homeassistant-ts\n```\n\n### 🚀 Quickstart\n\nCreate a client\n\n```ts\nimport * as homeassistant from '@brittonhayes/homeassistant-ts';\n\nconst ha = new homeassistant.Client({\n    baseUrl: process.env.HASS_URL,\n    token: process.env.HASS_TOKEN,\n});\n```\n\nList all home assistant services\n\n```ts\nconst services = await ha.services.list();\nconsole.log(services);\n```\n\nList all logbook entries (as plaintext)\n\n```ts\nconst logs = await ha.logbook.list();\nconsole.log(logs);\n```\n\nRetrieve all calendar events from a calendar\n\n```ts\nconst calendar = await ha.calendars.retrieve('calendar.calendar_name');\nconsole.log(calendar);\n```\n\n### Development\n\n```shell\n# Install dependencies\nnpm install\n# Format the code\nnpm run format\n# Build the library\nnpm run build\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrittonhayes%2Fhomeassistant-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrittonhayes%2Fhomeassistant-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrittonhayes%2Fhomeassistant-ts/lists"}