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) 286 B
const miDevicesUtils = require('../src/utils'); module.exports = (RED) => { // switch, sensor_switch.aq2 function XiaomiSwitchNode(config) { miDevicesUtils.defaultNode(RED, config, this); } RED.nodes.registerType("xiaomi-switch", XiaomiSwitchNode); };