Closed jBouyoud closed 4 years ago
Could you also provide a template ?
Yes of course. There it is. Please note that the last template is based on type attribute (not really on link with this PR intent). If you want I can make another PR for that.
Looks good, do you use it on prod ?
Yes. It works as expected. Is there anything left to be done before we can merge this PR?
Hello,
My primary devices has no
type
so i can't rely on templeting for discovery.This PR allow templating based on
manufactorer_code
and list of endpoints withdevice-id
andprofile
of this endpoints. This doesn't break the current templating ontype
which is the default, but if not available the library will switch on the following templating style.As I see those informations seems to be always present (for my devices : Ikea Lights, Profalux BSO, Xiaomi sensors)