From ae8deab660f0e5d052a8345d22da96bd1f429788 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=9F=E8=BF=9B?= Date: Fri, 14 Dec 2018 11:51:26 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20detector.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/public/vendor/detector.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/public/vendor/detector.js b/src/public/vendor/detector.js index 4fb24db..8fee5d9 100644 --- a/src/public/vendor/detector.js +++ b/src/public/vendor/detector.js @@ -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 } };