From c8cbdf40dd6241cec8e8102d91edac8265e09ff1 Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Fri, 21 Apr 2023 15:25:19 +0000 Subject: [PATCH] 95_remotecontrol.pm: Mutli-FHEMWEB support (Forum #133273) git-svn-id: https://svn.fhem.de/fhem/trunk@27475 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/95_remotecontrol.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/95_remotecontrol.pm b/fhem/FHEM/95_remotecontrol.pm index e2ab117f5..4fbf17941 100644 --- a/fhem/FHEM/95_remotecontrol.pm +++ b/fhem/FHEM/95_remotecontrol.pm @@ -99,6 +99,7 @@ RC_Define() my ($hash, $def) = @_; $hash->{STATE} = "initialized"; $hash->{".htmlCode"} = ""; + $hash->{".fw_me"} = ""; return undef; } @@ -201,7 +202,9 @@ RC_Get($@) ## get htmlcode if($arg eq "htmlcode") { - $hash->{".htmlCode"} = RC_attr2html($name) if ($hash->{".htmlCode"} eq ""); + $hash->{".htmlCode"} = RC_attr2html($name) + if(!$hash->{".htmlCode"} || $FW_ME ne $hash->{".fw_me"}); + $hash->{".fw_me"} = $FW_ME; # Multi FHEMWEB Support / rko return $hash->{".htmlCode"}; ## get layout } elsif ($arg eq "layout") { @@ -389,6 +392,8 @@ RC_layout_itunes() { =pod +=item summary display remotecontrol buttons in FHEMWEB to generate events +=item summary_DE zeigt eine Fernbedienung in FHEMWEB um Events zu generieren =begin html