mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-16 10:46:03 +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:
parent
bde6475e8b
commit
a9eaa005bb
@ -1089,8 +1089,12 @@ FW_showRoom()
|
||||
$firstIdx=1;
|
||||
|
||||
} else { ##### Dropdown
|
||||
$firstIdx=1;
|
||||
|
||||
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") {
|
||||
$txt = ReadingsVal($d, "desired-temp", 20);
|
||||
$txt =~ s/ .*//; # Cut off Celsius
|
||||
@ -1109,6 +1113,7 @@ FW_showRoom()
|
||||
"</td>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for(my $idx=$firstIdx; $idx < @cList; $idx++) {
|
||||
FW_pH "cmd.$d=set $d $cList[$idx]$rf", $cList[$idx], 1,"col3";
|
||||
|
Loading…
x
Reference in New Issue
Block a user