更新 detector.js

This commit is contained in:
钟进 2018-12-14 11:51:26 +00:00
parent c94d739493
commit ae8deab660

View File

@ -60,7 +60,8 @@ var Types = {
windowTilt: 'windowTilt',
weatherCurrent: 'weatherCurrent',
weatherForecast: 'weatherForecast',
warning: 'warning'
warning: 'warning',
zhiban: 'zhiban'
};
// Description of flags
@ -500,6 +501,19 @@ function ChannelDetector() {
patternError
],
type: Types.info
},
//onc ext
zhiban: {
states: [
{role: /zhiban/, indicator: false, write: false, type: 'number', name: 'ACTUAL', required: true},
{role: /zhiban$/, indicator: false, write: false, type: 'number', name: 'SECOND', required: false},
patternUnreach,
patternLowbat,
patternMaintain,
patternError
],
type: Types.zhiban
}
};