xref: /openbmc/phosphor-virtual-sensor/virtual_sensor_config.json (revision b4cea1b1004a067be3503c59454aa21e8b369250)
1abcc94faSVijay Khemka[
2abcc94faSVijay Khemka    {
3*27faf7caSPatrick Williams        "Desc": {
4abcc94faSVijay Khemka            "Name": "Virtual_Inlet_Temp",
5f6443742SHarvey Wu            "SensorType": "temperature",
6f6443742SHarvey Wu            "MaxValue": 127.0,
7f6443742SHarvey Wu            "MinValue": -128.0
8abcc94faSVijay Khemka        },
9*27faf7caSPatrick Williams        "Threshold": {
10abcc94faSVijay Khemka            "CriticalHigh": 90,
11abcc94faSVijay Khemka            "CriticalLow": 20,
12abcc94faSVijay Khemka            "WarningHigh": 70,
13abcc94faSVijay Khemka            "WarningLow": 30
14abcc94faSVijay Khemka        },
15*27faf7caSPatrick Williams        "Associations": [
160fcf0e1cSLei YU            [
170fcf0e1cSLei YU                "chassis",
180fcf0e1cSLei YU                "all_sensors",
190fcf0e1cSLei YU                "/xyz/openbmc_project/inventory/system/board/my_board"
200fcf0e1cSLei YU            ]
210fcf0e1cSLei YU        ],
22*27faf7caSPatrick Williams        "Params": {
23*27faf7caSPatrick Williams            "ConstParam": [
24abcc94faSVijay Khemka                {
25abcc94faSVijay Khemka                    "ParamName": "P1",
26abcc94faSVijay Khemka                    "Value": 1.1
27abcc94faSVijay Khemka                }
28abcc94faSVijay Khemka            ],
29*27faf7caSPatrick Williams            "DbusParam": [
30abcc94faSVijay Khemka                {
31abcc94faSVijay Khemka                    "ParamName": "P2",
32*27faf7caSPatrick Williams                    "Desc": {
33abcc94faSVijay Khemka                        "Name": "MB_INLET_TEMP",
34abcc94faSVijay Khemka                        "SensorType": "temperature"
35abcc94faSVijay Khemka                    }
36abcc94faSVijay Khemka                },
37abcc94faSVijay Khemka                {
38abcc94faSVijay Khemka                    "ParamName": "P3",
39*27faf7caSPatrick Williams                    "Desc": {
40abcc94faSVijay Khemka                        "Name": "MB_FAN0_TACH",
41abcc94faSVijay Khemka                        "SensorType": "fan_tach"
42abcc94faSVijay Khemka                    }
43abcc94faSVijay Khemka                }
44abcc94faSVijay Khemka            ]
45abcc94faSVijay Khemka        },
46abcc94faSVijay Khemka        "Expression": "P1 * (P2 + 5 - P3 * 0.01)"
47abcc94faSVijay Khemka    }
48abcc94faSVijay Khemka]
49