RED.nodes.getNode(tmpNode.id);
+ if(tmpNodeInst.ip == bulb.hostname || tmpNodeInst.sid == parseInt(bulb.id)) {
+ tmpNodeInst.bulb = bulb;
}
}
});
diff --git a/src/nodes/yeelight/YeelightConfigurator.ejs b/src/nodes/yeelight/YeelightConfigurator.ejs
index 929972e..d395d3d 100644
--- a/src/nodes/yeelight/YeelightConfigurator.ejs
+++ b/src/nodes/yeelight/YeelightConfigurator.ejs
@@ -34,7 +34,7 @@
-
+
diff --git a/src/nodes/yeelight/YeelightConfigurator.ts b/src/nodes/yeelight/YeelightConfigurator.ts
index a2146de..dfdb6c7 100644
--- a/src/nodes/yeelight/YeelightConfigurator.ts
+++ b/src/nodes/yeelight/YeelightConfigurator.ts
@@ -1,8 +1,8 @@
-import { Red, NodeProperties, NodeStatus, ClearNodeStatus } from "node-red";
+import { Red, Node, NodeProperties, NodeStatus, ClearNodeStatus } from "node-red";
import { Constants } from "../constants";
import { Searcher } from "./Searcher";
-export interface IYeelightConfiguratorNode {
+export interface IYeelightConfiguratorNode extends Node {
ip:string;
sid:number;
bulb:any;
diff --git a/src/nodes/yeelight/YeelightOut.ejs b/src/nodes/yeelight/YeelightOut.ejs
index 4ee7404..4fef40c 100644
--- a/src/nodes/yeelight/YeelightOut.ejs
+++ b/src/nodes/yeelight/YeelightOut.ejs
@@ -1,10 +1,10 @@
-
-