Integration : Luminite Pir Genesys

Hello all,

I’m new in home assistant
I’m a python developer, and i try to create a new integration for Pir (Luminite genesys).
After reading lot of docs, and some trying, i’m have imagine this solution.

Communication between home assistant and the board who read serial data from the genesys board will be done with tcp socket.

New pirs can be discovered all the time, i should be able to add a pir on runtime, and it should appear in home assistant.
Pir has also some extra data (step count, model, battery level)

For the structure,

a platform ‘luminite’.
The platform create entities (binary_sensor) on runtime (one entity by pir).
As i receive data from tcp socket, should this part of code can be a thread in the platform?

Is it the correct way to do that?

Johan