How do I know the type of device (Power meter, thermometer, etc.)?
ChrisRahme opened this issue · 1 comments
ChrisRahme commented
The productModel
field in the device JSON is sometimes helpful to find the type of a device (e.g. NSPanel
, Sonoff 4CH
).
But sometimes, this field is empty (" "
) for different types of products (e.g. temperature sensor and non-Sonoff breakers). Is there any way (besides examining the JSON structure) to know for sure the type of a device?
baugp commented
use method getDevice(id)
then check the extra.uiid
field.
https://coolkit-technologies.github.io/eWeLink-API/#/en/UIIDProtocol
https://github.com/skydiver/ewelink-api/blob/master/src/data/devices-type-uuid.json