Hello together,
according to the documentation (Entity | Home Assistant Developer Docs) an entity represents a real world device. In my case, a real world device could have for example many switches, which could act independent from each other. In the data model of the manufacturer this is mapped to different channels in a device. All activities and function calls are bound to the channels. Every device have 1 or n channels. There could be different channels with different functionality which belongs to a device. For example there is a button with a notificaton light. The button is a channel and the notificataion light is a different channel, which could act independently. In my case, channels are reused in different devices. For example a switch_channel is used in lots of different devices.
In my understanding, i have to add an entity for each channel - not device. That means i have an entity for each channel, not each device. How do you see this? How do you implement data structures like that? For example a multi sensor with humidity and temperature?
I ask that, because i want to refactor code and reduce the amount of work i have to invest for maintanence and new devices. But i dont want to risk my changes are rejected because they are not fulfilling standards or something like that.
I hope my remarks where understandable
Thanks,
Thomas