Config flow example searched for dummies

Hi All

I’m a bit ‘overwelmt’ with all docu about HA. I’m trying to create a new integration
but I already get stuck on the config flow. Basically I want to add a ‘group’ that has multiple ‘devices’ how to create this? So if a user has a new device that he can add it to the same group with a different name. As an example the ThinQ integration



I have a ‘basic’ flow at this moment, but it displays ‘item’ on the main page instead of ‘1 device’ (1 apparaat).
I’m searching for a basic ‘scheme’ for a single entry. Then I can extend it with the other items I want to add. But I can’t find a good example. Thanks for any directions.

Regards

Ludo

Hey Ludo,

Firstly just to explain a little and then a link to my examples which others have found helpful to get going.

So, what you see in the LG example in you post is a single config entry with multiple devices. In the case of this integration, each config entry represents a single account (login details), which has multiple devices associated with it and these are enumerate to create a matching HA device for each one. This only gets setup once.

If you are looking for the ability to be able to add multiple devices at different times (possibly with different connection details or login details) then you need to create a config entry for each one.

Heres the link which will give you a basic config entry flow, fully commented to help get you going.

1 Like