预设未定义错误ReferenceError: presets is not defined
if (!presets[data.model]) {
       ^

ReferenceError: presets is not defined
    at module.exports (/usr/lib/node_modules/homebridge-mi-acpartner/packages/presetHandle.js:16:8)
    at ClimateAccessory.SendCmd (/usr/lib/node_modules/homebridge-mi-acpartner/accessories/climate.js:310:27)
    at ClimateAccessory.setTargetHeatingCoolingState (/usr/lib/node_modules/homebridge-mi-acpartner/accessories/climate.js:173:18)
    at emitMany (events.js:146:13)
    at Characteristic.TargetHeatingCoolingState.emit (events.js:223:7)
    at Characteristic.TargetHeatingCoolingState.Characteristic.setValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:319:10)
    at Bridge.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:867:22)
    at Array.forEach (native)
    at Bridge.Accessory._handleSetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:807:8)
    at emitMany (events.js:146:13)