Open Goeste opened 1 year ago
Hey there @mtreinish, mind taking a look at this issue as it has been labeled with an integration (opnsense
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
opnsense documentation opnsense source (message by IssueLinks)
just interpreting the error message: you OPNsense do not answer the api requests Connection to 192.168.2.2 timed out. (connect timeout=20)
. maybe you need to check if there is an incoming firewall rule or administrativ setting missing or changed during update in the OPNsense
Any outcome on this issue, just starting to look at its intergration and am faced with same..??
@davlaw I just tried to set it up from scratch and having the same issues too.
same here
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Still not working :-(
I have a fresh install of opensense, no added plugins or anything, getting the same error. Anything We can do to help narrow this down?
Hi, you can make sure that you are able to ping (and eventually connect with curl or such) from the Home Assistant machine to the OPNSense machine. You can use the "Advanced SSH & Web Terminal" add-on to get a terminal on HA.
Still happening with core 24.7.3
I have an API key/secret that I can curl
from the HA terminal.
curl -k -u "abcd1234":"wxyz9876" https://192.168.2.1/api/core/firmware/status
Returns a valid response, e.g.
{
"product": {
"product_abi": "24.1",
"product_arch": "amd64",
"product_name": "OPNsense",
"product_nickname": "Savvy Shark"
},
"status": "none"
}
HA logs show similar to what @Goeste is reporting
2024-07-23 10:32:00.027 ERROR (MainThread) [homeassistant.setup] Error during setup of component opnsense
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 404, in _async_setup_component
result = await task
^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/opnsense/__init__.py", line 56, in setup
interfaces_client.get_arp()
File "/usr/local/lib/python3.12/site-packages/pyopnsense/diagnostics.py", line 55, in get_arp
return self._get("diagnostics/interface/getArp")
File "/usr/local/lib/python3.12/site-packages/pyopnsense/client.py", line 61, in _get
return self._process_response(response, raw)
File "/usr/local/lib/python3.12/site-packages/pyopnsense/client.py", line 47, in _process_response
return response.text if raw else json.loads(response.text)
File "/usr/local/lib/python3.12/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.12/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.12/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
It worked for me on core 24.10.2
@ehcloninger I had the same error. The URL setting is a little weird because it needs the /api in the end. So make sure your URL setting looks like this:
url: https://192.168.0.1/api
url: https://192.168.0.1/api
@Goblinmine Thank you for that detail. That did solve the reported problem. HA can poll the opnsense instance, but now getting a different issue.
That's the way it goes with these kinds of projects, discovery is half the fun! :-)
(issue can be closed)
The problem
Hi,
I had the OPNsense integration up and running fine, but i guess after an update of OPNsense the integration is not working anymore. Everytime HassOS boots up it detects a mis-configuration/error of OPNsense.
I def. need this integration running for presence detection in my case... Secret and Key have been checked multiple times.
Any help or bump t the right direction is very much appreciated!
Best, goeste
What version of Home Assistant Core has the issue?
core-2023.7.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
OPNsense
Link to integration documentation on our website
https://www.home-assistant.io/integrations/opnsense
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response