Open nordmann666 opened 2 days ago
This integration should no longer require triggering an OPNsense firmware update check to get it to work.
You appear to be running OPNsense 25.1 beta. As that is not released, I'm not sure what changes they may have made. It is possible that they made some changes to the API.
Are you able to run a curl or command to test?
curl -k -u "$key":"$secret" https://$opnsense_url/api/core/firmware/info -v
Replace $key
and $secret
with the OPNsense API credentials you are using with Home Assistant and $opnsense_ip
with the IP or hostname of your OPNsense router.
Post the results here please.
_* Trying 192.168.0.1:4443...
GET /api/core/firmware/info HTTP/2 Host: 192.168.0.1:4443 Authorization: Basic b0crUE5VMU1pVkFrNGFPMDFjcXpjTlU0K1JBemJ3UzNOcGlEZ0dLUEtHbXRZVWlyRUl6U1dpLy9McVZ0dnRkTHkrODFQeHZlZFNBbllrc0I6R0wxQjdHNUFQZmVXS2haeDJ2VCtHdXBtVxxxxxxxxxxxxW1mSFBxd1MyWERtU0tmRkVMTWxMVDYzUTJOZ3hMeXZHLzBzRXNEcGROV0F1Tjk= User-Agent: curl/8.9.1 Accept: /
after a while i got many more output and this is the last part
_"Sun Nov 10 06:28:38 CET 2024","product_version":"25.1.a_490","productwebsite":"https:\/\/opnsense.org\/"}}* Connection #0 to host 192.168.0.1 left intact
after a while i got many more output and this is the last part
I need the whole output please.
You can print the curl to a file and post the file if you prefer.
curl -k -u "$key":"$secret" https://$opnsense_url/api/core/firmware/info > opnsense_firmware.log
So 25.1.a_490
is not a valid Semantic Version. Thus it is failing the check to ensure the version is greater than the minimum required version. Based on #315, we may be changing how we are checking firmware. Not sure if we should adapt the integration to also handle Non-Semantic Versions, but I'll think about it. I'd probably just use the product_abi
(ex. 25.1) if the version was invalid.
What happened?
tried to install this today and i´m stuck at the part of integration
i got "Unable to get OPNsense Firmware version" and found under the resolved issues that i need to trigger update on opnsense. i did that and it installed some missing(?) packages - and it delete the packages in same step?!
hass-opnsense Version
0.3.9
OPNsense Firmware
OPNsense 25.1.a_490-amd64
Home Assistant Version
2024.11.2
Relevant logs
Additional Details
No response