change state event then set active

This commit is contained in:
Marko Oldenburg 2020-10-24 10:04:27 +02:00
parent 1f3ab13b0c
commit 7ae03846bf
2 changed files with 2 additions and 2 deletions

View File

@ -1,2 +1,2 @@
UPD 2020-10-20_15:51:15 6126 FHEM/98_backupToStorage.pm
UPD 2020-10-24_09:59:52 16828 lib/FHEM/backupToStorage.pm
UPD 2020-10-24_10:04:23 16831 lib/FHEM/backupToStorage.pm

View File

@ -297,7 +297,7 @@ sub Set {
elsif ( lc $cmd eq 'active' ) {
return "usage: $cmd" if ( scalar( @{$aArg} ) != 0 );
readingsSingleUpdate( $hash, 'state', $cmd, 1 );
readingsSingleUpdate( $hash, 'state', 'ready', 1 );
}
elsif ( lc $cmd eq 'inactive' ) {
return "usage: $cmd" if ( scalar( @{$aArg} ) != 0 );