Skip to content

[Bug]: AdBlock entity unavailable although OpenWrt AdBlock status is enabled #30

Description

@tdalejandro

Integration Version

1.6.2

OpenWrt Version

25.12.2

Connection Method

LuCI RPC

Describe the bug

Hi, I found another issue while testing ha-openwrt version 1.6.2 on OpenWrt 25.12.2.

The AdBlock entity appears unavailable in Home Assistant, but AdBlock is enabled and working on OpenWrt.

OpenWrt AdBlock status:

adblock_status  : enabled
frontend_ver    : 4.5.5-r1
backend_ver     : 4.5.5-r1
blocked_domains : 57,861
active_feeds    : 1hosts, oisd_small
dns_backend     : dnsmasq (2.91-r2)
last_run        : mode: start, date/time: 02/05/2026 11:08:55
system_info     : FriendlyElec NanoPi R5C, rockchip/armv8, OpenWrt 25.12.2

However, ubus reports the service instance as not running, but with exit_code: 0:

{
  "adblock": {
    "instances": {
      "adblock": {
        "running": false,
        "command": ["/usr/bin/adblock.sh", "start"],
        "exit_code": 0,
        "pidfile": "/var/run/adblock/adblock.pid"
      }
    }
  }
}

This may be expected behavior for OpenWrt AdBlock, because it loads the blocklist and exits instead of staying as a persistent daemon.

Maybe the integration is checking only running: true, which would mark AdBlock as unavailable even when adblock_status: enabled.

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingubus

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions