travisghansen / hass-opnsense

OPNsense integration with Home Assistant
194 stars 25 forks source link

[Issue] Can't connect to Opnsense 23.7.11 from Home Assistant 2024.01.2 #113

Closed atxbyea closed 8 months ago

atxbyea commented 8 months ago

Home assistant logs is complaining about a TypeError it seems.

2024-01-09 18:12:06.163 ERROR (SyncWorker_11) [custom_components.opnsense.pyopnsense] Unexpected get_system_info error err=TypeError("string indices must be integers, not 'str'"), type(err)=<class 'TypeError'> 2024-01-09 18:12:06.164 ERROR (MainThread) [custom_components.opnsense.config_flow] Unexpected err=TypeError("string indices must be integers, not 'str'"), type(err)=<class 'TypeError'>

alexdelprete commented 8 months ago

please post a screenshot of the form before submitting...

atxbyea commented 8 months ago

Screenshot from 2024-01-10 13-28-45

alexdelprete commented 8 months ago

Did you search for past issues before opening a new one? See #41 and #33.

The error is generic and should be due to the user permissions you created in OPNsense.

atxbyea commented 8 months ago

Thanks, strange when I followed all the steps for the permissions, worked immediatly with the root user.

alexdelprete commented 8 months ago

Thanks, strange when I followed all the steps for the permissions, worked immediatly with the root user.

I wrote that part of the doc, the non-admin user should have the two privileges described:

image