diff --git a/fhem/CHANGED b/fhem/CHANGED index b2be0c74f..bf1873078 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - change: 10_WS980: fix num vs. string - change: 55_DWD_OpenData: logging (forum #83097 msg #1114070) - feature: 74_Unifi: get deviceData hinzugefügt - feature: 74_UnifiSwitch: new setter portProfile diff --git a/fhem/FHEM/10_WS980.pm b/fhem/FHEM/10_WS980.pm index be8dcd67f..db3235779 100644 --- a/fhem/FHEM/10_WS980.pm +++ b/fhem/FHEM/10_WS980.pm @@ -33,7 +33,7 @@ use warnings; use IO::Socket::INET; use POSIX qw(strftime); -my $version = "1.2.0"; +my $version = "1.2.1"; #------------------------------------------------------------------------------------------------------ # global constants @@ -1006,10 +1006,10 @@ sub WS980_updateRelPressure($) } my $relPressure = WS980_calculateRelPressure_QFF( - ReadingsVal($name, "temperature", 0.0), - ReadingsVal($name, "pressureAbs", 0.0), + ReadingsNum($name, "temperature", 0.0), + ReadingsNum($name, "pressureAbs", 0.0), $altitude, - ReadingsVal($name, "humidity", 0.0)); + ReadingsNum($name, "humidity", 0.0)); readingsSingleUpdate($hash, "pressureRel_calculated", sprintf("%.1f", $relPressure), 1); }