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