Fix StatusNonPowered Docked-East

This commit is contained in:
beka makharadze 2025-07-01 11:55:21 +04:00
parent a341670602
commit 81e6d7be7c

View File

@ -6,7 +6,8 @@
"MCM03", "MCM03",
"MCM04", "MCM04",
"MCM05", "MCM05",
"MCM06" "MCM06",
"MCM07"
], ],
"running_state": -1, "running_state": -1,
"state": 0, "state": 0,
@ -461,12 +462,12 @@
}, },
"transforms": [ "transforms": [
{ {
"fallback": "#000000", "fallback": "#FFFFFF",
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": "FULL", "input": "FULL",
"output": "#FFFFFF" "output": "#D5D5D5"
}, },
{ {
"input": "NOT FULL", "input": "NOT FULL",
@ -493,16 +494,20 @@
}, },
"transforms": [ "transforms": [
{ {
"expression": "coalesce({value},{view.params.forceFaultStatus},0)", "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression" "type": "expression"
}, },
{ {
"fallback": "NOT FULL", "fallback": "UNKNOWN",
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": 1, "input": 1,
"output": "FULL" "output": "FULL"
},
{
"input": 0,
"output": "NOT FULL"
} }
], ],
"outputType": "scalar", "outputType": "scalar",
@ -610,15 +615,15 @@
}, },
"transforms": [ "transforms": [
{ {
"fallback": "#000000", "fallback": "#FFFFFF",
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": "DISABLED", "input": "TRUE",
"output": "#FFFFFF" "output": "#D5D5D5"
}, },
{ {
"input": "ENABLED", "input": "FALSE",
"output": "#D5D5D5" "output": "#D5D5D5"
} }
], ],
@ -642,16 +647,20 @@
}, },
"transforms": [ "transforms": [
{ {
"expression": "coalesce({value},{view.params.forceFaultStatus},0)", "expression": "coalesce({value},{view.params.forceFaultStatus}, \"UNKNOWN\")",
"type": "expression" "type": "expression"
}, },
{ {
"fallback": "ENABLED", "fallback": "UNKNOWN",
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": 1, "input": 1,
"output": "DISABLED" "output": "TRUE"
},
{
"input": 0,
"output": "FALSE"
} }
], ],
"outputType": "scalar", "outputType": "scalar",
@ -672,12 +681,12 @@
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": "ENABLED", "input": "TRUE",
"output": "#47FF47" "output": "#FF0000"
}, },
{ {
"input": "DISABLED", "input": "FALSE",
"output": "#FF0000" "output": "#47FF47"
} }
], ],
"outputType": "color", "outputType": "color",
@ -797,12 +806,12 @@
}, },
"transforms": [ "transforms": [
{ {
"fallback": "#000000", "fallback": "#FFFFFF",
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": "HALF FULL", "input": "HALF FULL",
"output": "#FFFFFF" "output": "#D5D5D5"
}, },
{ {
"input": "NOT HALF FULL", "input": "NOT HALF FULL",
@ -829,16 +838,20 @@
}, },
"transforms": [ "transforms": [
{ {
"expression": "coalesce({value},{view.params.forceFaultStatus},0)", "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression" "type": "expression"
}, },
{ {
"fallback": "NOT HALF FULL", "fallback": "UNKNOWN",
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": 1, "input": 1,
"output": "HALF FULL" "output": "HALF FULL"
},
{
"input": 0,
"output": "NOT HALF FULL"
} }
], ],
"outputType": "scalar", "outputType": "scalar",
@ -860,7 +873,7 @@
"mappings": [ "mappings": [
{ {
"input": "HALF FULL", "input": "HALF FULL",
"output": "#7F83FF" "output": "#FFF000"
}, },
{ {
"input": "NOT HALF FULL", "input": "NOT HALF FULL",
@ -984,12 +997,12 @@
}, },
"transforms": [ "transforms": [
{ {
"fallback": "#000000", "fallback": "#FFFFFF",
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": "JAMMED", "input": "JAMMED",
"output": "#FFFFFF" "output": "#D5D5D5"
}, },
{ {
"input": "NOT JAMMED", "input": "NOT JAMMED",
@ -1016,16 +1029,20 @@
}, },
"transforms": [ "transforms": [
{ {
"expression": "coalesce({value},{view.params.forceFaultStatus},0)", "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression" "type": "expression"
}, },
{ {
"fallback": "NOT JAMMED", "fallback": "UNKNOWN",
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": 1, "input": 1,
"output": "JAMMED" "output": "JAMMED"
},
{
"input": 0,
"output": "NOT JAMMED"
} }
], ],
"outputType": "scalar", "outputType": "scalar",
@ -1171,12 +1188,12 @@
}, },
"transforms": [ "transforms": [
{ {
"fallback": "#000000", "fallback": "#FFFFFF",
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": "NO CONTAINER", "input": "NO CONTAINER",
"output": "#FFFFFF" "output": "#D5D5D5"
}, },
{ {
"input": "CONTAINER PRESENT", "input": "CONTAINER PRESENT",
@ -1199,20 +1216,24 @@
"0": "{view.params.tagProps[0]}", "0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}" "fc": "{session.custom.fc}"
}, },
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/No Container" "tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/No_Container"
}, },
"transforms": [ "transforms": [
{ {
"expression": "coalesce({value},{view.params.forceFaultStatus},0)", "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression" "type": "expression"
}, },
{ {
"fallback": "CONTAINER PRESENT", "fallback": "UNKNOWN",
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": 1, "input": 1,
"output": "NO CONTAINER" "output": "NO CONTAINER"
},
{
"input": 0,
"output": "CONTAINER PRESENT"
} }
], ],
"outputType": "scalar", "outputType": "scalar",
@ -1354,12 +1375,12 @@
}, },
"transforms": [ "transforms": [
{ {
"fallback": "#000000", "fallback": "#FFFFFF",
"inputType": "scalar", "inputType": "scalar",
"mappings": [ "mappings": [
{ {
"input": "READY", "input": "READY",
"output": "#FFFFFF" "output": "#D5D5D5"
}, },
{ {
"input": "ENABLED", "input": "ENABLED",
@ -1553,33 +1574,9 @@
"props.style.backgroundColor": { "props.style.backgroundColor": {
"binding": { "binding": {
"config": { "config": {
"fallbackDelay": 2.5, "expression": "if(\r\n {this.props.enabled} \u003d False,\r\n \"#BB5050\",\r\n if(\r\n {this.props.text} \u003d \"DISABLE\",\r\n \"#FF0000\",\r\n if(\r\n {this.props.text} \u003d \"ENABLE\",\r\n \"#C9FCC0\",\r\n \"#FFFFFF\"\r\n )\r\n )\r\n)\r\n"
"mode": "indirect",
"references": {
"0": "{view.params.tagProps[0]}",
"fc": "{session.custom.fc}"
},
"tagPath": "[{fc}_SCADA_TAG_PROVIDER]{0}/Alarm/Disabled"
}, },
"transforms": [ "type": "expr"
{
"expression": "coalesce({value},{view.params.forceFaultStatus},0)",
"type": "expression"
},
{
"fallback": "#FF0000",
"inputType": "scalar",
"mappings": [
{
"input": 1,
"output": "#C9FCC0"
}
],
"outputType": "color",
"type": "map"
}
],
"type": "tag"
} }
}, },
"props.style.color": { "props.style.color": {
@ -1627,7 +1624,7 @@
}, },
"transforms": [ "transforms": [
{ {
"expression": "coalesce({value},{view.params.forceFaultStatus},0)", "expression": "coalesce({value},{view.params.forceFaultStatus},\"UNKNOWN\")",
"type": "expression" "type": "expression"
}, },
{ {
@ -1637,6 +1634,10 @@
{ {
"input": 1, "input": 1,
"output": "ENABLE" "output": "ENABLE"
},
{
"input": 0,
"output": "DISABLE"
} }
], ],
"outputType": "scalar", "outputType": "scalar",