forked from balmli/no.almli.thermostat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
todo.txt
34 lines (22 loc) · 986 Bytes
/
todo.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
no current know temp => no heating
should be we heat ?
=> NO => turn off heater, nullify warm_time / warm_temp
=> YES
=> last_warm_time defined and > 5 minutes ?
=> NO => warm_time set ?
=> NO => turn on heater => set warm_time / warm_temp
=> YES => don't change heating status (either coninue heating or not)
=> YES => last_change_time > 5 minutes ?
=> NO => temp increased ?
=> YES => continue heating => memorize warm_time / warm_temp
=> NO (temp decreased or equal) => not normal (window open ?) => turn off heater => switch device on 0.01d
=> YES => turn off heater => switch device on 0.01d
last_change_time : need check change_time of all temp device in a zone
on new temp switch device to 0.1d
find_temperatue :
if warm_time is set and over 5 minutes :
current_temp is undefined if any temp is over 5 minutes
otherwise current_temp is average of know temp
memorize warm_time / warm_temp
else :
current_temp is average of know temp