Skip to main content

The Algorithm

Homsai cycle

Homsai's mission is to maximize the use of self-produced energy, giving priority to the charge cycle of any storage device. To do this, it maintains a list of HVAC devices of which various information is saved, such as the Status and Expected Consumption.

HVAC List

The Expected Consumption is used to decide whether or not to turn on a device when there is an energy surplus. On the other hand, for switching off, the measured Real Consumption is used, updated instant by instant during the operation cycle.

HVAC Parameters

Homsai always improves the knowledge of the HVAC devices in your home, learning parameters such as Real Consumption or the Climatic Curve of the rooms.

Homsai Decisional Flow

If you want to know the details of the Homsai decisional algorithm, here it is:

Every 15 minutes Homsai:

  1. Reads the Photovoltaic Production PP sensor
  2. Reads the House Consumption HC sensor
  3. Reads the Battery Absorption BA sensor (if present)
  4. Calculate the Available Power AP as PP - HC - BA
  5. If the Available Power AP is greater than 0:
    1. Check if there are any Climate Entities turned off
    2. The list of climate entities off is processed by Homsai AI based algorithm
    3. The list of selected climate entities is sorted by desired temperature, the entities that have a greater temperature difference are processed first
    4. For each Entity E it is evaluated if the expected consumption is less than the Available Power AP, in the case E it is activated and the consumption of E subtracted from the Available Power AP
    5. Entities are processed as long as PD is positive
  6. If the Available Power AP is less than 0:
    1. Check if there are any Climate Entities turned on
    2. The list of climate entities on is sorted by desired temperature, the entities that have a smaller temperature difference are processed first
    3. Each entity E is deactivated, and the consumption of E added to the Available Power AP
    4. Entities processed as long as PD is negative