From f677e413280d050129ff296f89bf2851ec570945 Mon Sep 17 00:00:00 2001
From: IggePop <43755563+IggePop@users.noreply.github.com>
Date: Sun, 5 May 2024 22:04:18 +0200
Subject: [PATCH 1/3] Update README.md
---
README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index a708539..068d3d2 100755
--- a/README.md
+++ b/README.md
@@ -77,7 +77,7 @@ werden, "leader" ist dann der Raspi.
### Das Modul einrichten
```
cd /tmp
-git clone https://github.com/leuzoe/hdec
+git clone https://github.com/oldgitdaddy/hdec
cd /var/www
sudo mkdir hdec
sudo chown pi hdec
@@ -198,7 +198,7 @@ box must be configured to be a "follower". Modbus "leader" is your raspi.
### Install the module
```
cd /tmp
-git clone https://github.com/leuzoe/hdec
+git clone https://github.com/oldgitdaddy/hdec
cd /var/www
sudo mkdir hdec
sudo chown pi hdec
From d95ad180940acf92a136217b398308a12cf7af09 Mon Sep 17 00:00:00 2001
From: IggePop <43755563+IggePop@users.noreply.github.com>
Date: Sun, 5 May 2024 22:06:52 +0200
Subject: [PATCH 2/3] Update README.md
---
README.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index 068d3d2..7e36695 100755
--- a/README.md
+++ b/README.md
@@ -1,7 +1,4 @@
-# hdec -- Ein Python Modul für die Wallbox "Heidelberg Energy Control"
-english version: see below
-
-THIS IS A BIT REWORKED VERSION OF THE ORIGINAL VERSION
+**THIS IS A BIT REWORKED VERSION OF THE ORIGINAL VERSION**
The following things have been added:
- MQTT support for integration with EVCC
@@ -17,6 +14,9 @@ Only 1 wallbox supported. Let me know if one requires additional features. Feedb
ORIGINAL TEXT:
+# hdec -- Ein Python Modul für die Wallbox "Heidelberg Energy Control"
+english version: see below
+
Das Ziel dieses Moduls ist es, die Wallbox "Heidelberg Energy Control" über
deren Modbus zu steuern. Insbesondere geht es darum, ein Lademodul für openWB
zur Verfügung zu stellen.
From 15690b2df174f2f74db5cf5c52bcade598095682 Mon Sep 17 00:00:00 2001
From: IggePop <43755563+IggePop@users.noreply.github.com>
Date: Sun, 5 May 2024 22:09:21 +0200
Subject: [PATCH 3/3] Update hdecserver.py
Set current to 0 if charging not allowed
---
src/hdecserver.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/hdecserver.py b/src/hdecserver.py
index 6dbadd3..49f0ae9 100755
--- a/src/hdecserver.py
+++ b/src/hdecserver.py
@@ -63,6 +63,8 @@ def do_GET(self):
if(cmd[0] == 'alw'):
self.wb.allow(cmd[1] != "0")
res = True
+ if(cmd[1] == "0"):
+ self.wb.set_current_preset(0)
self.send_response(200)
self.send_header("Content-type", "application/json")
data = '{' + \