homebridge-meross
Version:
Homebridge plugin to control Meross devices.
186 lines (179 loc) • 3.8 kB
JavaScript
/* jshint node: true,esversion: 9, -W014, -W033 */
/* eslint-disable new-cap */
module.exports = {
defaultConfig: {
name: 'Meross',
username: '',
password: '',
userkey: '',
cloudRefreshRate: 300,
refreshRate: 5,
disableDeviceLogging: false,
debug: false,
disablePlugin: false,
singleDevices: [],
multiDevices: [],
lightDevices: [],
diffuserDevices: [],
garageDevices: [],
rollerDevices: [],
sensorDevices: [],
devices: [],
platform: 'Meross'
},
defaultValues: {
adaptiveLightingShift: 0,
brightnessStep: 1,
cloudRefreshRate: 0,
connection: 'cloud',
garageDoorOpeningTime: 20,
inUsePowerThreshold: 0,
lowBattThreshold: 20,
overrideLogging: 'default',
refreshRate: 5
},
minValues: {
adaptiveLightingShift: -1,
brightnessStep: 1,
cloudRefreshRate: 30,
garageDoorOpeningTime: 1,
inUsePowerThreshold: 0,
lowBattThreshold: 1,
refreshRate: 5
},
allowed: {
singleDevices: [
'name',
'serialNumber',
'deviceUrl',
'ignoreDevice',
'model',
'showAs',
'inUsePowerThreshold',
'firmwareRevision',
'overrideLogging'
],
multiDevices: [
'name',
'serialNumber',
'deviceUrl',
'ignoreDevice',
'model',
'showAs',
'hideChannels',
'firmwareRevision',
'overrideLogging'
],
lightDevices: [
'name',
'serialNumber',
'deviceUrl',
'ignoreDevice',
'model',
'brightnessStep',
'adaptiveLightingShift',
'firmwareRevision',
'overrideLogging'
],
diffuserDevices: [
'name',
'serialNumber',
'deviceUrl',
'ignoreDevice',
'model',
'brightnessStep',
'firmwareRevision',
'overrideLogging'
],
garageDevices: [
'name',
'serialNumber',
'deviceUrl',
'ignoreDevice',
'model',
'garageDoorOpeningTime',
'firmwareRevision',
'overrideLogging'
],
rollerDevices: [
'name',
'serialNumber',
'deviceUrl',
'ignoreDevice',
'model',
'reversePolarity',
'firmwareRevision',
'overrideLogging'
],
sensorDevices: [
'name',
'serialNumber',
'deviceUrl',
'ignoreDevice',
'model',
'lowBattThreshold',
'firmwareRevision',
'overrideLogging'
],
devices: [
'name',
'serialNumber',
'deviceUrl',
'ignoreDevice',
'model',
'showAs',
'hideChannels',
'inUsePowerThreshold',
'firmwareRevision',
'garageDoorOpeningTime',
'reversePolarity',
'overrideLogging'
],
overrideLogging: ['default', 'standard', 'debug', 'disable'],
showAs: ['default', 'outlet', 'purifier']
},
models: {
switchSingle: [
'HP110A',
'MSS110',
'MSS1101',
'MSS1102',
'MSS210',
'MSS210N',
'MSS310',
'MSS310H',
'MSS310R',
'MSS510',
'MSS510M',
'MSS510X',
'MSS550',
'MSS550L',
'MSS550X',
'MSS5X0',
'MSS710',
'MSS810'
],
switchMulti: {
MSS420: 4,
MSS420F: 4,
MSS425: 4,
MSS425E: 4,
MSS425F: 5,
MSS530: 3,
MSS530H: 3,
MSS620: 2,
MSS620B: 2,
MSS620S: 2,
MSS630: 3
},
lightDimmer: ['MPD100', 'MSL100', 'MSL100D', 'MSS560', 'MSS565', 'MSS570', 'MSS570X'],
lightRGB: ['MSL120', 'MSL120B', 'MSL120D', 'MSL320', 'MSL320M', 'MSL420', 'MSL430'],
diffuser: ['MOD100'],
garage: ['MSG100', 'MSG200'],
roller: ['MRS100'],
hubMain: ['MSH300'],
hubSub: ['MS100']
},
httpRetryCodes: ['ENOTFOUND', 'ETIMEDOUT', 'EAI_AGAIN', 'ECONNABORTED']
}