Skip to content

library.json not downloaded automatically - autodiscovery fails #3874

@bogarcia

Description

@bogarcia

Checklist

  • I have added battery_notes: to my configuration.yaml and restarted.
  • I have read the FAQ's.
  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of any previous issues..

Battery Notes Version

2.10.11

Describe the issue

The library.json file is not being downloaded automatically to /config/.storage/battery_notes/, causing autodiscovery to fail.

Expected behavior

The library.json should be downloaded automatically from Cloudflare R2 to enable autodiscovery.

Actual behavior

  • Directory /config/.storage/battery_notes/ is created
  • schema.json is created successfully
  • library.json is NOT downloaded
  • Error in logs: library.json file not found at /config/.storage/battery_notes/library.json
  • Autodiscovery doesn't work

Directory contents

ls -la /config/.storage/battery_notes/
drwxr-xr-x    2 root     root          4096 Oct 19 22:07 .
drwxr-xr-x    8 root     root          4096 Oct 19 22:53 ..
-rw-r--r--    1 root     root          2907 Oct 19 22:33 schema.json

Additional context

  • Tested download from HA: curl to GitHub returns 404 (expected, as library moved to Cloudflare R2)
  • Network connectivity from HA appears normal
  • Manual device addition works correctly
    - https://battery-notes-data.codechimp.org/library.json timeouts when using curl, this seems to be the issue.

Reproduction steps

  1. Install Battery Notes via HACS
  2. Configure with default values.
  3. Restart Home Assistant
    ...

System Health details

System Information

version core-2025.10.3
installation_type Home Assistant OS
dev false
hassio true
docker true
container_arch aarch64
user root
virtualenv false
python_version 3.13.7
os_name Linux
os_version 6.12.43-haos
arch aarch64
timezone Europe/Madrid
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 2298
Downloaded Repositories 13
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 16.2
update_channel stable
supervisor_version supervisor-2025.10.0
agent_version 1.7.2
docker_version 28.3.3
disk_total 28.0 GB
disk_used 7.7 GB
nameservers 80.58.61.250, 80.58.61.254
healthy true
supported true
host_connectivity true
supervisor_connectivity true
ntp_synchronized true
virtualization
board green
supervisor_api ok
version_api ok
installed_addons File editor (5.8.0), Get HACS (1.3.1), Terminal & SSH (9.20.1), Firefox (1.6.0), Music Assistant Server (2.6.0), Duck DNS (1.26.0), Mosquitto broker (6.5.2), Zigbee2MQTT (2.6.2-1), MQTT Explorer (browser-1.0.3)
Dashboards
dashboards 6
resources 8
views 6
mode storage
Network Configuration
adapters lo (disabled), end0 (enabled, default, auto), hassio (disabled), docker0 (disabled), veth1443a10 (disabled), veth4dbd429 (disabled), vethedba419 (disabled), veth830dc11 (disabled), veth765c976 (disabled), veth139e0d9 (disabled), vethdf35af4 (disabled), veth4f367e5 (disabled), veth152bd4b (disabled), vethee8853c (disabled), veth45e2f20 (disabled), veth8462966 (disabled), veth5e8ebcc (disabled)
ipv4_addresses lo (127.0.0.1/8), end0 (192.168.1.78/24), hassio (172.30.32.1/23), docker0 (172.30.232.1/23), veth1443a10 (), veth4dbd429 (), vethedba419 (), veth830dc11 (), veth765c976 (), veth139e0d9 (), vethdf35af4 (), veth4f367e5 (), veth152bd4b (), vethee8853c (), veth45e2f20 (), veth8462966 (), veth5e8ebcc ()
ipv6_addresses lo (::1/128), end0 (fe80::7197:43be:49fc:4156/64), hassio (fe80::701a:4ff:fef0:b84e/64), docker0 (fe80::1c7f:cff:fee9:426b/64), veth1443a10 (fe80::e42d:b4ff:fe02:5b23/64), veth4dbd429 (fe80::e072:91ff:febb:c1bc/64), vethedba419 (fe80::4c93:61ff:fe3a:60b9/64), veth830dc11 (fe80::8c23:caff:fe9e:5972/64), veth765c976 (fe80::94a7:25ff:fe1e:8f12/64), veth139e0d9 (fe80::d84e:abff:fe45:28e/64), vethdf35af4 (fe80::1847:47ff:fe08:db02/64), veth4f367e5 (fe80::a0d3:20ff:fec4:eaa9/64), veth152bd4b (fe80::10a1:6fff:fea7:e467/64), vethee8853c (fe80::bcd4:c4ff:fe5b:7008/64), veth45e2f20 (fe80::a8f2:1fff:fe81:8c88/64), veth8462966 (fe80::a06f:1aff:fe09:e886/64), veth5e8ebcc (fe80::4c32:45ff:fe1b:e30e/64)
announce_addresses 192.168.1.78, fe80::7197:43be:49fc:4156
Recorder
oldest_recorder_run 8 October 2025 at 20:21
current_recorder_run 19 October 2025 at 22:32
estimated_db_size 527.21 MiB
database_engine sqlite
database_version 3.49.2
Sonoff
version 3.9.3 (7c75c46)
cloud_online 1 / 1
local_online 1 / 1

Debug logs


Diagnostics dump

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions