mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
20_GUEST.pm: add attribute rg_noDuration, see forum msg #226922
git-svn-id: https://svn.fhem.de/fhem/trunk@7127 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
d3deb75ffd
commit
e9d89a4f54
@ -56,7 +56,7 @@ sub GUEST_Initialize($) {
|
||||
$hash->{DefFn} = "GUEST_Define";
|
||||
$hash->{UndefFn} = "GUEST_Undefine";
|
||||
$hash->{AttrList} =
|
||||
"rg_locationHome rg_locationWayhome rg_locationUnderway rg_autoGoneAfter:12,16,24,26,28,30,36,48,60 rg_showAllStates:0,1 rg_realname:group,alias rg_states rg_locations rg_moods rg_moodDefault rg_moodSleepy "
|
||||
"rg_locationHome rg_locationWayhome rg_locationUnderway rg_autoGoneAfter:12,16,24,26,28,30,36,48,60 rg_showAllStates:0,1 rg_realname:group,alias rg_states rg_locations rg_moods rg_moodDefault rg_moodSleepy rg_noDuration:0,1 "
|
||||
. $readingFnAttributes;
|
||||
}
|
||||
|
||||
@ -792,6 +792,8 @@ sub GUEST_DurationTimer($;$) {
|
||||
|
||||
GUEST_RemoveInternalTimer( "DurationTimer", $hash );
|
||||
|
||||
if ( !defined($attr{$name}{noDuration}) || $attr{$name}{noDuration} == 0 ) {
|
||||
|
||||
# presence timer
|
||||
if ( defined( $hash->{READINGS}{presence}{VAL} )
|
||||
&& $hash->{READINGS}{presence}{VAL} eq "present" )
|
||||
@ -865,6 +867,7 @@ sub GUEST_DurationTimer($;$) {
|
||||
if ( !defined( $hash->{READINGS}{durTimerSleep}{VAL} )
|
||||
|| $hash->{READINGS}{durTimerSleep}{VAL} ne $durSleep_hr );
|
||||
readingsEndUpdate( $hash, 1 ) if ( !$silent );
|
||||
}
|
||||
|
||||
GUEST_InternalTimer( "DurationTimer", $timestampNow + 60,
|
||||
"GUEST_DurationTimer", $hash, 1 )
|
||||
@ -1151,6 +1154,9 @@ sub GUEST_StartInternalTimers($$) {
|
||||
<li>
|
||||
<b>rg_moods</b> - list of moods to be shown in FHEMWEB; separate entries by comma only and do NOT use spaces
|
||||
</li>
|
||||
<li>
|
||||
<b>rg_noDuration</b> - may be used to disable duration timer calculation (see readings durTimer*)
|
||||
</li>
|
||||
<li>
|
||||
<b>rg_passPresenceTo</b> - synchronize presence state with other GUEST or GUEST devices; separte devices by space
|
||||
</li>
|
||||
@ -1418,6 +1424,9 @@ sub GUEST_StartInternalTimers($$) {
|
||||
<li>
|
||||
<b>rg_moods</b> - Liste von Stimmungen, wie sie in FHEMWEB angezeigt werden sollen; mehrere Einträge nur durch Komma trennen und KEINE Leerzeichen verwenden
|
||||
</li>
|
||||
<li>
|
||||
<b>rg_noDuration</b> - deaktiviert die Berechnung der Zeitspannen (siehe Readings durTimer*)
|
||||
</li>
|
||||
<li>
|
||||
<b>rg_passPresenceTo</b> - synchronisiere die Anwesenheit mit anderen GUEST oder ROOMMATE Devices; mehrere Devices durch Leerzeichen trennen
|
||||
</li>
|
||||
|
Loading…
Reference in New Issue
Block a user