智能家居HomeAssistant使用Node-RED的change節(jié)點(diǎn)的教程(五)
今天來(lái)說(shuō)【智能家居HomeAssistant使用Node-RED的change節(jié)點(diǎn)的教程】?jī)?nèi)容
change節(jié)點(diǎn),用于操作消息體中某些變量,可以根據(jù)規(guī)則,對(duì)msg.payload的值進(jìn)行“設(shè)定,修改,刪除,轉(zhuǎn)移”變量,替換msg.payload的值將其中的字母a替換為b等等。

[{"id":"322871f70e871937","type":"tab","label":"daochu","disabled":false,"info":"","env":[]},{"id":"3cd7625b678ee369","type":"change","z":"322871f70e871937","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"F","fromt":"str","to":"M","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":430,"y":400,"wires":[["06e4d1f8790ea8f9"]]},{"id":"8aa3aef8b725ea65","type":"inject","z":"322871f70e871937","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"aFZ","payloadType":"str","x":190,"y":400,"wires":[["3cd7625b678ee369"]]},{"id":"06e4d1f8790ea8f9","type":"debug","z":"322871f70e871937","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":690,"y":400,"wires":[]}]
以上就是【智能家居HomeAssistant使用Node-RED的change節(jié)點(diǎn)的教程】?jī)?nèi)容
-?END?-
免責(zé)聲明:1.部分文字圖片素材都是通過(guò)網(wǎng)絡(luò)等公開渠道獲得。2.版權(quán)歸原作者所有!
本號(hào)不對(duì)涉及版權(quán)問(wèn)題負(fù)法律責(zé)任!若版權(quán)方認(rèn)為本號(hào)侵權(quán),請(qǐng)立即通知本號(hào),提供相關(guān)證實(shí)材料。若版權(quán)屬實(shí),本號(hào)將在24小時(shí)內(nèi)刪除相關(guān)資源,謝謝配合。