mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2026-02-17 18:36:59 +01:00
Update example flow with new messgae format
This commit is contained in:
@@ -1,12 +1,4 @@
|
|||||||
[
|
[
|
||||||
{
|
|
||||||
"id": "ba6c8bb20b9aa4cc",
|
|
||||||
"type": "tab",
|
|
||||||
"label": "NSP_Kueche",
|
|
||||||
"disabled": false,
|
|
||||||
"info": "",
|
|
||||||
"env": []
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"id": "6873c08312276c95",
|
"id": "6873c08312276c95",
|
||||||
"type": "server-state-changed",
|
"type": "server-state-changed",
|
||||||
@@ -76,7 +68,7 @@
|
|||||||
"type": "function",
|
"type": "function",
|
||||||
"z": "ba6c8bb20b9aa4cc",
|
"z": "ba6c8bb20b9aa4cc",
|
||||||
"name": "wake&display",
|
"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,
|
"outputs": 1,
|
||||||
"noerr": 0,
|
"noerr": 0,
|
||||||
"initialize": "if (flow.get(\"ns-currentPage\") === undefined) {\n flow.set(\"ns-currentPage\", 0)\n}",
|
"initialize": "if (flow.get(\"ns-currentPage\") === undefined) {\n flow.set(\"ns-currentPage\", 0)\n}",
|
||||||
@@ -113,7 +105,7 @@
|
|||||||
"type": "function",
|
"type": "function",
|
||||||
"z": "ba6c8bb20b9aa4cc",
|
"z": "ba6c8bb20b9aa4cc",
|
||||||
"name": "send notification",
|
"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,
|
"outputs": 1,
|
||||||
"noerr": 0,
|
"noerr": 0,
|
||||||
"initialize": "if (flow.get(\"ns-currentPage\") === undefined) {\n flow.set(\"ns-currentPage\", 0)\n}",
|
"initialize": "if (flow.get(\"ns-currentPage\") === undefined) {\n flow.set(\"ns-currentPage\", 0)\n}",
|
||||||
|
|||||||
Reference in New Issue
Block a user