{"id":20607514,"url":"https://github.com/loopj/aiovantage","last_synced_at":"2026-01-12T10:40:10.291Z","repository":{"id":174866646,"uuid":"616331164","full_name":"loopj/aiovantage","owner":"loopj","description":"Python library for interacting with and controlling Vantage InFusion home automation controllers.","archived":false,"fork":false,"pushed_at":"2025-10-27T19:00:52.000Z","size":1778,"stargazers_count":11,"open_issues_count":9,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-12-22T01:47:53.788Z","etag":null,"topics":["asyncio","infusion","python","vantage"],"latest_commit_sha":null,"homepage":"http://loopj.com/aiovantage/","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/loopj.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":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-03-20T07:12:33.000Z","updated_at":"2025-10-22T20:46:17.000Z","dependencies_parsed_at":"2023-12-25T20:14:08.390Z","dependency_job_id":"98f7ad66-4123-45ac-b8d8-2be4aa134410","html_url":"https://github.com/loopj/aiovantage","commit_stats":null,"previous_names":["loopj/aiovantage"],"tags_count":48,"template":false,"template_full_name":null,"purl":"pkg:github/loopj/aiovantage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loopj%2Faiovantage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loopj%2Faiovantage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loopj%2Faiovantage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loopj%2Faiovantage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loopj","download_url":"https://codeload.github.com/loopj/aiovantage/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loopj%2Faiovantage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338786,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"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":["asyncio","infusion","python","vantage"],"created_at":"2024-11-16T10:07:40.710Z","updated_at":"2026-01-12T10:40:10.286Z","avatar_url":"https://github.com/loopj.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aiovantage\n\n[![Documentation](https://img.shields.io/badge/Documentation-8CA1AF?style=for-the-badge\u0026logo=readthedocs\u0026logoColor=fff)](https://loopj.com/aiovantage)\n[![PyPI - Version](https://img.shields.io/pypi/v/aiovantage?style=for-the-badge)](https://pypi.org/project/aiovantage/)\n[![Discord](https://img.shields.io/discord/1120862286576353370?style=for-the-badge)](https://discord.gg/psU7PxDyNQ)\n\nPython library for interacting with and controlling Vantage InFusion home automation controllers.\n\nThis open-source, non-commercial library is not affiliated, associated, authorized, endorsed by, or in any way officially connected with Vantage, and is provided for interoperability purposes only.\n\n## Example\n\n```python\nfrom aiovantage import Vantage\n\nasync with Vantage(\"192.168.1.2\", \"username\", \"password\") as vantage:\n    async for load in vantage.loads:\n        print(f\"{load.name} is at {load.level}%\")\n```\n\nSee the [examples](https://github.com/loopj/aiovantage/tree/main/examples) folder for more examples.\n\n## Features\n\n- Fetch object *configuration* from your Vantage system.\n- Fetch object *state* and subscribe to state changes (e.g. load levels, sensor readings).\n- Control devices (turn on lights, set thermostats, etc).\n- Uses `asyncio` for non-blocking I/O.\n- Uses SSL connections by default, with automatic reconnection.\n- Supports both lazy and eager object fetching.\n\n## Installation\n\nAdd `aiovantage` as a dependency to your project, or install it directly:\n\n```shell\npip install aiovantage\n```\n\n## Supported objects\n\nThe following interfaces/controllers are currently supported.\n\n| Type         | Description         | Controller               |\n| ------------ | ------------------- | ------------------------ |\n| AnemoSensor  | Wind speed sensors  | `vantage.anemo_sensors`  |\n| Area         | Rooms, etc          | `vantage.areas`          |\n| BackBox      | Backboxes           | `vantage.back_boxes`     |\n| Blind        | Shades, blinds      | `vantage.blinds`         |\n| BlindGroups  | Groups of blinds    | `vantage.blind_groups`   |\n| Buttons      | Keypad buttons      | `vantage.buttons`        |\n| DryContacts  | Motion sensors, etc | `vantage.dry_contacts`   |\n| GMem         | Vantage variables   | `vantage.gmem`           |\n| LightSensor  | Light sensors       | `vantage.light_sensors`  |\n| Load         | Lights, relays, etc | `vantage.loads`          |\n| LoadGroup    | Groups of loads     | `vantage.load_groups`    |\n| Master       | Vantage controllers | `vantage.masters`        |\n| Module       | Dimmer modules      | `vantage.modules`        |\n| OmniSensor   | Power, current, etc | `vantage.omni_sensors`   |\n| PortDevice   | Port devices (hubs) | `vantage.port_devices`   |\n| PowerProfile | Load power profiles | `vantage.power_profiles` |\n| RGBLoad      | RGB lights          | `vantage.rgb_loads`      |\n| Stations     | Keypads, etc        | `vantage.stations`       |\n| Tasks        | Vantage tasks       | `vantage.tasks`          |\n| Temperature  | Temperature sensors | `vantage.temperatures`   |\n| Thermostat   | Thermostats         | `vantage.thermostats`    |\n\nIf you have an object that you expect to show up in one of these controllers but is missing, please [create an issue](https://github.com/loopj/aiovantage/issues) or [submit a pull request](https://github.com/loopj/aiovantage/pulls).\n\n## Usage\n\n### Creating a client\n\nBegin by importing the `Vantage` class:\n\n```python\nfrom aiovantage import Vantage\n```\n\nThe most convenient way to create a client is by using the async context manager:\n\n```python\nasync with Vantage(\"hostname\", \"username\", \"password\") as vantage:\n    # ...use the vantage client\n```\n\nAlternatively, you can manage the lifecycle of the client yourself:\n\n```python\nfrom aiovantage import Vantage\n\nvantage = Vantage(\"hostname\", \"username\", \"password\")\n# ...use the vantage client\nvantage.close()\n```\n\n### Querying objects\n\nThe `Vantage` class exposes a number of *controllers*, which can be used to query objects. Controllers can either be populated lazily (by using `async for`), or eagerly (by using `controller.initialize()`).\n\nFor example, to get a list of all loads:\n\n```python\nasync with Vantage(\"hostname\", \"username\", \"password\") as vantage:\n    async for load in vantage.loads:\n        print(f\"{load.name} is at {load.level}%\")\n```\n\nAlternatively, you can use `controller.initialize()` to eagerly fetch all objects:\n\n```python\nasync with Vantage(\"hostname\", \"username\", \"password\") as vantage:\n    await vantage.loads.initialize()\n    for load in vantage.loads:\n        print(f\"{load.name} is at {load.level}%\")\n```\n\nIf you aren't interested in the state of the objects, you can call `controller.initialize(fetch_state=False)` to slightly speed up the initialization:\n\n```python\nasync with Vantage(\"hostname\", \"username\", \"password\") as vantage:\n    await vantage.loads.initialize(fetch_state=False)\n    for load in vantage.loads:\n        print(f\"{load.name}\")\n```\n\nAll controllers implement a django-like query interface, which can be used to filter objects. You can either query by matching attributes:\n\n```python\nasync with Vantage(\"hostname\", \"username\", \"password\") as vantage:\n    async for load in vantage.loads.filter(name=\"Kitchen\"):\n        print(f\"{load.name} is at {load.level}%\")\n```\n\nOr by using a filter predicate:\n\n```python\nasync with Vantage(\"hostname\", \"username\", \"password\") as vantage:\n    async for load in vantage.loads.filter(lambda load: load.level \u003e 50):\n        print(f\"{load.name} is at {load.level}%\")\n```\n\n### Fetching a single object\n\nYou can fetch a single object by id, by calling `controller.aget()` or `controller.get()`:\n\n```python\nasync with Vantage(\"hostname\", \"username\", \"password\") as vantage:\n    load = await vantage.loads.aget(118)\n    print(f\"{load.name} is at {load.level}%\")\n```\n\nThese functions also implement the same query interface as `controller.filter()` for querying by\nattributes or filter predicate:\n\n```python\nasync with Vantage(\"hostname\", \"username\", \"password\") as vantage:\n    load = await vantage.loads.aget(name=\"Kitchen\")\n    print(f\"{load.name} is at {load.level}%\")\n```\n\n### Controlling objects\n\nObjects also expose various methods for controlling state. For example, to turn on a load:\n\n```python\nasync with Vantage(\"hostname\", \"username\", \"password\") as vantage:\n    load = vantage.loads.aget(name=\"Study Lights\")\n    await load.turn_on()\n```\n\n### Subscribing to state changes\n\nYou can subscribe to state changes by using the `controller.subscribe()` method:\n\n```python\ndef on_load_state_change(event, load, data):\n    print(f\"{load.name} is at {load.level}%\")\n\nasync with Vantage(\"hostname\", \"username\", \"password\") as vantage:\n    vantage.loads.subscribe(on_load_state_change)\n    await vantage.loads.initialize()\n```\n\nNote that a subscription will only receive state changes for objects that have populated into the controller.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floopj%2Faiovantage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floopj%2Faiovantage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floopj%2Faiovantage/lists"}