From ec66c2cbd80b0d04129e96b2285e46d0889d758c Mon Sep 17 00:00:00 2001 From: ulimaass <> Date: Mon, 15 Jun 2015 17:10:54 +0000 Subject: [PATCH] floorplan: fixed status-values for IT devices git-svn-id: https://svn.fhem.de/fhem/trunk@8752 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/95_FLOORPLAN.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/95_FLOORPLAN.pm b/fhem/FHEM/95_FLOORPLAN.pm index 4a3fdeb7e..0e4daa831 100644 --- a/fhem/FHEM/95_FLOORPLAN.pm +++ b/fhem/FHEM/95_FLOORPLAN.pm @@ -49,6 +49,7 @@ # 0038: added arrange by drag&drop provided by Markus (mluckey), added longpollfilter (nesges), # added processing of global userattr fp_ and their value per device for rename, copy, delete (Jan 31, 2015) # 0039: added style 8 for commands-popup provided by André (justme68) (Feb 17, 2015) +# 0040: fixed "no commands for IT devices", drag&drop won't switch device-status anymore (June 15, 2015) # ################################################################ # @@ -672,6 +673,9 @@ FP_show(){ no strict "refs"; $htmlTxt = &{$data{webCmdFn}{$fn}}($FW_ME, $d, $FW_room, $cmd, $values); + if ($htmlTxt eq '') { + $FW_ME = $oldMe; + } use strict "refs"; last if(defined($htmlTxt)); } @@ -684,7 +688,7 @@ FP_show(){ $h .= "

$cmd

"; } } else { - if(defined($htmlTxt)) { + if(defined($htmlTxt && $htmlTxt ne '')) { $htmlTxt =~ s/>desired-temp/>/; #for FHT $htmlTxt =~ s/>desiredTemperature/>/; #for MAX! FW_pO $htmlTxt;