From 20260e7f4036cc5a62add8a09910ef4f0f4da28e Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Thu, 10 Nov 2022 18:12:10 +0000 Subject: [PATCH] 76_SolarForecast.pm: contrib 0.72.5 git-svn-id: https://svn.fhem.de/fhem/trunk@26683 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/76_SolarForecast.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/contrib/DS_Starter/76_SolarForecast.pm b/fhem/contrib/DS_Starter/76_SolarForecast.pm index efde8e5c3..b01236a59 100644 --- a/fhem/contrib/DS_Starter/76_SolarForecast.pm +++ b/fhem/contrib/DS_Starter/76_SolarForecast.pm @@ -7545,7 +7545,7 @@ sub _flowGraphic { my $cc_dummy = $cc; my $batin = ReadingsNum($name, 'Current_PowerBatIn', undef); my $batout = ReadingsNum($name, 'Current_PowerBatOut', undef); - my $soc = ReadingsNum($name, 'Current_BatCharge', 100); + my $soc = sprintf "%.1f", ReadingsNum($name, 'Current_BatCharge', 100); my $bat_color = $soc < 26 ? 'flowg bat25' : $soc < 76 ? 'flowg bat50' :