diff --git a/mppsolar/libs/daemon.py b/mppsolar/libs/daemon.py index 353fdc03..a3b979bb 100644 --- a/mppsolar/libs/daemon.py +++ b/mppsolar/libs/daemon.py @@ -34,9 +34,10 @@ def __init__(self, *args, **kwargs): if self.type == "systemd": try: - from cysystemd.daemon import Notification, notify + from cysystemd.daemon import Notification, notify, journal self._notify = notify + self._journal = journal self._Notification = Notification except ModuleNotFoundError as e: print( @@ -45,6 +46,7 @@ def __init__(self, *args, **kwargs): exit(1) else: self._notify = self._dummyNotify + self._journal = self._dummyNotify self._Notification = dummyNotification def initialize(self, *args, **kwargs): @@ -61,6 +63,7 @@ def notify(self, *args, **kwargs): status = "OK" self._notify(self._Notification.STATUS, status) self._lastNotify = time() + self._journal(f"Daemon notify at {self._lastNotify}") def stop(self, *args, **kwargs): # Send stopping diff --git a/mppsolar/protocols/pi30max.py b/mppsolar/protocols/pi30max.py index d904d91f..5de598f6 100644 --- a/mppsolar/protocols/pi30max.py +++ b/mppsolar/protocols/pi30max.py @@ -54,8 +54,8 @@ "AGM", "Flooded", "User", - "TBD", "Pylontech", + "Shinheung", "WECO", "Soltaro", "LIb-protocol compatible", diff --git a/mppsolar/version.py b/mppsolar/version.py index 418fc8c8..3062d03c 100644 --- a/mppsolar/version.py +++ b/mppsolar/version.py @@ -1 +1 @@ -__version__ = "0.15.12" +__version__ = "0.15.13" diff --git a/pyproject.toml b/pyproject.toml index 8df413ba..f36ca2b7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "mppsolar" -version = "0.15.12" +version = "0.15.13" description = "Package to communicate with Solar inverters and BMSs" authors = ["John Blance"]