To obtain an estimate of the ambient temperature, the device measures the flow temperature every 5 minutes and performs a moving average across the last 30 minutes. It then performs the following computation:
Having established an estimate of the ambient temperature, the device then compares this estimate to the ambient temperature requested by the user. If they are the same, or if the ambient temperature is already moving towards the requested temperature, the device does not move the motor. Otherwise, the device applies a Proportional Controller Gain algorithm to compute the motor movement:
The default value of P is 3. It can be modified via the downlink packet.
The device considers moving the motor every 5 minutes.