mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
76_msgDialog: fix userattr for msgConfig device
git-svn-id: https://svn.fhem.de/fhem/trunk@15575 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
d861874844
commit
5e34831df8
@ -543,7 +543,8 @@ sub archetype_attrCheck($$$$;$) {
|
|||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
CommandAttr(undef, "$name $attribute $desired");
|
fhem("attr $name $attribute $desired");
|
||||||
|
# CommandAttr(undef, "$name $attribute $desired");
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
@ -676,9 +677,14 @@ sub archetype_devspec($;$) {
|
|||||||
no warnings;
|
no warnings;
|
||||||
|
|
||||||
$devspecs .= " a:actual_$attribute=.+";
|
$devspecs .= " a:actual_$attribute=.+";
|
||||||
|
my $actual_attribute = AttrVal($SELF, "actual_$attribute", "");
|
||||||
|
|
||||||
|
if($actual_attribute =~ m/^\{.*\}$/){
|
||||||
|
$devspecs .= " .+";
|
||||||
|
}
|
||||||
|
else{
|
||||||
my $mandatory = join(" ", archetype_evalSpecials(
|
my $mandatory = join(" ", archetype_evalSpecials(
|
||||||
$SELF, AttrVal($SELF, "actual_$attribute", ""), "mandatory"
|
$SELF, $actual_attribute, "mandatory"
|
||||||
));
|
));
|
||||||
|
|
||||||
while($mandatory =~ m/[^\|]\|[^\|]/){
|
while($mandatory =~ m/[^\|]\|[^\|]/){
|
||||||
@ -693,6 +699,7 @@ sub archetype_devspec($;$) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
my @devspec;
|
my @devspec;
|
||||||
push(@devspec, devspec2array($_)) foreach (split(/[\s]+/, $devspecs));
|
push(@devspec, devspec2array($_)) foreach (split(/[\s]+/, $devspecs));
|
||||||
|
@ -398,6 +398,7 @@ sub monitoring_Notify($$) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# module Fn ###################################################################
|
# module Fn ###################################################################
|
||||||
|
# stateFormat #################################################################
|
||||||
sub monitoring_modify($) {
|
sub monitoring_modify($) {
|
||||||
my ($SELF, $list, $operation, $value, $wait) = split("\\|", shift);
|
my ($SELF, $list, $operation, $value, $wait) = split("\\|", shift);
|
||||||
my ($hash) = $defs{$SELF};
|
my ($hash) = $defs{$SELF};
|
||||||
@ -565,7 +566,7 @@ sub monitoring_setActive($) {
|
|||||||
<b>Define</b>
|
<b>Define</b>
|
||||||
<ul>
|
<ul>
|
||||||
<code>
|
<code>
|
||||||
define <name> <add-event> [<remove-event>]
|
define <name> monitoring <add-event> [<remove-event>]
|
||||||
</code>
|
</code>
|
||||||
<br>
|
<br>
|
||||||
The syntax for <add-event> and <remove-event> is the
|
The syntax for <add-event> and <remove-event> is the
|
||||||
@ -1026,7 +1027,7 @@ attr BeamerFilter_monitoring warningFuncRemove {return}</pre>
|
|||||||
<b>Define</b>
|
<b>Define</b>
|
||||||
<ul>
|
<ul>
|
||||||
<code>
|
<code>
|
||||||
define <name> <add-event> [<remove-event>]
|
define <name> mointoring <add-event> [<remove-event>]
|
||||||
</code>
|
</code>
|
||||||
<br>
|
<br>
|
||||||
Die Syntax für <add-event> und <remove-event> ist die
|
Die Syntax für <add-event> und <remove-event> ist die
|
||||||
|
Loading…
x
Reference in New Issue
Block a user