openbase / bco.dal

Domotic Abstraction Layer
Other
1 stars 2 forks source link

Associations of Units #117

Open pLeminoq opened 6 years ago

pLeminoq commented 6 years ago

Currently there are some problems with associating units. For example a device introduces a list of power switches and power consumption sensors. Two of these belong together but because they are differentiated by their unit type it is almost impossible to resolve this association using the registry. And because both types are duplicated for the device, the bound to host flag cannot be used to resolve the association either.

We identified 3 possible solutions:

We decided to use the last approach because it does not entail the same disadvantages and is an extension rather than a re-implementation. So the following things have to be done: