add support for associatedWith in shutters devices

This commit is contained in:
Marko Oldenburg 2019-04-28 08:08:23 +02:00
parent ee20005806
commit 2480f3a870

View File

@ -44,7 +44,7 @@ use strict;
use warnings;
use FHEM::Meta;
my $version = '0.6.1.1';
my $version = '0.6.1.2';
sub AutoShuttersControl_Initialize($) {
my ($hash) = @_;
@ -693,6 +693,9 @@ sub WriteReadingsShuttersList($) {
'none'
) eq 'none'
);
### associatedWith damit man sieht das der Rollladen mit einem ASC Device verbunden ist
readingsSingleUpdate($defs{$_},'associatedWith',(ReadingsVal($_,'associatedWith',$name) eq $name ? $name : ReadingsVal($_,'associatedWith','none') . ',' . $name), 0);
}
readingsBulkUpdate( $hash, 'state', 'active' );
readingsEndUpdate( $hash, 0 );