Add language notifications; Add power door handel
This commit is contained in:
parent
d97d90cf95
commit
0876e73c68
12 changed files with 445 additions and 581 deletions
|
|
@ -49,8 +49,8 @@
|
|||
"component": "wsmqttpublish",
|
||||
"tab": "1612772287426",
|
||||
"name": "WS MQTT publish",
|
||||
"x": 304.75,
|
||||
"y": 237,
|
||||
"x": 281.75,
|
||||
"y": 174,
|
||||
"connections": {
|
||||
"0": [
|
||||
{
|
||||
|
|
@ -69,10 +69,6 @@
|
|||
}
|
||||
],
|
||||
"2": [
|
||||
{
|
||||
"index": "0",
|
||||
"id": "1618300863816"
|
||||
},
|
||||
{
|
||||
"index": "0",
|
||||
"id": "1634303685503"
|
||||
|
|
@ -107,8 +103,8 @@
|
|||
"component": "virtualwirein",
|
||||
"tab": "1612772287426",
|
||||
"name": "tb-push",
|
||||
"x": 86.75,
|
||||
"y": 375,
|
||||
"x": 72.75,
|
||||
"y": 328,
|
||||
"connections": {
|
||||
"0": [
|
||||
{
|
||||
|
|
@ -144,8 +140,8 @@
|
|||
"component": "debug",
|
||||
"tab": "1612772287426",
|
||||
"name": "to TB",
|
||||
"x": 306.75,
|
||||
"y": 371,
|
||||
"x": 283.75,
|
||||
"y": 324,
|
||||
"connections": {},
|
||||
"disabledio": {
|
||||
"input": [
|
||||
|
|
@ -170,8 +166,8 @@
|
|||
"component": "debug",
|
||||
"tab": "1612772287426",
|
||||
"name": "errors from MQTT Broker",
|
||||
"x": 650,
|
||||
"y": 76,
|
||||
"x": 594,
|
||||
"y": 57,
|
||||
"connections": {},
|
||||
"disabledio": {
|
||||
"input": [
|
||||
|
|
@ -270,8 +266,8 @@
|
|||
"component": "debug",
|
||||
"tab": "1611921777196",
|
||||
"name": "Debug",
|
||||
"x": 595.8833312988281,
|
||||
"y": 557.3500061035156,
|
||||
"x": 596.8833312988281,
|
||||
"y": 566.3500061035156,
|
||||
"connections": {},
|
||||
"disabledio": {
|
||||
"input": [],
|
||||
|
|
@ -294,8 +290,8 @@
|
|||
"component": "debug",
|
||||
"tab": "1611921777196",
|
||||
"name": "tempToTb",
|
||||
"x": 598.8833312988281,
|
||||
"y": 654.3500061035156,
|
||||
"x": 595.8833312988281,
|
||||
"y": 658.3500061035156,
|
||||
"connections": {},
|
||||
"disabledio": {
|
||||
"input": [],
|
||||
|
|
@ -318,8 +314,8 @@
|
|||
"component": "virtualwireout",
|
||||
"tab": "1611921777196",
|
||||
"name": "tb-push",
|
||||
"x": 594.8833312988281,
|
||||
"y": 350.25,
|
||||
"x": 597.8833312988281,
|
||||
"y": 377.25,
|
||||
"connections": {},
|
||||
"disabledio": {
|
||||
"input": [],
|
||||
|
|
@ -453,8 +449,8 @@
|
|||
"color": "gray"
|
||||
},
|
||||
"options": {
|
||||
"data": "{line: 3, command: \"turnOff\", force: true}",
|
||||
"datatype": "object"
|
||||
"datatype": "object",
|
||||
"data": "{line: 3, command: \"turnOff\", force: true}"
|
||||
},
|
||||
"color": "#F6BB42",
|
||||
"notes": ""
|
||||
|
|
@ -505,8 +501,8 @@
|
|||
"color": "gray"
|
||||
},
|
||||
"options": {
|
||||
"datatype": "string",
|
||||
"data": "profile_nodes"
|
||||
"data": "profile_nodes",
|
||||
"datatype": "string"
|
||||
},
|
||||
"color": "#F6BB42",
|
||||
"notes": ""
|
||||
|
|
@ -545,8 +541,8 @@
|
|||
"component": "debug",
|
||||
"tab": "1612772287426",
|
||||
"name": "wsmqtt-exit1",
|
||||
"x": 650.8833312988281,
|
||||
"y": 160,
|
||||
"x": 597.8833312988281,
|
||||
"y": 149,
|
||||
"connections": {},
|
||||
"disabledio": {
|
||||
"input": [],
|
||||
|
|
@ -564,32 +560,6 @@
|
|||
"color": "#967ADC",
|
||||
"notes": ""
|
||||
},
|
||||
{
|
||||
"id": "1618300863816",
|
||||
"component": "debug",
|
||||
"tab": "1612772287426",
|
||||
"name": "wsmqtt-exit2",
|
||||
"x": 845.8833312988281,
|
||||
"y": 320,
|
||||
"connections": {},
|
||||
"disabledio": {
|
||||
"input": [
|
||||
0
|
||||
],
|
||||
"output": []
|
||||
},
|
||||
"state": {
|
||||
"text": "Enabled",
|
||||
"color": "gray"
|
||||
},
|
||||
"options": {
|
||||
"type": "data",
|
||||
"repository": false,
|
||||
"enabled": true
|
||||
},
|
||||
"color": "#967ADC",
|
||||
"notes": ""
|
||||
},
|
||||
{
|
||||
"id": "1618393583970",
|
||||
"component": "virtualwireout",
|
||||
|
|
@ -701,8 +671,8 @@
|
|||
"component": "virtualwireout",
|
||||
"tab": "1612772287426",
|
||||
"name": "platform-rpc-call",
|
||||
"x": 649.8833312988281,
|
||||
"y": 246,
|
||||
"x": 597.8833312988281,
|
||||
"y": 247,
|
||||
"connections": {},
|
||||
"disabledio": {
|
||||
"input": [],
|
||||
|
|
@ -742,8 +712,8 @@
|
|||
"color": "gray"
|
||||
},
|
||||
"options": {
|
||||
"datatype": "object",
|
||||
"data": "{line: 1, command: \"turnOn\", force: true}"
|
||||
"data": "{line: 1, command: \"turnOn\", force: true}",
|
||||
"datatype": "object"
|
||||
},
|
||||
"color": "#F6BB42",
|
||||
"notes": ""
|
||||
|
|
@ -872,8 +842,8 @@
|
|||
"color": "gray"
|
||||
},
|
||||
"options": {
|
||||
"data": "{command: \"turnOnAlarm\"}",
|
||||
"datatype": "object"
|
||||
"datatype": "object",
|
||||
"data": "{command: \"turnOnAlarm\"}"
|
||||
},
|
||||
"color": "#F6BB42",
|
||||
"notes": ""
|
||||
|
|
@ -902,8 +872,8 @@
|
|||
"color": "gray"
|
||||
},
|
||||
"options": {
|
||||
"data": "{command: \"turnOffAlarm\"}",
|
||||
"datatype": "object"
|
||||
"datatype": "object",
|
||||
"data": "{command: \"turnOffAlarm\"}"
|
||||
},
|
||||
"color": "#F6BB42",
|
||||
"notes": ""
|
||||
|
|
@ -913,8 +883,8 @@
|
|||
"component": "virtualwireout",
|
||||
"tab": "1611921777196",
|
||||
"name": "modbus_to_dido",
|
||||
"x": 596,
|
||||
"y": 462,
|
||||
"x": 599,
|
||||
"y": 471,
|
||||
"connections": {},
|
||||
"disabledio": {
|
||||
"input": [],
|
||||
|
|
@ -1039,7 +1009,7 @@
|
|||
"output": []
|
||||
},
|
||||
"state": {
|
||||
"text": "795.21 MB / 987.80 MB",
|
||||
"text": "843.78 MB / 985.68 MB",
|
||||
"color": "gray"
|
||||
},
|
||||
"options": {
|
||||
|
|
@ -1069,7 +1039,7 @@
|
|||
"output": []
|
||||
},
|
||||
"state": {
|
||||
"text": "5.50 GB / 7.26 GB",
|
||||
"text": "5.68 GB / 7.26 GB",
|
||||
"color": "gray"
|
||||
},
|
||||
"options": {
|
||||
|
|
@ -1140,8 +1110,8 @@
|
|||
"component": "virtualwireout",
|
||||
"tab": "1612772287426",
|
||||
"name": "send-to-services",
|
||||
"x": 650.8833312988281,
|
||||
"y": 355.5,
|
||||
"x": 600.8833312988281,
|
||||
"y": 341.5,
|
||||
"connections": {},
|
||||
"disabledio": {
|
||||
"input": [],
|
||||
|
|
@ -1163,8 +1133,8 @@
|
|||
"tab": "1612772287426",
|
||||
"name": "192.168.252.2:8004/sentmessage",
|
||||
"reference": "",
|
||||
"x": 480.8833312988281,
|
||||
"y": 1334.7333374023438,
|
||||
"x": 506.8833312988281,
|
||||
"y": 1331.7333374023438,
|
||||
"connections": {
|
||||
"0": [
|
||||
{
|
||||
|
|
@ -1182,9 +1152,9 @@
|
|||
"color": "gray"
|
||||
},
|
||||
"options": {
|
||||
"stringify": "json",
|
||||
"url": "http://192.168.252.2:8004/sentmessage",
|
||||
"method": "POST",
|
||||
"url": "http://192.168.252.2:8004/sentmessage"
|
||||
"stringify": "json"
|
||||
},
|
||||
"color": "#5D9CEC",
|
||||
"notes": ""
|
||||
|
|
@ -1194,8 +1164,8 @@
|
|||
"component": "debug",
|
||||
"tab": "1612772287426",
|
||||
"name": "Debug",
|
||||
"x": 280.75,
|
||||
"y": 1446,
|
||||
"x": 305.75,
|
||||
"y": 1442,
|
||||
"connections": {},
|
||||
"disabledio": {
|
||||
"input": [
|
||||
|
|
@ -1403,7 +1373,7 @@
|
|||
"component": "debug",
|
||||
"tab": "1612772287426",
|
||||
"name": "Send info",
|
||||
"x": 480,
|
||||
"x": 513,
|
||||
"y": 1441,
|
||||
"connections": {},
|
||||
"disabledio": {
|
||||
|
|
@ -1429,8 +1399,8 @@
|
|||
"component": "infosender",
|
||||
"tab": "1612772287426",
|
||||
"name": "Info sender",
|
||||
"x": 285,
|
||||
"y": 1338,
|
||||
"x": 301,
|
||||
"y": 1336,
|
||||
"connections": {
|
||||
"0": [
|
||||
{
|
||||
|
|
@ -1462,8 +1432,8 @@
|
|||
"component": "debug",
|
||||
"tab": "1612772287426",
|
||||
"name": "Debug",
|
||||
"x": 795.8833312988281,
|
||||
"y": 1329.5,
|
||||
"x": 837.8833312988281,
|
||||
"y": 1325.5,
|
||||
"connections": {},
|
||||
"disabledio": {
|
||||
"input": [
|
||||
|
|
@ -1525,7 +1495,7 @@
|
|||
"output": []
|
||||
},
|
||||
"state": {
|
||||
"text": "1.2% / 70.53 MB",
|
||||
"text": "2% / 86.44 MB",
|
||||
"color": "gray"
|
||||
},
|
||||
"options": {
|
||||
|
|
@ -1885,8 +1855,8 @@
|
|||
"component": "debug",
|
||||
"tab": "1611921777196",
|
||||
"name": "MDBToTb",
|
||||
"x": 759,
|
||||
"y": 313,
|
||||
"x": 766,
|
||||
"y": 324,
|
||||
"connections": {},
|
||||
"disabledio": {
|
||||
"input": [],
|
||||
|
|
@ -1909,8 +1879,8 @@
|
|||
"component": "code",
|
||||
"tab": "1611921777196",
|
||||
"name": "device-status",
|
||||
"x": 755.0833282470703,
|
||||
"y": 209,
|
||||
"x": 764.0833282470703,
|
||||
"y": 222,
|
||||
"connections": {
|
||||
"0": [
|
||||
{
|
||||
|
|
@ -1932,9 +1902,9 @@
|
|||
"color": "gray"
|
||||
},
|
||||
"options": {
|
||||
"outputs": 1,
|
||||
"keepmessage": true,
|
||||
"code": "if(value.hasOwnProperty(\"status\"))\n{\n\tif(value.status.includes(\"-em\"))\n\t{\n\t\tsend(0, {\"em_status\": \"NOK\"});\n\t}\n\telse if(value.status.includes(\"twilight\"))\n\t{\n\t\tsend(0, {\"lux_sensor\": \"NOK\"});\n\t}\n\telse if(value.status === \"NOK-thermometer\")\n\t{\n\t\tsend(0, {\"thermometer\": \"NOK\"});\n\t}\n}\n\nif(value.hasOwnProperty(\"values\"))\n{\n\tif(value.values.hasOwnProperty(\"twilight_sensor\"))\n\t{\n\t\tsend(0, {\"lux_sensor\": \"OK\"});\n\t}\n\telse if(value.values.hasOwnProperty(\"Phase_1_power\") ||\n\t\t\tvalue.values.hasOwnProperty(\"Phase_1_voltage\") ||\n\t\t\tvalue.values.hasOwnProperty(\"Total_power\") ||\n\t\t\tvalue.values.hasOwnProperty(\"Phase_1_current\"))\n\t{\n\t\tsend(0, {\"em_status\": \"OK\"});\n\t}\n\telse if(value.values.hasOwnProperty(\"temperature\"))\n\t{\n\t\tsend(0, {\"thermometer\": \"OK\"});\n\t}\n}",
|
||||
"keepmessage": true
|
||||
"outputs": 1
|
||||
},
|
||||
"color": "#656D78",
|
||||
"notes": ""
|
||||
|
|
@ -1945,7 +1915,7 @@
|
|||
"tab": "1611921777196",
|
||||
"name": "modbus service",
|
||||
"x": 966.0833282470703,
|
||||
"y": 152,
|
||||
"y": 165,
|
||||
"connections": {},
|
||||
"disabledio": {
|
||||
"input": [
|
||||
|
|
@ -2048,7 +2018,7 @@
|
|||
"tag_on_include": "[{\"user_id\":\"U072JE5JUQG\", \"includes\":[\"Electrometer\", \"Twilight sensor\"]}]",
|
||||
"message_includes": "[\"is responding again\", \"Flow has been restarted\", \"Node db has changed\"]",
|
||||
"types": "[\"emergency\", \"critical\", \"error\", \"alert\"]",
|
||||
"name": "rvo_senica_20_10.0.0.113"
|
||||
"name": ""
|
||||
},
|
||||
"color": "#30E193",
|
||||
"notes": ""
|
||||
|
|
@ -2077,9 +2047,9 @@
|
|||
"color": "gray"
|
||||
},
|
||||
"options": {
|
||||
"stringify": "json",
|
||||
"url": "http://192.168.252.2:8004/slack",
|
||||
"method": "POST",
|
||||
"url": "http://192.168.252.2:8004/slack"
|
||||
"stringify": "json"
|
||||
},
|
||||
"color": "#5D9CEC",
|
||||
"notes": ""
|
||||
|
|
@ -2134,8 +2104,8 @@
|
|||
"color": "gray"
|
||||
},
|
||||
"options": {
|
||||
"datatype": "object",
|
||||
"data": "{ \"g9OxBZ5KRwNznlY6pAppqEAWXvjdEL4eGQobMDy2\": [ { \"ts\": 1716289039281, \"values\": { \"_event\": { \"type\": \"alert\", \"status\": \"new\", \"source\": { \"func\": \"CMD Manager: process cmd\", \"component\": \"1619515097737\", \"component_name\": \"CMD Manager\", \"edge\": \"g9OxBZ5KRwNznlY6pAppqEAWXvjdEL4eGQobMDy2\" }, \"message\": \"NOW CONNECTED TO SLACK !\", \"message_data\": \"\" } } } ] }"
|
||||
"data": "{ \"g9OxBZ5KRwNznlY6pAppqEAWXvjdEL4eGQobMDy2\": [ { \"ts\": 1716289039281, \"values\": { \"_event\": { \"type\": \"alert\", \"status\": \"new\", \"source\": { \"func\": \"CMD Manager: process cmd\", \"component\": \"1619515097737\", \"component_name\": \"CMD Manager\", \"edge\": \"g9OxBZ5KRwNznlY6pAppqEAWXvjdEL4eGQobMDy2\" }, \"message\": \"NOW CONNECTED TO SLACK !\", \"message_data\": \"\" } } } ] }",
|
||||
"datatype": "object"
|
||||
},
|
||||
"color": "#F6BB42",
|
||||
"notes": ""
|
||||
|
|
@ -2145,7 +2115,7 @@
|
|||
"component": "virtualwireout",
|
||||
"tab": "1612772287426",
|
||||
"name": "platform-rpc-call",
|
||||
"x": 649.9333343505859,
|
||||
"x": 599.9333343505859,
|
||||
"y": 541.3500061035156,
|
||||
"connections": {},
|
||||
"disabledio": {
|
||||
|
|
@ -2167,8 +2137,8 @@
|
|||
"component": "debug",
|
||||
"tab": "1612772287426",
|
||||
"name": "rpc cloud",
|
||||
"x": 650.9333343505859,
|
||||
"y": 451.3500061035156,
|
||||
"x": 601.9333343505859,
|
||||
"y": 440.3500061035156,
|
||||
"connections": {},
|
||||
"disabledio": {
|
||||
"input": [],
|
||||
|
|
@ -2191,8 +2161,8 @@
|
|||
"component": "virtualwirein",
|
||||
"tab": "1612772287426",
|
||||
"name": "db-init",
|
||||
"x": 90.75,
|
||||
"y": 250,
|
||||
"x": 75.75,
|
||||
"y": 184,
|
||||
"connections": {
|
||||
"0": [
|
||||
{
|
||||
|
|
@ -2219,9 +2189,9 @@
|
|||
"id": "1731068754606",
|
||||
"component": "cloudmqttconnect",
|
||||
"tab": "1612772287426",
|
||||
"name": "MQTT client - to senica-prod01",
|
||||
"x": 304.75,
|
||||
"y": 474,
|
||||
"name": "MQTT to senica-prod01",
|
||||
"x": 284.75,
|
||||
"y": 452,
|
||||
"connections": {
|
||||
"1": [
|
||||
{
|
||||
|
|
@ -2257,14 +2227,20 @@
|
|||
"component": "db_init",
|
||||
"tab": "1612772287426",
|
||||
"name": "DB Initialization",
|
||||
"x": 91.75,
|
||||
"y": 55.25,
|
||||
"x": 1003.75,
|
||||
"y": 240.25,
|
||||
"connections": {
|
||||
"0": [
|
||||
{
|
||||
"index": "0",
|
||||
"id": "1731069033416"
|
||||
}
|
||||
],
|
||||
"1": [
|
||||
{
|
||||
"index": "0",
|
||||
"id": "1747561603739"
|
||||
}
|
||||
]
|
||||
},
|
||||
"disabledio": {
|
||||
|
|
@ -2284,8 +2260,8 @@
|
|||
"component": "virtualwireout",
|
||||
"tab": "1612772287426",
|
||||
"name": "db-init",
|
||||
"x": 343.75,
|
||||
"y": 50.25,
|
||||
"x": 1244.75,
|
||||
"y": 233.25,
|
||||
"connections": {},
|
||||
"disabledio": {
|
||||
"input": [],
|
||||
|
|
@ -2798,7 +2774,7 @@
|
|||
"tab": "1611921777196",
|
||||
"name": "tempToDido",
|
||||
"x": 594.8833312988281,
|
||||
"y": 745,
|
||||
"y": 753,
|
||||
"connections": {},
|
||||
"disabledio": {
|
||||
"input": [],
|
||||
|
|
@ -2821,8 +2797,8 @@
|
|||
"component": "virtualwirein",
|
||||
"tab": "1612772287426",
|
||||
"name": "db-init",
|
||||
"x": 86.75,
|
||||
"y": 495,
|
||||
"x": 72.75,
|
||||
"y": 474,
|
||||
"connections": {
|
||||
"0": [
|
||||
{
|
||||
|
|
@ -2844,6 +2820,48 @@
|
|||
},
|
||||
"color": "#303E4D",
|
||||
"notes": ""
|
||||
},
|
||||
{
|
||||
"id": "1747561603739",
|
||||
"component": "virtualwireout",
|
||||
"tab": "1612772287426",
|
||||
"name": "send-to-services",
|
||||
"x": 1243.8833312988281,
|
||||
"y": 334.5,
|
||||
"connections": {},
|
||||
"disabledio": {
|
||||
"input": [],
|
||||
"output": []
|
||||
},
|
||||
"state": {
|
||||
"text": "send-to-services",
|
||||
"color": "gray"
|
||||
},
|
||||
"options": {
|
||||
"wirename": "send-to-services"
|
||||
},
|
||||
"color": "#303E4D",
|
||||
"notes": ""
|
||||
},
|
||||
{
|
||||
"id": "1747562867845",
|
||||
"component": "comment",
|
||||
"tab": "1612772287426",
|
||||
"name": "FLOW STARTING POINT",
|
||||
"x": 1003.5666656494141,
|
||||
"y": 178,
|
||||
"connections": {},
|
||||
"disabledio": {
|
||||
"input": [],
|
||||
"output": []
|
||||
},
|
||||
"state": {
|
||||
"text": "",
|
||||
"color": "gray"
|
||||
},
|
||||
"options": {},
|
||||
"color": "#704cff",
|
||||
"notes": ""
|
||||
}
|
||||
],
|
||||
"version": 615
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue