ioBroker / ioBroker.type-detector

Helper module (not adapter) to detect types of devices
MIT License
8 stars 9 forks source link

allow mixed device->state and device->channel->state structures #55

Open Garfonso opened 4 weeks ago

Garfonso commented 4 weeks ago

Currently, the structure device->channel->state is preferred and results are returned without looking at the states that are direct children of the device object (i.e. device->state structure).

So a channel that does not contain anything useful for type-detector can prevent detection of a device if the useful states are directly children of the device object. IIRC wled is an example of that.

I am not really sure what side effects this change might have. I searched through the devices I know, but could not find any obvious problems, and currently can't think of any.

Apollon77 commented 4 weeks ago

Thank you. I have a look when back from Vacation

Apollon77 commented 3 weeks ago

I check too, merge and release next week,