-
Notifications
You must be signed in to change notification settings - Fork 16
Invalid update notification #59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
How can I check what the API is returning? |
You have to navigate into this page on your Pi-hole instance.
The information is provided by the route |
It returns: {
"recent_blocked": "xxxxx",
"active_clients": 24,
"gravity_size": 594370,
"top_domain": "xxxxx",
"top_blocked": "xxxxx",
"top_client": "xxxxx",
"blocking": "enabled",
"queries": {
"total": 10285,
"blocked": 342,
"percent_blocked": 3.325230836868286
},
"cache": {
"size": 10000,
"inserted": 5724,
"evicted": 0
},
"system": {
"uptime": 12407,
"memory": {
"ram": {
"total": 16233196,
"free": 12733068,
"used": 2022640,
"available": 13893100,
"%used": 12.45990007143387
},
"swap": {
"total": 4194300,
"free": 4194300,
"used": 0,
"%used": 0
}
},
"procs": 593,
"cpu": {
"nprocs": 4,
"load": {
"raw": [
0.04638671875,
0.11328125,
0.162109375
],
"percent": [
1.15966796875,
2.83203125,
4.052734375
]
}
}
},
"node_name": "xxxxx",
"host_model": null,
"iface": {
"v4": {
"addr": "192.168.x.x",
"rx_bytes": {
"value": 315.896,
"unit": "K"
},
"tx_bytes": {
"value": 96.455,
"unit": "K"
},
"num_addrs": 1,
"name": "eth0",
"gw_addr": "192.168.x.x"
},
"v6": {
"addr": null,
"num_addrs": 0,
"name": "eth0",
"gw_addr": null
}
},
"version": {
"core": {
"local": {
"version": "v6.0.5",
"branch": "master",
"hash": "9fe687bd"
},
"remote": {
"version": "",
"hash": ""
}
},
"web": {
"local": {
"version": "v6.0.2",
"branch": "master",
"hash": "25441178"
},
"remote": {
"version": "",
"hash": ""
}
},
"ftl": {
"local": {
"hash": "b7eb53bf",
"branch": "master",
"version": "v6.0.4",
"date": "2025-03-04 17:22:10 +0000"
},
"remote": {
"version": "",
"hash": ""
}
},
"docker": {
"local": "2025.03.0",
"remote": ""
}
},
"config": {
"dhcp_active": false,
"dhcp_start": "",
"dhcp_end": "",
"dhcp_ipv6": false,
"dns_domain": "xxxxx",
"dns_port": 53,
"dns_num_upstreams": 2,
"dns_dnssec": false,
"dns_revServer_active": false
},
"%mem": 0.24759142100811005,
"%cpu": 9.310455322265625,
"pid": 49,
"sensors": {
"cpu_temp": 28,
"hot_limit": 60,
"unit": "C"
},
"took": 0.04741621017456055
} |
Thanks for your help. I cannot explain why the remote versions are empty. I compare the local version and remote version to determinate if a new version is available. "version": {
"core": {
"local": {
"version": "v6.0.5",
"branch": "master",
"hash": "9fe687bd"
},
"remote": {
"version": "",
"hash": ""
}
},
"web": {
"local": {
"version": "v6.0.2",
"branch": "master",
"hash": "25441178"
},
"remote": {
"version": "",
"hash": ""
}
},
"ftl": {
"local": {
"hash": "b7eb53bf",
"branch": "master",
"version": "v6.0.4",
"date": "2025-03-04 17:22:10 +0000"
},
"remote": {
"version": "",
"hash": ""
}
},
"docker": {
"local": "2025.03.0",
"remote": ""
}
}, I could consider treating the empty value as null and displaying 'unknown' instead. I'm not sure which option would be better. Maybe you could open an issue on the Pi-hole github repository : https://github.com/pi-hole/pi-hole/issues |
I guess, the issues is at their side, but it would be nice to ignore these empty values and not show them as updates? |
Please see: pi-hole/pi-hole#6099 (comment) If Pi-Hole runs in a docker instance, only the docker tag should be considered. |
Please, check my answer on the linked issue. I'm not sure why the versions were empty, but in future Pi-hole versions this condition will return Also, I recommend you to check only for docker tags inside containers. If you check the individual components, there will be false positives when there is a new release for a component, but not a new docker image. Users will try to update, but nothing will change and the update message will still be there. |
Thanks for the information. With null value, the update availability status will be "unknown". |
The user can disable the sensors which are not relevant for him. |
Thanks for the information. With null value, the update availability status will be "unknown". The user can disable the sensors which are not relevant for him. |
Describe the bug
The HA integration shows available updates for Pi-Hole, however, Pi-Hole it self does not show any updates:
Expected behavior
The update notification should be in line with Pi-Hole itself.
Screenshots
The latest version also appears empty?

Home Assistant version:

HA Core 2025.3.3 and web 20250306.0
Latest v1.8.0 of the integration

Additional context
Dunno of this is important, but I have 2 Pi-Hole instances configured in Home Assistant.
The text was updated successfully, but these errors were encountered: