Attribut interval in der FnAttr eingepflegt
This commit is contained in:
parent
4cccd0d32d
commit
9a874a606a
@ -176,6 +176,16 @@ sub SmartPi_Attr(@) {
|
||||
readingsSingleUpdate ( $hash, "state", "enabled", 1 );
|
||||
Log3 $name, 3, "SmartPi ($name) - enabled";
|
||||
}
|
||||
|
||||
} elsif( $attrName eq "interval" ) {
|
||||
if( $cmd eq "set" ) {
|
||||
|
||||
$hash->{INTERVAL} = $attrVal;
|
||||
|
||||
} else {
|
||||
|
||||
$hash->{INTERVAL} = 300;
|
||||
}
|
||||
}
|
||||
|
||||
return undef;
|
||||
|
Loading…
x
Reference in New Issue
Block a user