If the hub didn’t get discovered automatically then try going to the configuration->integrations page. then select the plus sign in the bottom right and add the tradfri integration from there.
you should probably remove the entry in your configuration.yaml before you do that.
Then after it’s set up there I believe that all of your devices should be discovered and added automatically.
I guess I’m still writing incomprehensibly, or I don’t completely understand HA in terms of configuration in files Or I’m just stupid
For Tradfri I define a gateway in configuration.yaml - I understand that.
Then I don’t want to use any automatic device search. I want to save every bulb, socket etc. in the configuration file. Can’t it be done?
In OH I have complete freedom if I want to configure using GUI or in files (I know - I had to forget about OH;)) but somehow I try to understand it. Can’t do it in HA.
In order not to use OH comparisons, I will give an example of a Ubiquiti device - e.g. edge router ER-4 I can configure basic settings using the GUI, further configuration can be carried out using the GUI but it is very time consuming and inconvenient. So I just turned off the www server in the router completely and configured it using CLI via SSH.
In OH, the configuration in the files is very convenient, but I like HA more. Editing files with major configuration changes is much faster than clicking the mouse in the GUI
Usually, in ha, you configure the integration (either gui or yaml) then the devices and entities are automatic. You can normally hide or ignore entities or devices.
I don’t see how or why you need to. The integration should have already brought all your devices into HA. If it did, these devices are now in the .storage directory within your config directory. You can shut down HA, and edit these files (they are just JSON), but do so carefully, and always have backups.
Understand that whether HA uses the configuration yaml or the “.storage” method (configurable from the frontend), is up to the integration developer. If they don’t give you any options for configuring from yaml, then it’s all done in the front end.
Well, for years, everyone bitched about not having any way to configure and add things from the frontend, so the developers set forth on making things easy to add from the frontend. Now we have people bitching about having to configure things from the frontend, with no push from the developers to require both methods to remain intact.
If you want to use HA, you kind of have to accept the options given to you or start writing code to fix it or add functionality.
I was firmly in the camp of “leave my damn text files alone!” But I warmed up to the GUI and found it’s rather nice to be able to add/modify things without a restart of HA or any services.
Thank you for the discussion and clarification. My post resulted from the 100% belief that doing everything in files is possible and either the documentation for HA is incomplete or I am stupid I can’t find it.