diff --git a/nodered/node-red-example-flow.json b/nodered/node-red-example-flow.json index c0b1f56e..9be0bfdb 100644 --- a/nodered/node-red-example-flow.json +++ b/nodered/node-red-example-flow.json @@ -1,12 +1,4 @@ [ - { - "id": "ba6c8bb20b9aa4cc", - "type": "tab", - "label": "NSP_Kueche", - "disabled": false, - "info": "", - "env": [] - }, { "id": "6873c08312276c95", "type": "server-state-changed", @@ -76,7 +68,7 @@ "type": "function", "z": "ba6c8bb20b9aa4cc", "name": "wake&display", - "func": "var out_msgs = \n[ {payload:\"wake\"}, \n {payload: \"pageType,popupLight,Kueche,light.kueche_lights\"} \n]\n\n\n\nreturn [out_msgs]", + "func": "var out_msgs = \n[\n {payload: \"CustomSend pageType~popupLight~Kueche~light.kueche_lights\"} \n]\n\n\n\nreturn [out_msgs]", "outputs": 1, "noerr": 0, "initialize": "if (flow.get(\"ns-currentPage\") === undefined) {\n flow.set(\"ns-currentPage\", 0)\n}", @@ -113,7 +105,7 @@ "type": "function", "z": "ba6c8bb20b9aa4cc", "name": "send notification", - "func": "var out_msgs = \n[ {payload:\"pageType,popupNotify\"}, \n {payload: \"entityUpdateDetail,|updateBerryNoYes|Notification|65535|No|65535|Yes|65535|\"+msg.payload+\"|65535|4\"} \n]\n\nreturn [out_msgs]", + "func": "var out_msgs = \n[ {payload:\"pageType~popupNotify\"}, \n {payload: \"entityUpdateDetail~updateBerryNoYes~Notification~65535~No~65535~Yes~65535~\"+msg.payload+\"~65535~4\"} \n]\n\nreturn [out_msgs]", "outputs": 1, "noerr": 0, "initialize": "if (flow.get(\"ns-currentPage\") === undefined) {\n flow.set(\"ns-currentPage\", 0)\n}", @@ -213,4 +205,4 @@ "willMsg": {}, "sessionExpiry": "" } -] \ No newline at end of file +]