Open tengelmeier opened 6 years ago
it's need to locate an accessory through sid and type. and it's really inconvenient getting this information at the moment. so the later version, I also wanted to provide similar functions, or the function of information conversion through the Mijia(MiHome) app.
With the pull request https://github.com/YinHangCode/homebridge-mi-aqara/pull/134 it is at least easier to generate the config.json
Hi,
I found it very hard to apply human readable sensors names as for each sensor you have to:
I tried to implement a function to print out the sid to name mapping like
so I just have to change the values in the JSON for name However it looks Accessories and Devices are not associated at all? Is there any code to look up an Accessory by sid + gatewayId?
UPDATE:
I found that in index.js, line 253 should read:
and line 287:
Then the device list contains also model information so it is possible to traverse the code.