update channel from received messages

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4256 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2013-11-20 21:06:23 +00:00
parent 2e9b9ef00e
commit db38edec3e

View File

@ -216,6 +216,14 @@ PCA301_Parse($$)
$rhash->{PCA301_lastRcv} = TimeNow(); $rhash->{PCA301_lastRcv} = TimeNow();
if( $rhash->{channel} != $channel ) {
Log3 $rname, 3, "PCA301 $rname, channel changed from $rhash->{channel} to $channel";
$rhash->{channel} = $channel;
$rhash->{DEF} = "$rhash->{addr} $rhash->{channel}";
CommandSave(undef,undef) if( AttrVal( "autocreate", "autosave", 1 ) );
}
my $readonly = AttrVal($rname, "readonly", "0" ); my $readonly = AttrVal($rname, "readonly", "0" );
my $state = ""; my $state = "";