Hi! We are a group of university students who need to refine our n8n framework. We would like to get your valuable guidance in our n8n project.
It is a part of our smart home project in which we need to simulate a heat pump. Here are the requirements imposed by our professors:
1: We must implement minimum 1 AI Agent node in our n8n framework. The Agent should suggest us if our heat pump simulation works in a sustainable but efficient way i.e. it does not consume too much electricity.
2. The Agent node will forecast the most efficient time to run the heat pump i.e. 10am-3pm daily.
3. The Agent node shall implement the trigger from our smart home system (this shall not be disclosed to this community). In the step 2 the Agent node got the “efficient time” to run the heat pump. The trigger shall perform HTTP requests based on that time.
So this is my current n8n workflow for this part - the if node will determine if the current time is between 10am and 3pm, if it’s yes, the workflow processes the HTTP Request Ein (on). Otherwise it processes the HTTP Request Aus (off). This workflow is to assist the AI agent node while it determines if the heat pump runs efficiently or not.
4. On top of HTTP Request via the heat pump system, we got the access to the solar energy system which assists the running of the heat pump. So we are to analyse if the COP (co-efficient of performance) and APF (annual performance factor) shows if our heat pump runs efficiently. On top of this analyse the AI Agent is to suggest something along the lines of "the solar panels runs efficiently, but your COP is not efficient - all in all you will be able to save your electricity bills.
We have implemented a couple of javascript nodes which return attributes required to calculate those APF and COP:
We plan to forward those calculated results to the AI agent and let it analyse and suggest the measures. The measures to save the bills.
Question
What nodes and code shall be used to meet the above requirements? What do you say about the screenshot here? Could anybody suggest the published n8n framework which does the similar stuff like those requirements suggest?

