C# Mine
ContentsIndexHome
PreviousUpNext
ThermostatBase.SensorEdit Method

Allows for the update of the specific type of sensor.

Syntax
C#
public static void SensorEdit(ISensor sens, double? heartBeat, double? awareStateHeartBeat, double? CoolingThreshold, double? HeatingThreshold, double? CoolingBuffer, double? HeatingBuffer, double? OccupiedCoolingThreshold, double? OccupiedHeatingThreshold, double? OccupiedCoolingBuffer, double? OccupiedHeatingBuffer, bool? AwareStateTriggers, int? OccupiedTimeout, int? FanControl, int? FanPeriod, int? FanOnInterval, int? FanStartTimeForHeater, int? FanStopTimeForHeater, int? FanStartDelayForCooler, int? FanStopDelayForCooler, out bool hassaved);
Parameters 
Description 
ISensor sens 
sens the Sensor object to be updated  
double? heartBeat 
How often the sensor communicates with the gateway if no activity recorded. 
double? awareStateHeartBeat 
How often the sensor communicates with the gateway while in Aware State. 
double? CoolingThreshold 
Temperature readings above this value will cause the cooler to turn on. 
double? HeatingThreshold 
Temperature readings below this value will cause the heater to turn on. 
double? CoolingBuffer 
The cooler will stay on till the temperature reading is this many degrees below the Cooling Threshold. 
double? HeatingBuffer 
The heater will stay on till the temperature reading is this many degrees above the Heating Threshold. 
double? OccupiedCoolingThreshold 
Temperature readings above this value will cause the cooler to turn on. 
double? OccupiedHeatingThreshold 
Temperature readings below this value will cause the heater to turn on. 
double? OccupiedCoolingBuffer 
The cooler will stay on till the temperature reading is this many degrees below the Cooling Threshold. 
double? OccupiedHeatingBuffer 
The heater will stay on till the temperature reading is this many degrees above the Heating Threshold. 
bool? AwareStateTriggers 
The selected items will force the sensor to become aware and send a data point to iMonnit. 
int? OccupiedTimeout 
The amount of time after the occupied state has been triggered (button press/motion sense/software button) that the system will revert back to the dual threshold settings. 
int? FanControl 
Various control states for the fan. Auto: HVAC system not the thermostat control the fan. Auto+Periodic: Enable configuration to turn the fan of for a period of time at the beinning of a larger period of time. Meant to be used in conjunction with Fan On Period and Fan Auto Period configuration. If a cooling or heating event occurs, the Perodic Fan event time is reset. Active Fan Control: The thermostat actively controls when the fan turns on/off when the heating/cooling is started and stopped. Meant to be used in conjuction with the various Fan Start Time configurations.(Auto = 0, Auto+Periodic = 1, On = 2, Active Fan Control = 3) 
int? FanPeriod 
Amount of time the fan is forced on during the Fan Auto Period. Ex: Fan On Period = 10 minutes, Fan Auto Period = 120 minutes. At the beginning of the 120 minute Auto Period the fan will be forced on for 10 minutes. After 10 minutes the fan will turn off. 120 minutes after the fan was forced on the fan will be forced on again. Fan On Period must be less than Fan Auto Period. 
int? FanOnInterval 
Interval in which Fan On Period works. Fan Auto Period must be greater than Fan On Period. 
int? FanStartTimeForHeater 
Fan starts this amount of time after the heater starts. 
int? FanStopTimeForHeater 
Fan stops this amount of time after the heater stops. 
int? FanStartDelayForCooler 
Fan starts this amount of time after the cooler starts. 
int? FanStopDelayForCooler 
Fan stops this amount of time after the cooler starts. 
Copyright (c) 2017. All rights reserved.
What do you think about this topic? Send feedback!