mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
72ab1f3f69
git-svn-id: https://svn.fhem.de/fhem/trunk@13246 2b470e98-0d58-463d-a4d8-8e2adae1ed80
49 lines
888 B
Perl
49 lines
888 B
Perl
# $Id$
|
|
|
|
package main;
|
|
use strict;
|
|
use warnings;
|
|
|
|
sub unmark_Initialize($$) {
|
|
$cmds{unmark} = { Fn => "CommandUnmark",
|
|
Hlp =>"<TEMPORARY|VOLATILE>,unmark devices"};
|
|
}
|
|
|
|
sub CommandUnmark($$)
|
|
{
|
|
my ($cl, $param) = @_;
|
|
my ($devspec,@marks) = split (" ",$param);
|
|
my @devices = devspec2array($devspec,undef);
|
|
my $ret = "";
|
|
|
|
foreach my $m (@marks) {
|
|
$m = uc($m);
|
|
next if( $m ne "TEMPORARY" && $m ne "VOLATILE" );
|
|
foreach my $d (@devices){
|
|
delete $defs{$d}{$m};
|
|
$ret .= "$d unmarked as $m\n";
|
|
}
|
|
}
|
|
return $ret;
|
|
}
|
|
|
|
1;
|
|
|
|
=pod
|
|
=item command
|
|
=item summary mark devices for TEMPORARY or VOLATILE
|
|
=item summary_DE markiert Geräte als TEMPORARY oder VOLATILE
|
|
=item command
|
|
=begin html
|
|
|
|
<a name="unmark"></a>
|
|
<h3>unmark</h3>
|
|
<ul>
|
|
<code>unmark <devspec> <TEMPORARY|VOLATILE></code>
|
|
<br><br>
|
|
</ul>
|
|
|
|
=end html
|
|
|
|
=cut
|