bt-sensors-plugin-sk
Version:
Bluetooth Sensors for Signalk -- support for Victron devices, RuuviTag, Xiaomi, ATC and Inkbird, Ultrasonic wind meters, Mopeka tank readers, Renogy Battery and Solar Controllers, Aranet4 environment sensors, SwitchBot temp and humidity sensors, Kilovault
24 lines (19 loc) • 482 B
JavaScript
const BTSensor = require("../../BTSensor");
class AranetSensor extends BTSensor{
COLOR = {
1: 'Green',
2: 'Yellow',
3: 'Red'
}
constructor(device, config={}){
super(device, config)
}
static async identify(device){
const md = await this.getDeviceProp(device,"ManufacturerData")
if (md && md[0x0702]) {
return this
}
return null
}
}
module.exports=AranetSensor