From 08d16035a4646c4cd94f6bea1bd5f365da8a6fdb Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Mon, 21 Oct 2013 20:58:57 +0000 Subject: [PATCH] FHEMWEB: Preset the set dropdown additionally with a reading of the same name as wished by Loredo (http://forum.fhem.de/index.php/topic,15090.0.html) git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@4092 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/01_FHEMWEB.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/FHEM/01_FHEMWEB.pm b/fhem/FHEM/01_FHEMWEB.pm index f8f9dff9d..d28e6100e 100755 --- a/fhem/FHEM/01_FHEMWEB.pm +++ b/fhem/FHEM/01_FHEMWEB.pm @@ -2218,7 +2218,7 @@ FW_dropdownFn() $txt =~ s/ .*//; # Cut off Celsius $txt = sprintf("%2.1f", int(2*$txt)/2) if($txt =~ m/[0-9.-]/); } else { - $txt = Value($d); + $txt = ReadingsVal($d, $cmd, Value($d)); $txt =~ s/$cmd //; }