I have a heating system that is shared between radiators and floor heating. As the heating need for floor heating is always less than radiators I’m building intelligence to control the water temperature that goes out in the floor heating tubes.
The water temperature will be based on outside temperature. For each outside temp between +20 and -20 I need to have a corresponding water temp i.e. outside +1C=water +23C, outside 0C=water +25C, outside -1C=water +27C etc. Thus, this will require 41 logic expression.
Can this be done in a clever way in PLEG or should I go with LUA code (which I’m yet unfamiliar with)?