diff --git a/README.md b/README.md index a708539..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. @@ -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 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 = '{' + \