Add new Aqvify integration#172936
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
This PR adds a new Aqvify integration to Home Assistant, enabling cloud-polling-based monitoring of Aqvify water measurement devices via the pyaqvify library.
Changes:
- Adds the full Aqvify integration scaffold: config flow, coordinator, sensor platform, base entity, constants, manifest, strings, icons, and quality scale configuration.
- Registers the integration in generated files (
integrations.json,config_flows.py,CODEOWNERS,requirements_all.txt). - Adds config flow tests with error-handling parametrization and a test fixture in
conftest.py.
Reviewed changes
Copilot reviewed 15 out of 17 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| homeassistant/components/aqvify/init.py | Integration setup and teardown entry points |
| homeassistant/components/aqvify/config_flow.py | Config flow with API key validation |
| homeassistant/components/aqvify/coordinator.py | Data update coordinator for fetching device data |
| homeassistant/components/aqvify/entity.py | Base entity class with device info |
| homeassistant/components/aqvify/sensor.py | Sensor platform for meter value and water level |
| homeassistant/components/aqvify/const.py | Domain constant |
| homeassistant/components/aqvify/manifest.json | Integration manifest |
| homeassistant/components/aqvify/strings.json | UI strings and translations |
| homeassistant/components/aqvify/icons.json | Entity icon definitions |
| homeassistant/components/aqvify/quality_scale.yaml | Quality scale checklist |
| homeassistant/generated/integrations.json | Register integration metadata |
| homeassistant/generated/config_flows.py | Register config flow |
| requirements_all.txt | Add pyaqvify dependency |
| CODEOWNERS | Assign code ownership |
| tests/components/aqvify/init.py | Test package init |
| tests/components/aqvify/conftest.py | Test fixtures |
| tests/components/aqvify/test_config_flow.py | Config flow tests |
This was referenced Jun 4, 2026
joostlek
requested changes
Jun 4, 2026
Comment on lines
+4
to
+6
| 'aliases': list([ | ||
| None, | ||
| ]), |
|
|
||
| _LOGGER = logging.getLogger(__name__) | ||
|
|
||
| UPDATE_INTERVAL = timedelta(seconds=60) |
Comment on lines
+21
to
+29
| _api = AqvifyAPI(entry.data[CONF_API_KEY], websession=async_get_clientsession(hass)) | ||
| try: | ||
| await _api.async_get_account_id() | ||
| except AqvifyAuthException as err: | ||
| raise ConfigEntryAuthFailed(f"Invalid Aqvify API key: {err}") from err | ||
| except Exception as err: | ||
| raise ConfigEntryNotReady(f"Failed to connect to Aqvify API: {err}") from err | ||
|
|
||
| coordinator = AqvifyCoordinator(hass, entry) |
joostlek
requested changes
Jun 8, 2026
Contributor
|
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
Comment on lines
+61
to
+75
| device_data = {} | ||
| for device in devices.devices.values(): | ||
| try: | ||
| device_key = str(device.device_key) | ||
| device_data[ | ||
| device_key | ||
| ] = await self.api_client.async_get_device_latest_data(device_key) | ||
| except ClientResponseError as err: | ||
| raise UpdateFailed( | ||
| f"Error communicating with Aqvify API: {err}" | ||
| ) from err | ||
| except TimeoutError as err: | ||
| raise UpdateFailed( | ||
| f"Timeout communicating with Aqvify API: {err}" | ||
| ) from err |
| # Platinum | ||
| async-dependency: todo | ||
| inject-websession: todo | ||
| strict-typing: todo |
Comment on lines
+4
to
+6
| 'aliases': list([ | ||
| None, | ||
| ]), |
joostlek
approved these changes
Jun 8, 2026
Check requirements
📦 pyaqvify: 0.0.8
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed change
Add new integration for Aqvify water well and tank level meters. These devices communicates with 4G directly to the cloud and have no contact with LAN.
This integration depends on https://github.com/astrandb/pyaqvify
Type of change
Additional information
Checklist
ruff format homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all.To help with the load of incoming pull requests: