add CommandDefMod to change the DEF then change Attribut remoteServer
This commit is contained in:
		@@ -58,7 +58,7 @@ eval "use Encode qw(encode encode_utf8);1" or $missingModul .= "Encode ";
 | 
				
			|||||||
eval "use JSON;1" or $missingModul .= "JSON ";
 | 
					eval "use JSON;1" or $missingModul .= "JSON ";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
my $modulversion = "4.1.99.27";
 | 
					my $modulversion = "4.1.99.28";
 | 
				
			||||||
my $flowsetversion = "4.1.99.3";
 | 
					my $flowsetversion = "4.1.99.3";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -251,6 +251,8 @@ sub AMADDevice_Attr(@) {
 | 
				
			|||||||
                $hash->{PORT}   = 1111;
 | 
					                $hash->{PORT}   = 1111;
 | 
				
			||||||
                Log3 $name, 3, "AMADDevice ($name) - set remoteServer to other";
 | 
					                Log3 $name, 3, "AMADDevice ($name) - set remoteServer to other";
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					            
 | 
				
			||||||
 | 
					            CommandDefMod(undef,"$name $hash->{TYPE} $hash->{HOST} $hash->{AMAD_ID} $attrVal");
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user