2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

desiredTemperature patch von Matthias

git-svn-id: https://svn.fhem.de/fhem/trunk@2546 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2013-01-21 20:40:38 +00:00
parent f532a1d005
commit abbc4d5bb1

View File

@ -1185,8 +1185,8 @@ FW_showRoom()
# 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);
if($cmd eq "desired-temp" || $cmd eq "desiredTemperature") {
$txt = ReadingsVal($d, $cmd, 20);
$txt =~ s/ .*//; # Cut off Celsius
$txt = sprintf("%2.1f", int(2*$txt)/2) if($txt =~ m/[0-9.-]/);
} else {
@ -2577,7 +2577,11 @@ FW_devState($$)
$txt =~ s/ .*//;
$txt .= "°C";
$cmdlist = "desired-temp";
} elsif($allSets =~ m/\bdesiredTemperature:/) {
$txt = ReadingsVal($d, "temperature", "");
$txt =~ s/ .*//;
$txt .= "°C";
$cmdlist = "desiredTemperature";
} else {
my $icon;
$icon = FW_dev2image($d);