Fix priorities

This commit is contained in:
b.makharadze 2025-06-13 15:42:03 +04:00
parent f8d22160d6
commit eb2cc91911
2 changed files with 393 additions and 1150 deletions

View File

@ -1,10 +1,11 @@
{ {
"custom": { "custom": {
"alarm_message": null,
"disconnected": true, "disconnected": true,
"plc": "value", "plc": "value",
"priority": 0, "priority": 0,
"priority_string": "No Active Alarms", "priority_string": "Medium",
"searchId": "value", "searchId": "PLC01",
"state": 0, "state": 0,
"state_string": "Disabled" "state_string": "Disabled"
}, },
@ -113,11 +114,11 @@
"mappings": [ "mappings": [
{ {
"input": 0, "input": 0,
"output": "No Active Alarms" "output": "Medium"
}, },
{ {
"input": 1, "input": 1,
"output": "Low" "output": "No Active Alarms"
}, },
{ {
"input": 2, "input": 2,
@ -173,7 +174,7 @@
"custom.state_string": { "custom.state_string": {
"binding": { "binding": {
"config": { "config": {
"expression": "case({view.custom.state},\r\n0, \"Disabled\",\r\n1, \"Enabled\",\r\n2, \"Half Full\",\r\n3, \"Full\",\r\n4, \"Jam\",\r\n\"Unknown\")" "expression": "case({view.custom.state},\r\n0, \"Disabled\",\r\n1, \"Enabled\",\r\n2, \"Half Full\",\r\n3, \"Full\",\r\n4, \"Jammed\",\r\n\"Unknown\")"
}, },
"type": "expr" "type": "expr"
}, },
@ -333,7 +334,7 @@
"mappings": [ "mappings": [
{ {
"input": 1, "input": 1,
"output": "Alarms-Styles/Low" "output": "Alarms-Styles/NoAlarm"
}, },
{ {
"input": 2, "input": 2,
@ -346,6 +347,10 @@
{ {
"input": 4, "input": 4,
"output": "Alarms-Styles/High" "output": "Alarms-Styles/High"
},
{
"input": 0,
"output": "Alarms-Styles/Medium"
} }
], ],
"outputType": "style-list", "outputType": "style-list",

File diff suppressed because it is too large Load Diff