2018-01-03 12:12:45 +01:00
|
|
|
const miDevicesUtils = require('../src/utils');
|
2017-07-02 18:11:19 +02:00
|
|
|
|
2018-01-03 12:12:45 +01:00
|
|
|
module.exports = (RED) => {
|
2018-01-05 22:21:50 +01:00
|
|
|
// motion
|
2017-07-02 18:11:19 +02:00
|
|
|
function XiaomiMotionNode(config) {
|
2018-01-03 12:12:45 +01:00
|
|
|
miDevicesUtils.defaultNode(RED, config, this);
|
2017-07-02 18:11:19 +02:00
|
|
|
}
|
|
|
|
|
RED.nodes.registerType("xiaomi-motion", XiaomiMotionNode);
|
2018-01-03 12:12:45 +01:00
|
|
|
};
|