Skip to content
autopower_developer edited this page Nov 20, 2018 · 11 revisions

How profiles works (Beta)

You must modify python code, by modyfing self.day or self.temp variables in t3_var.py file in ~/thermeq3 directory you can use profiles. You must also change bridge value profile from normal to:

  • time for using self.day table or
  • temp to use self.temp table.

Then you must edit bridge variable profile from normal to temp or time to use profiles feature. To use beta functionality you must set bridge variable beta from NO to YES.

Time based profile

self.day = [["00:00", "06:00", 34, "per", 180, 2],
            ["06:00", "10:00", 36, "per", 90, 2],
            ["10:00", "16:00", 38, "per", 120, 2],
            ["16:00", "22:00", 36, "per", 90, 2],
            ["22:00", "23:59", 34, "per", 120, 2]]

Day table values in list are:

  • <start_time>: when profile starts, e.g. first profile start at 00:00
  • <end_time>: when profile ends, e.g. 06:00
  • <valve_switch>: switch percent for valve, when valve is counted, 34%
  • <preference_switch>: what preference mode is used, total or per, e.g. per
  • <check_interval>: how often are valves checked, ins seconds: e.g. 180 sec
  • <valve_num>: how many valves must be over <valve_switch>

Temp based profile

Temp table functionality relies on outside temperature from Yahoo or OWM services. Please setup your location in config file!

self.temp = [[-30, -20, 20, "per", 90, 2],
            [-20, -10, 25, "per", 120, 2],
            [-10, 0, 28, "per", 120, 2],
            [0, 10, 30, "per", 180, 2],
            [10, 20, 40, "per", 240, 2]]

Temp table values in list are:

  • <start_temp>: when profile starts, e.g. first profile start at -30 degC
  • <end_temp>: when profile ends, e.g. -20 degC
  • <valve_switch>: switch percent for valve, when valve is counted, e.g. 20%
  • <preference_switch>: what preference mode is used, total or per, e.g. per
  • <check_interval>: how often are valves checked, ins seconds: e.g. 180 sec
  • <valve_num>: how many valves must be over <valve_switch>