From e8b0cc0c412c01c842aed7c95a4e8b55ca227981 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 19 Feb 2026 05:29:42 +0000 Subject: [PATCH 1/3] Initial plan From 98a95659e9be57b8fb24c940657ed8f6ba92c200 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 19 Feb 2026 05:31:48 +0000 Subject: [PATCH 2/3] Update repository path from muexxl/batcontrol to MaStr/batcontrol Co-authored-by: MaStr <1036501+MaStr@users.noreply.github.com> --- README.MD | 14 +++++++------- config/batcontrol_config_dummy.yaml | 16 ++++++++-------- entrypoint.sh | 4 ++-- .../forecast_homeassistant.py | 2 +- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/README.MD b/README.MD index 3ede89c..be1fc66 100644 --- a/README.MD +++ b/README.MD @@ -1,11 +1,11 @@ **Optimize your electricity costs by re-charging your PV battery when electricity is cheap and there is not enough solar power available.** -To integrate batcontrol with Home Assistant, use the following repository: [ha_addons](https://github.com/muexxl/ha_addons/) +To integrate batcontrol with Home Assistant, use the following repository: [ha_addons](https://github.com/MaStr/ha_addons/) -[![Pylint](https://github.com/muexxl/batcontrol/actions/workflows/pylint.yml/badge.svg?branch=main)](https://github.com/muexxl/batcontrol/actions/workflows/pylint.yml) -[![Docker Image CI](https://github.com/muexxl/batcontrol/actions/workflows/docker-image.yml/badge.svg?branch=main)](https://github.com/muexxl/batcontrol/actions/workflows/docker-image.yml) +[![Pylint](https://github.com/MaStr/batcontrol/actions/workflows/pylint.yml/badge.svg?branch=main)](https://github.com/MaStr/batcontrol/actions/workflows/pylint.yml) +[![Docker Image CI](https://github.com/MaStr/batcontrol/actions/workflows/docker-image.yml/badge.svg?branch=main)](https://github.com/MaStr/batcontrol/actions/workflows/docker-image.yml) -[Wiki/Documentation](https://github.com/muexxl/batcontrol/wiki) +[Wiki/Documentation](https://github.com/MaStr/batcontrol/wiki) ## Prerequisites: @@ -124,7 +124,7 @@ client.loop_forever() ## Install: ```sh -git clone https://github.com/muexxl/batcontrol.git +git clone https://github.com/MaStr/batcontrol.git cd batcontrol ``` @@ -171,7 +171,7 @@ python -m batcontrol # When venv is activated mkdir -p ./config -p ./logs ``` -- Download the the latest [batcontrol_config.yaml](https://raw.githubusercontent.com/muexxl/batcontrol/refs/heads/main/config/batcontrol_config_dummy.yaml) sample, adjust and place it to config/batcontrol_config.yaml. +- Download the the latest [batcontrol_config.yaml](https://raw.githubusercontent.com/MaStr/batcontrol/refs/heads/main/config/batcontrol_config_dummy.yaml) sample, adjust and place it to config/batcontrol_config.yaml. - Use the default load_profile (automatically) or create your own.- ### Plain Docker @@ -278,7 +278,7 @@ To uninstall batcontrol and restore the inverter settings follow these steps: For running batcontrol off the repository for development puroposes, it is required to uses pip with [Developermode](https://setuptools.pypa.io/en/latest/userguide/development_mode.html) ```sh -git clone https://github.com/muexxl/batcontrol.git +git clone https://github.com/MaStr/batcontrol.git cd batcontrol python -m venv .venv # Activate your environment with: diff --git a/config/batcontrol_config_dummy.yaml b/config/batcontrol_config_dummy.yaml index 694698b..18ec92a 100644 --- a/config/batcontrol_config_dummy.yaml +++ b/config/batcontrol_config_dummy.yaml @@ -1,6 +1,6 @@ #-------------------------- # Batcontrol Configuration -# See more Details in: https://github.com/muexxl/batcontrol/wiki/Batcontrol-Configuration +# See more Details in: https://github.com/MaStr/batcontrol/wiki/Batcontrol-Configuration #-------------------------- timezone: Europe/Berlin #your time zone. not optional. time_resolution_minutes: 60 # Time resolution for forecasts: 15 (quarter-hourly) or 60 (hourly). Default: 60 @@ -21,7 +21,7 @@ battery_control: #-------------------------- # Battery Control Expert Tuning Parameters -# See more Details in: https://github.com/muexxl/batcontrol/wiki/battery_control_expert +# See more Details in: https://github.com/MaStr/batcontrol/wiki/battery_control_expert #-------------------------- battery_control_expert: charge_rate_multiplier: 1.1 # Increase (>1) calculated charge rate to compensate charge inefficencies. @@ -34,7 +34,7 @@ battery_control_expert: #-------------------------- # Inverter -# See more Details in: https://github.com/muexxl/batcontrol/wiki/Inverter-Configuration +# See more Details in: https://github.com/MaStr/batcontrol/wiki/Inverter-Configuration # # IMPORTANT: This configuration uses a "dummy" inverter for demonstration purposes. # The dummy inverter returns static values to make batcontrol work out of the box. @@ -61,7 +61,7 @@ inverter: #-------------------------- # Dynamic Tariff Provider -# See more Details in: https://github.com/muexxl/batcontrol/wiki/Dynamic-tariff-provider +# See more Details in: https://github.com/MaStr/batcontrol/wiki/Dynamic-tariff-provider #-------------------------- utility: type: awattar_de # [tibber, awattar_at, awattar_de, evcc, energyforecast] @@ -72,7 +72,7 @@ utility: #-------------------------- # MQTT API -# See more Details in: https://github.com/muexxl/batcontrol/wiki/MQTT-API +# See more Details in: https://github.com/MaStr/batcontrol/wiki/MQTT-API #-------------------------- mqtt: enabled: false @@ -94,7 +94,7 @@ mqtt: #-------------------------- # Forecast Solar -# See more Details in: https://github.com/muexxl/batcontrol/wiki/Solar-Forecast +# See more Details in: https://github.com/MaStr/batcontrol/wiki/Solar-Forecast # # Supported providers: # - fcsolarapi: Third-party solar forecast API (configured below, default) @@ -129,7 +129,7 @@ pvinstallations: #-------------------------- # Forecast Consumption -# See more Details in: https://github.com/muexxl/batcontrol/wiki/Consumption-forecast +# See more Details in: https://github.com/MaStr/batcontrol/wiki/Consumption-forecast # # Option 1: CSV-based forecast (default) # Option 2: HomeAssistant API-based forecast @@ -156,7 +156,7 @@ consumption_forecast: #-------------------------- # evcc connection # listen to evcc mqtt messages to lock the battery if the car is charging -# See more Details in: https://github.com/muexxl/batcontrol/wiki/evcc-connection +# See more Details in: https://github.com/MaStr/batcontrol/wiki/evcc-connection #-------------------------- evcc: enabled: false diff --git a/entrypoint.sh b/entrypoint.sh index 18818f8..8a43515 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -25,9 +25,9 @@ if test ! -f "$CONFIG_FILE" ; then echo "" echo " You can download the latest sample config from:" if [ "snapshot" = "$BATCONTROL_VERSION" ]; then - echo " https://raw.githubusercontent.com/muexxl/batcontrol/${BATCONTROL_GIT_SHA}/config/batcontrol_config_dummy.yaml" + echo " https://raw.githubusercontent.com/MaStr/batcontrol/${BATCONTROL_GIT_SHA}/config/batcontrol_config_dummy.yaml" else - echo " https://raw.githubusercontent.com/muexxl/batcontrol/refs/tags/${BATCONTROL_VERSION}/config/batcontrol_config_dummy.yaml" + echo " https://raw.githubusercontent.com/MaStr/batcontrol/refs/tags/${BATCONTROL_VERSION}/config/batcontrol_config_dummy.yaml" fi echo "" fi diff --git a/src/batcontrol/forecastconsumption/forecast_homeassistant.py b/src/batcontrol/forecastconsumption/forecast_homeassistant.py index 8a09cdd..548a45d 100644 --- a/src/batcontrol/forecastconsumption/forecast_homeassistant.py +++ b/src/batcontrol/forecastconsumption/forecast_homeassistant.py @@ -291,7 +291,7 @@ async def _websocket_connect(self): # Set max_size to 4MB to handle large Home Assistant instances # Default is 1MB which causes crashes for installations with many entities - # See: https://github.com/muexxl/batcontrol/issues/241 + # See: https://github.com/MaStr/batcontrol/issues/241 websocket = await connect(ws_url, max_size=4 * 1024 * 1024) # Step 1: Receive auth_required message From 2bc7a3d0c0b59ed498b2248ec362572f8038abf9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 19 Feb 2026 05:38:31 +0000 Subject: [PATCH 3/3] Update ha_addon URL to batcontrol_ha_addon repository Co-authored-by: MaStr <1036501+MaStr@users.noreply.github.com> --- README.MD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.MD b/README.MD index be1fc66..458a7a7 100644 --- a/README.MD +++ b/README.MD @@ -1,5 +1,5 @@ **Optimize your electricity costs by re-charging your PV battery when electricity is cheap and there is not enough solar power available.** -To integrate batcontrol with Home Assistant, use the following repository: [ha_addons](https://github.com/MaStr/ha_addons/) +To integrate batcontrol with Home Assistant, use the following repository: [batcontrol_ha_addon](https://github.com/MaStr/batcontrol_ha_addon) [![Pylint](https://github.com/MaStr/batcontrol/actions/workflows/pylint.yml/badge.svg?branch=main)](https://github.com/MaStr/batcontrol/actions/workflows/pylint.yml) [![Docker Image CI](https://github.com/MaStr/batcontrol/actions/workflows/docker-image.yml/badge.svg?branch=main)](https://github.com/MaStr/batcontrol/actions/workflows/docker-image.yml)