";
for my $btn (sort keys %hcb) {
my $cmd = $hcb{$btn}{cmd};
my $img = $hcb{$btn}{img};
next if(!$cmd || !$img);
$ret .= "" if($pbs <= 100);
$ret .= " | " if($pbs >= 105);
if ($img =~ m/\.svg/x) { # Verwendung für SVG's
$img = FW_makeImage($img, $cmd, "rc-button");
}
else { # $FW_ME = URL-Pfad unter dem der FHEMWEB-Server via HTTP erreichbar ist, z.B. /fhem
$img = "";
}
my $cmd1 = "FW_cmd('$FW_ME$FW_subdir?XHR=1&cmd=set $name $cmd')"; # $FW_subdir = Sub-path in URL, used by FLOORPLAN/weblink
$ret .= "$img";
$ret .= " | ";
}
$ret .= "
";
$ret .= "