diff --git a/main.py b/main.py index f5c1876..590319b 100644 --- a/main.py +++ b/main.py @@ -68,6 +68,8 @@ def check_inverter(status: bool): if status: logger.debug("Inverter Online") + if not inverter_online: + logger.info("Inverter restored") inverter_online = True last_online = time.monotonic() return True