Homematic BidCos Device HM-Sec-SC-2 Becomes Unavailable But Battery Notes Does Not Notice It

by ADMIN 93 views

Introduction

In this article, we will be discussing an issue with the Homematic BidCos device HM-Sec-SC-2 and the Battery Notes integration in Home Assistant. The issue is that the device becomes unavailable when its battery runs out, but the Battery Notes integration does not notice this and continues to report the battery as normal.

Problem Description

The problem is that the Homematic BidCos device HM-Sec-SC-2 has a battery that can run out, and when it does, the device becomes unavailable in Home Assistant. However, the Battery Notes integration does not notice this and continues to report the battery as normal. This means that the user will not be notified when the battery is running low or has run out.

Reproduction Steps

To reproduce this issue, follow these steps:

  1. Add the Homematic BidCos device HM-Sec-SC-2 to Home Assistant and install the Battery Notes integration.
  2. Take the battery out of the device.
  3. Wait for a few days to allow the device to become unavailable.
  4. Run the automation script that checks the battery level daily.
  5. The script should report that the battery has not been reported, but it does not currently do this.

System Health Details

The system health details are as follows:

System Information

  • version: 2025.4.4
  • installation_type: Home Assistant OS
  • dev: false
  • hassio: true
  • docker: true
  • user: root
  • virtualenv: false
  • python_version: 3.13.2
  • os_name: Linux
  • os_version: 6.6.74-haos-raspi
  • arch: aarch64
  • timezone: Europe/Berlin
  • config_dir: /config

Home Assistant Community Store

  • GitHub API: ok
  • GitHub Content: ok
  • GitHub Web: ok
  • HACS Data: ok
  • GitHub API Calls Remaining: 5000
  • Installed Version: 2.0.5
  • Stage: running
  • Available Repositories: 1698
  • Downloaded Repositories: 15

Home Assistant Cloud

  • logged_in: false
  • can_reach_cert_server: ok
  • can_reach_cloud_auth: ok
  • can_reach_cloud: ok

Home Assistant Supervisor

  • host_os: Home Assistant OS 15.2
  • update_channel: stable
  • supervisor_version: supervisor-2025.04.1
  • agent_version: 1.7.2
  • docker_version: 28.0.4
  • disk_total: 28.5 GB
  • disk_used: 14.8 GB
  • healthy: true
  • supported: true
  • host_connectivity: true
  • supervisor_connectivity: true
  • ntp_synchronized: true
  • virtualization:
  • board: rpi4-64
  • supervisor_api: ok
  • version_api: ok
  • installed_addons: Terminal & SSH (9.170), File editor (5.8.0), eBUSd (25.1.0), Mosquitto broker (6.5.0), RaspberryMatic CCU (3.81.5.20250326), Piper (1.5.2), Whisper (2.5.0), ESPHome Device Builder (2025.4.1), Grocy (0.24.0), Nextcloud Backup (0.17.7), Speech-to-Phrase (1.3.0)

Dashboards

  • dashboards: 9
  • resources: 6
  • views: 14
  • mode: storage

Network Configuration

  • adapters: lo (disabled), end0 (enabled, default, auto), hassio (disabled), docker0 (disabled), vethd2774b6 (disabled), vethed94587 (disabled), veth8f234b8 (disabled), veth69269c5 (disabled), vethcf46ee1 (disabled), veth89bd1d0 (disabled), vethd874d5e (disabled), veth6254dff (disabled), veth6d961c7 (disabled), veth3fe36ec (disabled), veth910aa7d (disabled), vethfe15bbc (disabled), veth99d1392 (disabled)

Recorder

  • oldest_recorder_run: 20. April 2025 um 19:02
  • current_recorder_run: 28. April 2025 um 00:46
  • estimated_db_size: 334.70 MiB
  • database_engine: sqlite
  • database_version: 3.48.0

Spotify

  • api_endpoint_reachable: ok

Debug Logs

Unfortunately, the debug logs are not very helpful in this case.

Diagnostics Dump

The diagnostics dump is as follows:

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2025.4.4",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.13.2",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Europe/Berlin",
    "os_name": "Linux",
    "os_version": "6.6.74-haos-raspi",
    "supervisor": "2025.04.1",
    "host_os": "Home Assistant OS 15.2",
    "docker_version": "28.0.4",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "powercalc": {
      "documentation": "https://docs.powercalc.nl",
      "version": "v1.17.11",
      "requirements": [
        "numpy>=1.21.1"
      ]
    },
    "battery_notes": {
      "documentation": "https://andrew-codechimp.github.io/HA-Battery-Notes/",
      "version": "2.9.10",
      "requirements": []
    },
    "zha_toolkit": {
      "documentation": "https://github.com/mdeweerd/zha-toolkit",
      "version": "v1.1.27",
      "requirements": [
        "aiofiles>=0.4.0        "pytz>=2016.10"
      ]
    },
    "grocy": {
      "documentation": "https://github.com/custom-components/grocy",
      "version": "2025.2.2",
      "requirements": [
        "pygrocy2==2.4.0"
      ]
    },
    "hacs": {
      "documentation": "https://hacs.xyz/docs/use/",
      "version": "2.0.5",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "adaptive_lighting": {
      "documentation": "https://github.com/basnijholt/adaptive-lighting#readme",
      "version": "1.25.0",
      "requirements": [
        "ulid-transform"
      ]
    },
    "openwrt": {
      "documentation": "https://github.com/kvj/hass_openwrt",
      "version": "0.2.1",
      "requirements": []
    },
    "homematicip_local": {
      "documentation": "https://github.com/sukramj/custom_homematic",
      "version": "1.83.0",
      "requirements": [
        "hahomematic==2025.4.1"
      ]
    },
    "waste_collection_schedule": {
      "documentation": "https://github.com/mampfes/hacs_waste_collection_schedule#readme",
      "version": "2.7.0",
      "requirements": [
        "icalendar",
        "icalevents>=0.1.26,!=0.1.28",
        "beautifulsoup4",
        "lxml",
        "pycryptodome",
        "pypdf"
      ]
    }
  },
  "integration_manifest": {
    "domain": "battery_notes",
    "name": "Battery Notes",
    "codeowners": [
      "andrew-codechimp"
    ],
    "config_flow": true,
    "documentation": "https://andrew-codechimp.github.io/HA-Battery-Notes/",
    "integration_type": "device",
    "iot_class": "calculated",
    "issue_tracker": "https://github.com/andrew-codechimp/ha-battery-notes/issues",
    "version": "2.9.10",
    "is_built_in": false,
    "overwrites_built_in": false
  },
  "setup_times": {
    "null": {
      "setup": 0.39192929200362414
    },
    "01JHAE7BK6CEFAQAYNKSBCVTH7": {
      "wait_import_platforms": -18.091405198909342,
      "wait_base_component": -0.000993354944512248,
      "config_entry_setup": 18.103<br/>
**Q&A: Homematic BidCos Device HM-Sec-SC-2 Becomes Unavailable but Battery Notes Does Not Notice It**
===========================================================================================

**Q: What is the issue with the Homematic BidCos device HM-Sec-SC-2 and the Battery Notes integration?**
-----------------------------------------------------------------------------------------

A: The issue is that the device becomes unavailable when its battery runs out, but the Battery Notes integration does not notice this and continues to report the battery as normal.

**Q: What are the reproduction steps to reproduce this issue?**
---------------------------------------------------------

A: To reproduce this issue, follow these steps:

1. Add the Homematic BidCos device HM-Sec-SC-2 to Home Assistant and install the Battery Notes integration.
2. Take the battery out of the device.
3. Wait for a few days to allow the device to become unavailable.
4. Run the automation script that checks the battery level daily.
5. The script should report that the battery has not been reported, but it does not currently do this.

**Q: What are the system health details that are relevant to this issue?**
-------------------------------------------------------------------------

A: The system health details that are relevant to this issue are:

* **version**: 2025.4.4
* **installation_type**: Home Assistant OS
* **dev**: false
* **hassio**: true
* **docker**: true
* **user**: root
* **virtualenv**: false
* **python_version**: 3.13.2
* **os_name**: Linux
* **os_version**: 6.6.74-haos-raspi
* **arch**: aarch64
* **timezone**: Europe/Berlin
* **config_dir**: /config

**Q: What are the Home Assistant Community Store details that are relevant to this issue?**
-----------------------------------------------------------------------------------------

A: The Home Assistant Community Store details that are relevant to this issue are:

* **GitHub API**: ok
* **GitHub Content**: ok
* **GitHub Web**: ok
* **HACS Data**: ok
* **GitHub API Calls Remaining**: 5000
* **Installed Version**: 2.0.5
* **Stage**: running
* **Available Repositories**: 1698
* **Downloaded Repositories**: 15

**Q: What are the Home Assistant Cloud details that are relevant to this issue?**
-----------------------------------------------------------------------------------------

A: The Home Assistant Cloud details that are relevant to this issue are:

* **logged_in**: false
* **can_reach_cert_server**: ok
* **can_reach_cloud_auth**: ok
* **can_reach_cloud**: ok

**Q: What are the Home Assistant Supervisor details that are relevant to this issue?**
-----------------------------------------------------------------------------------------

A: The Home Assistant Supervisor details that are relevant to this issue are:

* **host_os**: Home Assistant OS 15.2
* **update_channel**: stable
* **supervisor_version**: supervisor-2025.04.1
* **agent_version**: 1.7.2
* **docker_version**: 28.0.4
* **disk_total**: 28.5 GB
* **disk_used**: 14.8 GB
* **healthy**: true
* **supported**: true
* **host_connectivity**: true
* **supervisor_connectivity**: true
* **ntp_synchronized true
* **virtualization**: 
* **board**: rpi4-64
* **supervisor_api**: ok
* **version_api**: ok
* **installed_addons**: Terminal & SSH (9.170), File editor (5.8.0), eBUSd (25.1.0), Mosquitto broker (6.5.0), RaspberryMatic CCU (3.81.5.20250326), Piper (1.5.2), Whisper (2.5.0), ESPHome Device Builder (2025.4.1), Grocy (0.24.0), Nextcloud Backup (0.17.7), Speech-to-Phrase (1.3.0)

**Q: What are the dashboards details that are relevant to this issue?**
-------------------------------------------------------------------------

A: The dashboards details that are relevant to this issue are:

* **dashboards**: 9
* **resources**: 6
* **views**: 14
* **mode**: storage

**Q: What are the network configuration details that are relevant to this issue?**
-----------------------------------------------------------------------------------------

A: The network configuration details that are relevant to this issue are:

* **adapters**: lo (disabled), end0 (enabled, default, auto), hassio (disabled), docker0 (disabled), vethd2774b6 (disabled), vethed94587 (disabled), veth8f234b8 (disabled), veth69269c5 (disabled), vethcf46ee1 (disabled), veth89bd1d0 (disabled), vethd874d5e (disabled), veth6254dff (disabled), veth6d961c7 (disabled), veth3fe36ec (disabled), veth910aa7d (disabled), vethfe15bbc (disabled), veth99d1392 (disabled)

**Q: What are the recorder details that are relevant to this issue?**
-------------------------------------------------------------------------

A: The recorder details that are relevant to this issue are:

* **oldest_recorder_run**: 20. April 2025 um 19:02
* **current_recorder_run**: 28. April 2025 um 00:46
* **estimated_db_size**: 334.70 MiB
* **database_engine**: sqlite
* **database_version**: 3.48.0

**Q: What are the Spotify details that are relevant to this issue?**
-------------------------------------------------------------------------

A: The Spotify details that are relevant to this issue are:

* **api_endpoint_reachable**: ok

**Q: What are the debug logs that are relevant to this issue?**
-------------------------------------------------------------------------

A: Unfortunately, the debug logs are not very helpful in this case.

**Q: What are the diagnostics dump details that are relevant to this issue?**
-----------------------------------------------------------------------------------------

A: The diagnostics dump details that are relevant to this issue are:

```json
{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2025.4.4",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.13.2",
    "docker": true,
    "arch": "aarch64",
    "timezone": "Europe/Berlin",
    "os_name": "Linux",
    "os_version": "6.6.-haos-raspi",
    "supervisor": "2025.04.1",
    "host_os": "Home Assistant OS 15.2",
    "docker_version": "28.0.4",
    "chassis": "embedded",
    "run_as_root": true
  },
  "custom_components": {
    "powercalc": {
      "documentation": "https://docs.powercalc.nl",
      "version": "v1.17.11",
      "requirements": [
        "numpy>=1.21.1"
      ]
    },
    "battery_notes": {
      "documentation": "https://andrew-codechimp.github.io/HA-Battery-Notes/",
      "version": "2.9.10",
      "requirements": []
    },
    "zha_toolkit": {
      "documentation": "https://github.com/mdeweerd/zha-toolkit",
      "version": "v1.1.27",
      "requirements": [
        "aiofiles>=0.4.0        "pytz>=2016.10"
      ]
    },
    "grocy": {
      "documentation": "https://github.com/custom-components/grocy",
      "version": "2025.2.2",
      "requirements": [
        "pygrocy2==2.4.0"
      ]
    },
    "hacs": {
      "documentation": "https://hacs.xyz/docs/use/",
      "version": "2.0.5",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "adaptive_lighting": {
      "documentation": "https://github.com/basnijholt/adaptive-lighting#readme",
      "version": "1.25.0",
      "requirements": [
        "ulid-transform"
      ]
    },
    "openwrt": {
      "documentation": "https://github.com/kvj/hass_openwrt",
      "version": "0.2.1",
      "requirements": []
    },
    "homematicip_local": {
      "documentation": "https://github.com/sukramj/custom_homematic",
      "version": "1.83.0",
      "requirements": [
        "hahomematic==2025.4.1"
      ]
    },
    "waste_collection_schedule": {
      "documentation": "https://github.com/mampfes/hacs_waste_collection_schedule#readme",
      "version": "2.7.0",
      "requirements": [
        "icalendar",
        "icalevents>=0.1.26,!=0.1.28",
        "beautifulsoup4",
        "lxml",
        "pycryptodome",
        "pypdf"
      ]
    }
  },
  "integration_manifest": {
    "domain": "battery_notes",
    "name": "Battery Notes",
    "codeowners": [
      "andrew-codechimp"
    ],
    "config_flow": true,
    "documentation": "https