/// <summary> /// Sets the AndWhenVacated state /// </summary> /// <param name="state"></param> public void SetAndWhenVacatedState(bool state) { if (state) { OccSensor.AndWhenVacated(); } }
/// <summary> /// Enables or disables the Ultrasonic B sensor /// </summary> /// <param name="state"></param> public void SetUsBEnable(bool state) { if (state) { OccSensor.EnableUltrasonicSensorSideB(); } else { OccSensor.DisableUltrasonicSensorSideB(); } }
public void EnableRawStates(bool state) { if (state) { OccSensor.EnableRawStates(); } else { OccSensor.DisableRawStates(); } }
/// <summary> /// Enables or disables short timeout based on state /// </summary> /// <param name="state"></param> public void SetShortTimeoutState(bool state) { if (state) { OccSensor.EnableShortTimeout(); } else { OccSensor.DisableShortTimeout(); } }
/// <summary> /// Enables or disables the LED Flash /// </summary> /// <param name="state"></param> public void SetLedFlashEnable(bool state) { if (state) { OccSensor.EnableLedFlash(); } else { OccSensor.DisableLedFlash(); } }
/// <summary> /// Enables or disables the PIR sensor /// </summary> /// <param name="state"></param> public void SetPirEnable(bool state) { if (state) { OccSensor.EnablePassiveInfraredSensor(); } else { OccSensor.DisablePassiveInfraredSensor(); } }
public void ForceVacant() { OccSensor.ForceVacant(); }
public void ForceOccupied() { OccSensor.ForceOccupied(); }