Configuration.yaml added but still wont work

Its not working still get the " This integration cannot be added from the UI

You can add this integration by adding it to your ‘configuration.yaml’. See the documentation for more information."

I’ve clearly added it, and it knows because when I make an error it tells me, but when correct no errors. Still cant add opnsense or any other that requires editing the yaml. Also rebooted no change.

You are most likely to get good help if you post the configuration.yaml and identify the part that’s causing problems.

Use the preformatted text </> feature to preserve formatting.

1 Like

This is it. Nothing more until I get it actually working. Still tells me I need to add it to the config but it is.

# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
opnsense:
  url: xxxxxx
  api_secret: API_SECRETxxxxxxx
  api_key: API_KEYxxxxxxxx

Okay. Seems like an integration-specific issue, I think, so hopefully someone on the forum with experience with this integration will be able to help.

Any others I try don’t work either like SNMP for example says the same thing. Its like its ignoring or not actually reading the config.

I know its at least reading it though as if I make an error, HA tells me theres an error on line xx

It’s common to get the “cannot be added from the UI” error because some integrations literally need you to edit the YAML.

I’m assuming you are restarting HA after making edits, since you say it gives you an error if there is a problem with the YAML.

What do you see in Settings → Devices & services → Integrations? No sign of the integration there?

Yeah rebooting completely as well. No sign at all. And if I go to add by searching it just gives me that error

Hitting at straws here, but does it help to wrap the xxxxx values in quotes?

opnsense:
  url: "xxxxxx"
  api_secret: "API_SECRETxxxxxxx"
  api_key: "API_KEYxxxxxxxx"

Try " as well as '

Thanks, Still a no go

Sorry. I hope someone else chimes in with some insight.

How are you determining that it’s not working? I would expect it to create device_tracker.xxx entities that you can find in DevTools->States. It’s a very simple integration.

Wouldn’t you expect to see it in Settings → Devices & services → Integrations though?

I’m probably being really stupid here, but are you supposed to include “API_SECRET” and “API_KEY”? My reading of the docs is that you replace those strings with the actual codes.

I’m probably being really stupid here, but are you supposed to include “API_SECRET” and “API_KEY”? My reading of the docs is that you replace those strings with the actual codes.

My assumption was that the OP accounted for that. But if not, … you are obviously correct.

Not necessarily. Including YAML integrations in the Integrations page is fairly new and I don’t know if all of them will end up there.

Fair enough. I didn’t know that.

Also a useful piece of info when trying to help people—thanks for sharing!