now accepts desired-temp and desiredTemperature

git-svn-id: https://svn.fhem.de/fhem/trunk@2177 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
ulimaass
2012-11-24 12:06:00 +00:00
parent 6982296d2f
commit 44c2db9bfb

View File

@@ -517,8 +517,9 @@ FP_show(){
# dropdown. eventMap/webCmd/etc handling must be cleaned up.
if(@tv > 1) {
$firstIdx=1;
if($cmd eq "desired-temp") {
$txt = ReadingsVal($d, "desired-temp", 20);
my @array = qw/desired-temp desiredTemperature/;
if(/$cmd/i ~~ @array) {
$txt = ReadingsVal($d, $cmd, 20);
$txt =~ s/ .*//; # Cut off Celsius
$txt = sprintf("%2.1f", int(2*$txt)/2) if($txt =~ m/[0-9.-]/);
} else {