wspoon: Handle faulted OCC temp sensors

When a temp sensor provided by the OCC is faulted, set the fans to full
speed(10500 RPMs)

Tested:
    Set Functional property of an OCC provided sensor to `true` and
    fans are set to 10500.
    Fan speeds drop when the same Functional property is set to `false`

Resolves: openbmc/openbmc#2222

Change-Id: Iddd9049fc9677ca587422a5bf4104c0d3787af1a
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-events-config-native/events.yaml b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-events-config-native/events.yaml
index 038e0d8..86a979a 100644
--- a/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-events-config-native/events.yaml
+++ b/meta-openbmc-machines/meta-openpower/meta-ibm/meta-witherspoon/recipes-phosphor/fans/phosphor-fan-control-events-config-native/events.yaml
@@ -368,7 +368,44 @@
             property:
                 name: Functional
                 type: bool
+          - name: zone0_cores
+            zone_conditions:
+                - name: air_cooled_chassis
+                  zones:
+                      - 0
+            interface: xyz.openbmc_project.State.Decorator.OperationalStatus
+            property:
+                name: Functional
+                type: bool
+          - name: zone0_dimms
+            zone_conditions:
+                - name: air_cooled_chassis
+                  zones:
+                      - 0
+            interface: xyz.openbmc_project.State.Decorator.OperationalStatus
+            property:
+                name: Functional
+                type: bool
+          - name: zone0_gpu_cores
+            zone_conditions:
+                - name: air_cooled_chassis
+                  zones:
+                      - 0
+            interface: xyz.openbmc_project.State.Decorator.OperationalStatus
+            property:
+                name: Functional
+                type: bool
+          - name: zone0_gpu_memory
+            zone_conditions:
+                - name: air_cooled_chassis
+                  zones:
+                      - 0
+            interface: xyz.openbmc_project.State.Decorator.OperationalStatus
+            property:
+                name: Functional
+                type: bool
       matches:
+          - name: interfacesAdded
           - name: propertiesChanged
       actions:
           - name: count_state_before_speed
@@ -412,7 +449,17 @@
             property:
                 name: Functional
                 type: bool
+          - name: zone0_dimms
+            zone_conditions:
+                - name: water_and_air_cooled_chassis
+                  zones:
+                      - 0
+            interface: xyz.openbmc_project.State.Decorator.OperationalStatus
+            property:
+                name: Functional
+                type: bool
       matches:
+          - name: interfacesAdded
           - name: propertiesChanged
       actions:
           - name: count_state_before_speed