This repository contains the code for the AI agent described in the Medium article "AI Agent for Smart Home Climate Control: Harnessing Botanical Strategies for Energy Efficiency"
The complete source code for the AI agent is available in this repository. Below, you'll find step-by-step instructions for configuring and running the agent on your local machine.
While running the program might require specific environment settings, some of which involve creating accounts to access necessary APIs, a demo mode is available that allows you to run the agent using cached data. By default, this demo mode is enabled. You can change it via the configuration_node
function in config.py
.
To use live data instead of the demo mode, change the mode
key in configuration_node
to something other than "demo." Remember to set all the required environment variables as specified in the .env.example
file.
The program uses various PyPi packages. You can install these dependencies via pip or conda depending on your preference. Run the following command in your terminal to set up your environment:
Create a Conda environment from the provided environment.yml
file:
conda env create -f environment.yml
pip install -r requirements.txt
Once you’ve configured your environment and installed all dependencies, you can run the agent by executing the main script:
python main.py
This project is licensed under the MIT License.