2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-19 06:36:04 +00:00

eventMap comfusion with dropdown handling. Temporary hack.

git-svn-id: https://svn.fhem.de/fhem/trunk@1904 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2012-09-30 07:03:27 +00:00
parent bde6475e8b
commit a9eaa005bb

View File

@ -1089,8 +1089,12 @@ FW_showRoom()
$firstIdx=1; $firstIdx=1;
} else { ##### Dropdown } else { ##### Dropdown
$firstIdx=1;
my @tv = split(",", $values); my @tv = split(",", $values);
# Hack: eventmap (translation only) should not result in a dropdown.
# eventMap/webCmd/etc handling must be cleaned up.
if(@tv > 1) {
$firstIdx=1;
if($cmd eq "desired-temp") { if($cmd eq "desired-temp") {
$txt = ReadingsVal($d, "desired-temp", 20); $txt = ReadingsVal($d, "desired-temp", 20);
$txt =~ s/ .*//; # Cut off Celsius $txt =~ s/ .*//; # Cut off Celsius
@ -1109,6 +1113,7 @@ FW_showRoom()
"</td>"; "</td>";
} }
} }
}
for(my $idx=$firstIdx; $idx < @cList; $idx++) { for(my $idx=$firstIdx; $idx < @cList; $idx++) {
FW_pH "cmd.$d=set $d $cList[$idx]$rf", $cList[$idx], 1,"col3"; FW_pH "cmd.$d=set $d $cList[$idx]$rf", $cList[$idx], 1,"col3";