mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
10_MQTT2_DEVICE.pm: some more parameter checking
git-svn-id: https://svn.fhem.de/fhem/trunk@19262 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
962d383d79
commit
f2053aa90d
@ -713,6 +713,8 @@ zigbee2mqtt_devStateIcon255($;$$)
|
|||||||
{
|
{
|
||||||
my ($name, $rgbReadingName, $useSetExtension) = @_;
|
my ($name, $rgbReadingName, $useSetExtension) = @_;
|
||||||
|
|
||||||
|
return ".*:off:toggle" if(!$defs{$name});
|
||||||
|
|
||||||
my $too = $defs{$name}->{TIMED_OnOff};
|
my $too = $defs{$name}->{TIMED_OnOff};
|
||||||
$useSetExtension = 0 if(!$too);
|
$useSetExtension = 0 if(!$too);
|
||||||
my $state = lc(ReadingsVal($name,"state","on"));
|
my $state = lc(ReadingsVal($name,"state","on"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user