Component, EntityComponent, Entity... Confused

Hi all,

I am trying to develop a component (or entity?) in HA… but reading the doc, I am getting really confused… Could someone help clarify things for me?

Looking at the diagram below from the Components architecture page, I seem to understand that the components are in red and are:

  • Service components (here the Automation Component)
  • Platform components (here the Hue Platform and the Z-Wave Platform)
  • Entity components (here the Light Component and the Binary Sensor Component)

But then, looking at the Entity architecture page with the diagram below, it seems that:

  • Entity has disappeared… Are they the Component box?
  • I am getting really confused about the terms Entity Component and Entity Platform. The names do not sound very expressive to me, and I struggle to visualise their responsibilities.

Real world examples welcome.

Em

It is confusing isn’t it. I think that an entity can contain a number of components, like a sensor entity might have a temperature component and a humidity component. I may be wrong of course. I read a post somewhere that I think said the lines had become a bit blurred.

Thanks for the reply. I am going to continue digging in. If anything has a link that clarifies things or is willing to explain more in depth, I (we?) would be indebted. Em