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.
14 lines (10 loc) • 386 B
text/typescript
import { Red, NodeProperties } from "node-red";
import * as YeelightSearch from 'yeelight-wifi';
import { Searcher } from "./Searcher";
import {default as YeelightConfigurator} from "./YeelightConfigurator";
import {default as YeelightOut} from "./YeelightOut";
export = (RED:Red) => {
Searcher.discover(RED);
YeelightConfigurator(RED);
YeelightOut(RED);
};