【发布时间】:2026-01-27 21:00:01
【问题描述】:
我正在尝试创建 Node-RED 流以使用 https://github.com/saryn/node-red-contrib-sonoff-server 打开/关闭我的 Sonoff 开关。
要打开的节点在此处定义:https://github.com/saryn/node-red-contrib-sonoff-server/blob/master/node-on/node-on.js。在这段代码中它说
RED.nodes.createNode(node, config);
和
sonoffServer.turnOnDevice(config.device_id);
【问题讨论】:
标签: node-red