mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
10_MQTT2_DEVICE.pm: remove debug line
git-svn-id: https://svn.fhem.de/fhem/trunk@19261 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
fef8f6a079
commit
962d383d79
@ -723,10 +723,10 @@ zigbee2mqtt_devStateIcon255($;$$)
|
|||||||
my $pct = ReadingsNum($name, "brightness", 255);
|
my $pct = ReadingsNum($name, "brightness", 255);
|
||||||
|
|
||||||
my $s = "on";
|
my $s = "on";
|
||||||
if($useSetExtension && $too->{CMD} =~ m/on-|off-|blink/s) {
|
if($useSetExtension && $too->{CMD} =~ m/on-|off-|blink/) {
|
||||||
$s = $too->{CMD} =~ m/on-/s ? "on-for-timer" :
|
$s = $too->{CMD} =~ m/on-/ ? "on-for-timer" :
|
||||||
$too->{CMD} =~ m/off-/s ? "off-for-timer" :
|
$too->{CMD} =~ m/off-/ ? "off-for-timer" :
|
||||||
$state =~ m/off-/s ? "off-for-timer" : "light_toggle";
|
$state =~ m/off-/ ? "off-for-timer" : "light_toggle";
|
||||||
} elsif ($pct < 254) {
|
} elsif ($pct < 254) {
|
||||||
$s = sprintf("dim%02d%%", int((1+int($pct/18))*6.25));
|
$s = sprintf("dim%02d%%", int((1+int($pct/18))*6.25));
|
||||||
}
|
}
|
||||||
@ -734,7 +734,6 @@ zigbee2mqtt_devStateIcon255($;$$)
|
|||||||
my $rgb = ReadingsVal($name, $rgbReadingName, "FFFFFF");
|
my $rgb = ReadingsVal($name, $rgbReadingName, "FFFFFF");
|
||||||
$s .= "@#$rgb" if($rgb ne "FFFFFF");
|
$s .= "@#$rgb" if($rgb ne "FFFFFF");
|
||||||
|
|
||||||
Log 1, $s;
|
|
||||||
return ".*:$s:toggle";
|
return ".*:$s:toggle";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user