Skip to content

Add Qube Heat Pump integration - #160409

Merged
joostlek merged 78 commits into
home-assistant:devfrom
MattieGit:add-qube-heatpump
Mar 24, 2026
Merged

joostlek merged 78 commits into
home-assistant:devfrom
MattieGit:add-qube-heatpump

Conversation

@MattieGit

@MattieGit MattieGit commented Jan 7, 2026 •

Copy link
Copy Markdown
Contributor

Proposed change

This PR adds a new integration for Qube Heat Pumps.
It supports monitoring Qube heat pumps via Modbus TCP.

Features:

  • Configuration via UI (config flow) with reconfigure support.
  • Sensors for temperatures, power, energy, COP, compressor speed, flow rate, and setpoints.
  • Status sensor (enum) for heat pump operating state.
  • Quality Scale: Bronze.

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • New feature (which adds functionality to an existing integration)
  • Deprecation (breaking change to happen in the future)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Code quality improvements to existing code or addition of tests

Additional information

Checklist

@home-assistant home-assistant Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @MattieGit

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

@home-assistant
home-assistant Bot marked this pull request as draft January 7, 2026 10:24
@home-assistant

home-assistant Bot commented Jan 7, 2026

Copy link
Copy Markdown
Contributor

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

@home-assistant home-assistant Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@home-assistant home-assistant Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @matt-WL

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

@MattieGit
MattieGit marked this pull request as ready for review January 7, 2026 17:27
@home-assistant
home-assistant Bot dismissed stale reviews from themself January 7, 2026 17:27

Stale

Removed "hass" from codespell ignore list.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 20 out of 23 changed files in this pull request and generated 7 comments.

Comment thread tests/components/qube_heatpump/test_coordinator.py Outdated
Comment thread tests/components/qube_heatpump/test_coordinator.py Outdated
Comment thread homeassistant/components/qube_heatpump/coordinator.py Outdated
Comment thread homeassistant/components/hr_energy_qube/coordinator.py
Comment thread homeassistant/components/hr_energy_qube/__init__.py
Comment thread homeassistant/components/hr_energy_qube/config_flow.py
Comment thread tests/components/qube_heatpump/test_sensor.py Outdated
MattieGit and others added 2 commits March 18, 2026 22:02
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…pellrc

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 20 out of 22 changed files in this pull request and generated 4 comments.

Comment thread homeassistant/components/hr_energy_qube/quality_scale.yaml
Comment thread tests/components/qube_heatpump/test_init.py
Comment thread tests/components/qube_heatpump/test_coordinator.py Outdated
Comment thread homeassistant/components/qube_heatpump/config_flow.py Outdated
MattieGit and others added 3 commits March 18, 2026 22:22
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 20 out of 22 changed files in this pull request and generated 4 comments.

Comment thread homeassistant/components/hr_energy_qube/config_flow.py
Comment thread homeassistant/components/hr_energy_qube/config_flow.py
Comment thread homeassistant/components/hr_energy_qube/config_flow.py
Comment thread tests/components/qube_heatpump/test_coordinator.py Outdated
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 20 out of 22 changed files in this pull request and generated 2 comments.

Comment thread homeassistant/components/hr_energy_qube/config_flow.py
Comment thread tests/components/qube_heatpump/test_coordinator.py Outdated
Comment thread homeassistant/components/qube_heatpump/config_flow.py Outdated

from homeassistant.const import Platform

DOMAIN = "qube_heatpump"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh this is not about mDNS, more about the integration. Generally we try to pick a good domain as we can't change it afterwards. Let me also ask for other opinions

Comment thread homeassistant/components/qube_heatpump/coordinator.py Outdated
Comment thread tests/components/qube_heatpump/conftest.py Outdated
Comment thread tests/components/qube_heatpump/conftest.py Outdated
Comment thread tests/components/qube_heatpump/test_config_flow.py Outdated
Comment thread tests/components/qube_heatpump/test_config_flow.py Outdated
Comment thread tests/components/qube_heatpump/test_config_flow.py Outdated
Comment thread tests/components/qube_heatpump/test_config_flow.py Outdated
Comment thread tests/components/qube_heatpump/test_config_flow.py Outdated
Comment thread tests/components/qube_heatpump/test_coordinator.py Outdated
Comment thread tests/components/qube_heatpump/test_init.py Outdated
Comment thread tests/components/qube_heatpump/test_sensor.py Outdated
- Remove MAC address lookup, use _async_abort_entries_match instead
- Remove monotonic clamping (moved to library v1.6.3)
- Use entry_id for device identifiers and entity unique_ids
- Combine client fixtures (mealie pattern)
- Parametrize config flow error tests with recovery
- Replace individual sensor tests with snapshot_platform
- Move coordinator error tests to sensor tests
- Combine setup/unload into single init test
- Bump library requirement to 1.6.3

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 20 out of 22 changed files in this pull request and generated 3 comments.

Comment thread homeassistant/components/hr_energy_qube/config_flow.py
Comment thread homeassistant/components/qube_heatpump/config_flow.py Outdated
Comment thread tests/components/qube_heatpump/test_sensor.py Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 20 out of 22 changed files in this pull request and generated 1 comment.

Comment thread homeassistant/components/qube_heatpump/strings.json Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 20 out of 22 changed files in this pull request and generated 3 comments.

Comment thread homeassistant/components/hr_energy_qube/config_flow.py
Comment thread homeassistant/components/hr_energy_qube/config_flow.py
Comment thread homeassistant/components/hr_energy_qube/__init__.py
@joostlek

Copy link
Copy Markdown
Member

Do you have discord and can you send me a message?

Rename integration domain and folder to "hr_energy_qube" as discussed with @joostlek. Config entry title has also been updated to sentence case ("Qube heat pump") and step title has been removed based on hassfest validation feedback.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 20 out of 22 changed files in this pull request and generated 6 comments.

Comment thread homeassistant/components/hr_energy_qube/config_flow.py
Comment thread homeassistant/components/hr_energy_qube/quality_scale.yaml
Comment thread homeassistant/components/hr_energy_qube/entity.py
Comment thread homeassistant/components/hr_energy_qube/coordinator.py Outdated
Comment thread homeassistant/components/hr_energy_qube/const.py Outdated
Comment thread homeassistant/components/hr_energy_qube/config_flow.py
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants