If using swampd/config.json setting,
the sensorConfig map index is set by here, and when createDbusPassive class, the dbus propertiesChanged signal setting is related to type and id.
This means the "name" in json config have to same as dbus sensor name. If the name setting is different from dbus sensor name, phosphor-pid-control will not do anything when readPath sensor propertiesChanged because of the wrong match.
If using entity-manager setting, there is another a little similar problem.
In EM setting, the sensorConfig map index is set by dbus sensor name, so it is impossible to happen the wrong match.
But if a fan is set as input to multi zones, the sensorConfig map has some problem.
For example:
fan0 set as input to zone0, zone1, and output pwm in zone0 is fan0_pwm, zone1 is fan2_pwm.
The EM setting like below,
Which means after building the sensorConfig map, only exist the second setting(fan0_tach -> fan2_pwm), the first setting(fan0_tach -> fan0_pwm) has been disappeared, the phosphor-pid-control only can set duty cycle to pwm2_tach, cannot set duty cycle to pwm0_tach.
If using swampd/config.json setting, the sensorConfig map index is set by here, and when createDbusPassive class, the dbus propertiesChanged signal setting is related to type and id. This means the "name" in json config have to same as dbus sensor name. If the name setting is different from dbus sensor name, phosphor-pid-control will not do anything when readPath sensor propertiesChanged because of the wrong match.
If using entity-manager setting, there is another a little similar problem. In EM setting, the sensorConfig map index is set by dbus sensor name, so it is impossible to happen the wrong match. But if a fan is set as input to multi zones, the sensorConfig map has some problem. For example: fan0 set as input to zone0, zone1, and output pwm in zone0 is fan0_pwm, zone1 is fan2_pwm. The EM setting like below,
if fan setting transform into using swampd/config.json, will like below
Which means after building the sensorConfig map, only exist the second setting(fan0_tach -> fan2_pwm), the first setting(fan0_tach -> fan0_pwm) has been disappeared, the phosphor-pid-control only can set duty cycle to pwm2_tach, cannot set duty cycle to pwm0_tach.