mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-05 17:48:44 +00:00
notify: make showTriggerTime default
git-svn-id: https://svn.fhem.de/fhem/trunk@5370 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
535080db49
commit
63a05d01cd
@ -70,7 +70,7 @@ notify_Exec($$)
|
|||||||
}
|
}
|
||||||
if($found) {
|
if($found) {
|
||||||
$ntfy->{STATE} =
|
$ntfy->{STATE} =
|
||||||
AttrVal($ln,'showTriggerTime',0) ? $dev->{NTFY_TRIGGERTIME} : 'active';
|
AttrVal($ln,'showTriggerTime',1) ? $dev->{NTFY_TRIGGERTIME} : 'active';
|
||||||
|
|
||||||
Log3 $ln, 5, "Triggering $ln";
|
Log3 $ln, 5, "Triggering $ln";
|
||||||
my (undef, $exec) = split("[ \t]+", $ntfy->{DEF}, 2);
|
my (undef, $exec) = split("[ \t]+", $ntfy->{DEF}, 2);
|
||||||
@ -235,7 +235,9 @@ notify_Attr(@)
|
|||||||
often not intended.</li>
|
often not intended.</li>
|
||||||
|
|
||||||
<li>showTriggerTime<br/>
|
<li>showTriggerTime<br/>
|
||||||
Replace STATE content 'active' by timestamp of last execution.</li>
|
Show the timestamp of the last execution as the status (STATE) of the
|
||||||
|
notify instance. Default is 1 (on).
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user