fix double NOTIFYDEV entry by multiple scahForShutters action

This commit is contained in:
Marko Oldenburg 2018-11-14 03:54:30 +01:00
parent fb3c7f6400
commit 77b6ddb46c

View File

@ -38,7 +38,7 @@ package main;
use strict;
use warnings;
my $version = "0.2.0.4";
my $version = "0.2.0.5";
sub AutoShuttersControl_Initialize($) {
my ($hash) = @_;
@ -675,7 +675,8 @@ sub ShuttersDeviceScan($) {
$shutters->setNoOffset(0);
$shutters->setPosSetCmd( $posSetCmds{ $defs{$_}->{TYPE} } );
}
$hash->{NOTIFYDEV} = $hash->{NOTIFYDEV} . $shuttersList;
# $hash->{NOTIFYDEV} = $hash->{NOTIFYDEV} . $shuttersList;
$hash->{NOTIFYDEV} = "global," . $name . $shuttersList;
if ( $ascDev->getMonitoredDevs ne 'none' ) {
$hash->{monitoredDevs} =