Skip to content

Conversation

@LaStrada
Copy link
Contributor

@LaStrada LaStrada commented Oct 29, 2025

Breaking change

Proposed change

Need to warn the user about wrong connectivity mode set for Corentium Home 2 and Wave Enhance. It was reported that CH2 is not advertising over BLE out of the box. You actually have to configure it in the Airthings app to make sure the BLE stays on. The user can also configure it to use SmartLink (hub) connectivity, which then disables BLE, unless you press on a button.

Will add similar feature for rest of the devices that have hub functionality later on, which requires another library update.

Would be nice to include this in the 2025.11.0 release!

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/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue:
  • Link to documentation pull request:
  • Link to developer documentation pull request:
  • Link to frontend pull request:

Checklist

  • I understand the code I am submitting and can explain how it works.
  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • I have followed the perfect PR recommendations
  • The code has been formatted using Ruff (ruff format homeassistant tests)
  • Tests have been added to verify that the new code works.
  • Any generated code has been carefully reviewed for correctness and compliance with project standards.

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • The manifest file has all fields filled out correctly.
    Updated and included derived files by running: python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt.
    Updated by running python3 -m script.gen_requirements_all.
  • For the updated dependencies - a link to the changelog, or at minimum a diff between library versions is added to the PR description.

To help with the load of incoming pull requests:

@home-assistant
Copy link

Hey there @vincegio, mind taking a look at this pull request as it has been labeled with an integration (airthings_ble) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of airthings_ble can trigger bot actions by commenting:

  • @home-assistant close Closes the pull request.
  • @home-assistant rename Awesome new title Renames the pull request.
  • @home-assistant reopen Reopen the pull request.
  • @home-assistant unassign airthings_ble Removes the current integration label and assignees on the pull request, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the pull request.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the pull request.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds detection and notification for Airthings BLE devices using SmartLink (hub) mode instead of Bluetooth mode, which is unsupported by Home Assistant.

Key changes:

  • Detects connectivity mode from device sensors during data updates
  • Creates a repair issue when SmartLink or unconfigured mode is detected
  • Automatically removes the issue when device switches back to Bluetooth mode

Reviewed Changes

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

File Description
coordinator.py Added connectivity mode detection logic in _async_update_data to create/delete repair issues based on device mode
strings.json Added issue translation strings for the SmartLink detection warning

},
"issues": {
"smartlink_detected": {
"description": "The Airthings {device_name} is using SmartLink (hub), which isn’t supported in Home Assistant. Switch the device to Bluetooth mode in the Airthings app.",
Copy link

Copilot AI Oct 29, 2025

Choose a reason for hiding this comment

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

According to the repair issue guidelines, the description should provide more specific, actionable steps for the user. Consider numbering the steps and adding what to expect after completing them, such as: 'To fix this issue: 1) Open the Airthings mobile app, 2) Navigate to your {device_name} device settings, 3) Select connectivity mode and switch to Bluetooth, 4) Wait for the device to reconnect, then 5) Restart Home Assistant to clear this warning.'

Suggested change
"description": "The Airthings {device_name} is using SmartLink (hub), which isn’t supported in Home Assistant. Switch the device to Bluetooth mode in the Airthings app.",
"description": "The Airthings {device_name} is using SmartLink (hub), which is not supported in Home Assistant. To fix this issue:\n1) Open the Airthings mobile app on your phone.\n2) Navigate to your {device_name} device settings.\n3) Find the connectivity mode option and select Bluetooth.\n4) Wait for the device to reconnect in Bluetooth mode.\n5) Restart Home Assistant to clear this warning.\n\nAfter completing these steps, your device will be available in Home Assistant and this warning will disappear.",

Copilot uses AI. Check for mistakes.
@LaStrada
Copy link
Contributor Author

Missing a label, could anyone add the new-feature label?

except Exception as err:
raise UpdateFailed(f"Unable to fetch data: {err}") from err

await self._check_connectivity_mode_issue(data)
Copy link
Member

Choose a reason for hiding this comment

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

Should we always check this during every update (which can be every 30s) or only during setup?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good question. Theoretically this could change at any time if the user changes the connectivity mode in the Airthings app, but it's very unlikely. One good thing about checking it every time is that if it changes we can remove the issue.

Ideally this should be something we check during setup + when the value changes.

Any input on how this can be improved? If I move it to setup, it won't remove the issue, unless I missed something 🤔

Copy link
Member

Choose a reason for hiding this comment

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

I would argue that this is a test_init.py test, as it tests something that we expect to happen during the lifecycle of an integration (and we should not touch the coordinator directly as the coordinator is just a tool, not the end result

@home-assistant
Copy link

home-assistant bot commented Nov 4, 2025

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 marked this pull request as draft November 4, 2025 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants