tempST,State Table,,,,,,, States/Events,,E1,E2,E3,E4,E5,E6, Off,S1,0N 1,4 5,1 2,2 3,3 4,5 6, FanLow,S2,6 1,4 5,0N 2,2 3,3 4,5 6, FanMedium,S3,6 1,4 5,1 2,0N 3,3 4,5 6, FanHigh,S4,6 1,4 5,1 2,2 3,0N 4,5 6, Heating,S5,6 1,0N 5,1 2,2 3,3 4,5 6, Cooling,S6,6 1,4 5,1 2,2 3,3 4,0N 6, Events,,,,,,,, isOff,E1,,,,,,, T < 18,E2,,,,,,, T < 22,E3,,,,,,, T < 26,E4,,,,,,, T < 30,E5,,,,,,, T > 30,E6,,,,,,, Actions,,,,,,,, setFan[`l],A1,,,,,,,set fan to low setFan[`m],A2,,,,,,,// to medium setFan[`h],A3,,,,,,,// to high heaterPower[1],A4,,,,,,, ACPower[1],A5,,,,,,, allPower[0],A6,,,,,,, next,A7,,,,,,, exit,A8,,,,,,, error,A9,,,,,,,