- Overview
- Features
- Hardware Requirements
- Software Requirements
- Installation
- Configuration
- Usage
- Contributing
- License
- Contact
The energy management system key components includes, Loxone charging station, photovoltaic (PV) production, fluctuating spot prices connector, PV production prediction, and a Wattsonic G3 inverter. This setup features scripts tailored to optimize both energy consumption and production, taking into account the current state of the system and the user's preferences.
This script calculates the eco power for charging an electric vehicle (EV) based on solar power readings and user configurations. It decides the power to charge the car at, depending on the state of charge (SOC) of the battery and whether the car is already charging. Script location.
This script predicts photovoltaic (PV) production. It involves fetching weather data from MeteoBlue API to estimate future solar power production. Script location.
This script manages the state of an inverter based on various inputs such as current and predicted spot prices, SOC, and PV production predictions. It determines whether the inverter should be in economic mode, general mode, or UPS mode and sets limits on battery charge/discharge and grid injection power. Script location.
- Loxone Miniserver
- Loxone Wallbox for EV charging
- Loxone Modbus Extension for Wattsonice inverter communication
- Wattsonic G3 inverter
- Loxone Config software
- MeteoBlue account (free tier is sufficient) and API key for weather data retrieval
-
Clone the repository:
git clone https://github.com/janhalama/home-automation.git cd home-automation
-
Upload Scripts to Loxone Config:
- Open Loxone Config software.
- Import the necessary scripts from the repository into your Loxone project program blocks.
-
Configure script constants:
- Edit the script constants to match your setup and needs.
-
Configure Loxone block inputs:
- Connect user inputs and Wattsonic inverter registers.
- Start the System:
- Deploy the configuration to the Loxone Miniserver and enjoy.
Contributions to enhance the functionality of these scripts are welcome. Follow these steps to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature/xyz
). - Commit your changes (
git commit -am 'feat: Add feature xyz'
). - Push to the branch (
git push origin feature-xyz
). - Create a new Pull Request.
Please ensure your contributions adhere to the following guidelines:
- Proper documentation of the added features.
- Compatibility with the Loxone system.
This project is licensed under a proprietary license. See the LICENSE file for more details.
For questions or support, please contact Jan Halama via GitHub.