EOS_connect icon indicating copy to clipboard operation
EOS_connect copied to clipboard

ERROR [BATTERY-IF] source currently not supported. Using default start SOC = 5%.

Open HolBaum5 opened this issue 1 year ago • 3 comments

Mit Version 0.2.01.136-develop bekomme ich die oben genannte Fehlermeldung, dabei wird die Quelle erkannt.

2025-10-14 09:51:14 DEBUG [BATTERY-IF] getting SOC from openhab ...
2025-10-14 09:51:14 DEBUG [BATTERY-IF] Detected percentage format (0-100): 88.8%
2025-10-14 09:51:14 ERROR [BATTERY-IF] source currently not supported. Using default start SOC = 5%.

Mit Version 0.2.01.130-develop sieht es so aus.

2025-10-14 09:57:30 DEBUG [BATTERY-IF] getting SOC from openhab ...
2025-10-14 09:57:30 INFO [BATTERY-IF] Update service started.
2025-10-14 09:57:30 DEBUG [BATTERY-IF] Detected percentage format (0-100): 87.7%
2025-10-14 09:57:30 INFO [BATTERY-IF] successfully fetched SOC = 87.7 %
2025-10-14 09:57:30 INFO [BATTERY-IF] Max dynamic charge power changed to 2000 W

HolBaum5 avatar Oct 14 '25 07:10 HolBaum5

Das Problem ist in battery_interface .py dort inn __battery_request_current_soc()

       if self.src == "openhab":
            self.current_soc = self.__fetch_soc_data_from_openhab()
        if self.src == "homeassistant":
            self.current_soc = self.__fetch_soc_data_from_homeassistant()
----> bei openHAB laufe ich immer in den else Zweig
        else:
            self.current_soc = 5
            default = True
            logger.error(
                "[BATTERY-IF] source currently not supported. Using default start SOC = 5%."
            )

HolBaum5 avatar Oct 14 '25 10:10 HolBaum5

Thanks for the hint ... need tests ... aargh ;-) dumb mistake -> https://github.com/ohAnd/EOS_connect/commit/e7b9c13306fd8e523b89564b16fb26e29ff77e11

ohAnd avatar Oct 14 '25 18:10 ohAnd

Problem fixed, thank you.

HolBaum5 avatar Oct 16 '25 05:10 HolBaum5