{"id":23535265,"url":"https://github.com/tayjaybabee/homeassistantcontrol","last_synced_at":"2026-05-13T20:35:47.356Z","repository":{"id":205143428,"uuid":"711015174","full_name":"tayjaybabee/HomeAssistantControl","owner":"tayjaybabee","description":"Home Assistant Control is a Python package for interacting with Home Assistant, a popular platform for smart home automation. This package provides a simple and extensible interface for controlling Home Assistant entities via RESTful and WebSocket APIs","archived":false,"fork":false,"pushed_at":"2024-05-16T07:39:19.000Z","size":69,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T15:45:27.444Z","etag":null,"topics":["authentication","automation","homeassistant","python3","subscription"],"latest_commit_sha":null,"homepage":"","language":"Python","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/tayjaybabee.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}},"created_at":"2023-10-28T01:08:47.000Z","updated_at":"2023-10-28T01:10:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"e4af3561-82f6-40da-a677-5cff80fe7ad6","html_url":"https://github.com/tayjaybabee/HomeAssistantControl","commit_stats":null,"previous_names":["tayjaybabee/homeassistantcontrol"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tayjaybabee/HomeAssistantControl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tayjaybabee%2FHomeAssistantControl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tayjaybabee%2FHomeAssistantControl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tayjaybabee%2FHomeAssistantControl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tayjaybabee%2FHomeAssistantControl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tayjaybabee","download_url":"https://codeload.github.com/tayjaybabee/HomeAssistantControl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tayjaybabee%2FHomeAssistantControl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32999517,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"ssl_error","status_checked_at":"2026-05-13T13:14:51.610Z","response_time":115,"last_error":"SSL_read: 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":["authentication","automation","homeassistant","python3","subscription"],"created_at":"2024-12-26T01:16:40.361Z","updated_at":"2026-05-13T20:35:47.338Z","avatar_url":"https://github.com/tayjaybabee.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Home Assistant Control\n\n## Overview\n\nHome Assistant Control is a Python package for interacting with [Home Assistant](https://www.home-assistant.io/), a\npopular platform for smart home automation. This package provides a simple and extensible interface for controlling Home\nAssistant entities via RESTful and WebSocket APIs.\n\n----\n\n## Features\n\n- **Entity Control**: Manipulate entities like lights, switches, etc., programmatically.\n- **RESTful API**: Interact with Home Assistant via its RESTful API for synchronous tasks.\n- **WebSocket Support**: Real-time updates and asynchronous operations via Home Assistant's WebSocket API.\n- **Token Authentication**: Securely connect to your Home Assistant instance using authentication tokens.\n\n----\n\n## Requirements\n\n- Python 3.x\n- `requests` library for RESTful API\n- `websockets` library for WebSocket API\n\n----\n\n## Installation\n\n### Using pip\n\n```bash\npip install home_assistant_control\n```\n\n### From Source\n\n```bash\ngit clone https://github.com/your-repo/home_assistant_control.git\ncd home_assistant_control\npython setup.py install\n```\n\n----\n\n## Quick Start\n\n### RESTful API\n\n```python\nfrom home_assistant_control.client import Client\nfrom home_assistant_control.controllers.lights import LightController\n\n# Initialize client\nclient = Client('http://your-home-assistant:8123', 'your-long-lived-access-token')\n\n# Refresh entity data\nclient.refresh()\n\n# Interact with entities\nlight_controller = LightController(client.entities.get_all_in_category()[0])\nlight_controller.change_light_color('light.living_room', 'red')\n```\n\n### WebSocket API\n\n```python\nimport asyncio\nfrom home_assistant_control.client import Client\nfrom home_assistant_control.client.websocket import WebSocketClient\n\n# Initialize RESTful client\nclient = Client('http://your-home-assistant:8123', 'your-long-lived-access-token')\n\n# Initialize WebSocket client\nws_client = WebSocketClient(client)\n\n\nasync def main():\n    await ws_client.connect()\n    await ws_client.authenticate()\n    # ... other WebSocket operations ...\n\n\n# Run the event loop\nasyncio.get_event_loop().run_until_complete(main())\n```\n\n----\n\n## Documentation\n\nFor more detailed documentation, check the docs/ folder. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftayjaybabee%2Fhomeassistantcontrol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftayjaybabee%2Fhomeassistantcontrol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftayjaybabee%2Fhomeassistantcontrol/lists"}