mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
10_MQTT2_DEVICE.pm: add SetExtensionsCancel (Forum #95581)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@19149 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8b08b7c0bf
commit
0a413f55e8
@ -346,8 +346,10 @@ MQTT2_DEVICE_Set($@)
|
|||||||
return SetExtensions($hash, $cmdList, @a) if(!$cmd);
|
return SetExtensions($hash, $cmdList, @a) if(!$cmd);
|
||||||
return undef if(IsDisabled($hash->{NAME}));
|
return undef if(IsDisabled($hash->{NAME}));
|
||||||
|
|
||||||
|
my $a1 = (@a > 1 ? $a[1] : '');
|
||||||
$cmd = MQTT2_buildCmd($hash, \@a, $cmd);
|
$cmd = MQTT2_buildCmd($hash, \@a, $cmd);
|
||||||
return if(!$cmd);
|
return if(!$cmd);
|
||||||
|
SetExtensionsCancel($hash) if($a1 eq "on" || $a1 eq "off");
|
||||||
IOWrite($hash, "publish", $cmd);
|
IOWrite($hash, "publish", $cmd);
|
||||||
my $ssl = AttrVal($hash->{NAME}, "setStateList", "");
|
my $ssl = AttrVal($hash->{NAME}, "setStateList", "");
|
||||||
if(!$ssl) {
|
if(!$ssl) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user