UNPKG

node-red-contrib-mi-sensors

Version:

A set of nodes to control some of the popular Xiaomi sensors which are connected to the Xiaomi Gateway, and the Gateway itself.

10 lines (8 loc) 279 B
const miDevicesUtils = require('../src/utils'); module.exports = (RED) => { // vibration function XiaomiVibrationNode(config) { miDevicesUtils.defaultNode(RED, config, this); } RED.nodes.registerType("xiaomi-vibration", XiaomiVibrationNode); };