Skip to content

Commit ac2e22d

Browse files
authored
fix: fix firmare 2.9.1 RAPI command for set_current (#457)
1 parent 218db73 commit ac2e22d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

openevsehttp/__main__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,9 @@ async def set_current(self, amps: int = 6) -> None:
480480
# RAPI commands
481481
_LOGGER.debug("Setting current via RAPI")
482482
command = f"$SC {amps} N"
483+
# Different parameters for older firmware
484+
if self._version_check("2.9.1"):
485+
command = f"$SC {amps} V"
483486
response, msg = await self.send_command(command)
484487
_LOGGER.debug("Set current response: %s", msg)
485488

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
PROJECT_DIR = Path(__file__).parent.resolve()
88
README_FILE = PROJECT_DIR / "README.md"
9-
VERSION = "0.1.86"
9+
VERSION = "0.1.87"
1010

1111
setup(
1212
name="python_openevse_http",

0 commit comments

Comments
 (0)