diff --git a/fhem/FHEM/20_GUEST.pm b/fhem/FHEM/20_GUEST.pm index 46e8a174a..f627a95fc 100644 --- a/fhem/FHEM/20_GUEST.pm +++ b/fhem/FHEM/20_GUEST.pm @@ -459,8 +459,8 @@ sub GUEST_Set($@) { : "absent"; # stop any running wakeup-timers in case state changed - my $wakeupState = AttrVal( $name, "wakeup", 0 ); - if ($wakeupState) { + my $wakeupState = ReadingsVal( $name, "wakeup", 0 ); + if ($wakeupState > 0) { my $wakeupDeviceList = AttrVal( $name, "rg_wakeupDevice", 0 ); for my $wakeupDevice ( split /,/, $wakeupDeviceList ) { @@ -471,9 +471,11 @@ sub GUEST_Set($@) { { # forced-stop only if resident is not present anymore if ( $newpresence eq "present" ) { + Log3 $name, 4, "ROOMMATE $name: ending wakeup-timer $wakeupDevice"; fhem "set $wakeupDevice:FILTER=running!=0 end"; } else { + Log3 $name, 4, "ROOMMATE $name: stopping wakeup-timer $wakeupDevice"; fhem "set $wakeupDevice:FILTER=running!=0 stop"; } } @@ -822,14 +824,14 @@ sub GUEST_Set($@) { # create new weblink device fhem "define $locationmapName weblink htmlCode { -'
+'
' +' }"; fhem "attr $locationmapName alias Current Location"; fhem @@ -1186,15 +1188,11 @@ sub GUEST_StartInternalTimers($$) { =item helper =begin html -

- -

-

- GUEST -

-
+ +

GUEST

+ +
+

+


Set -
+ -

+

-
+

+ +

-
+

+ +

-
+

+ +

-
+

+ +

-
+

+ +

Attributes
-
+

+


Generated Readings/Events:
-
+
- + + =end html =begin html_DE -

- -

-

- GUEST -

-
+ +

GUEST

+ +
+

+


Set -
+ -

+

-
+

+ +

-
+

+ +

-
+

+ +

-
+

+ +

-
+

+ +

Attribute
-
+

+


Generierte Readings/Events:
-
+
- + + =end html_DE diff --git a/fhem/FHEM/20_ROOMMATE.pm b/fhem/FHEM/20_ROOMMATE.pm index 5d7efe3bf..c644574df 100644 --- a/fhem/FHEM/20_ROOMMATE.pm +++ b/fhem/FHEM/20_ROOMMATE.pm @@ -461,8 +461,8 @@ sub ROOMMATE_Set($@) { : "absent"; # stop any running wakeup-timers in case state changed - my $wakeupState = AttrVal( $name, "wakeup", 0 ); - if ($wakeupState) { + my $wakeupState = ReadingsVal( $name, "wakeup", 0 ); + if ($wakeupState > 0) { my $wakeupDeviceList = AttrVal( $name, "rr_wakeupDevice", 0 ); for my $wakeupDevice ( split /,/, $wakeupDeviceList ) { @@ -473,9 +473,11 @@ sub ROOMMATE_Set($@) { { # forced-stop only if resident is not present anymore if ( $newpresence eq "present" ) { + Log3 $name, 4, "ROOMMATE $name: ending wakeup-timer $wakeupDevice"; fhem "set $wakeupDevice:FILTER=running!=0 end"; } else { + Log3 $name, 4, "ROOMMATE $name: stopping wakeup-timer $wakeupDevice"; fhem "set $wakeupDevice:FILTER=running!=0 stop"; } } @@ -804,14 +806,14 @@ sub ROOMMATE_Set($@) { # create new weblink device fhem "define $locationmapName weblink htmlCode { -'
+'
' +' }"; fhem "attr $locationmapName alias Current Location"; fhem @@ -1168,15 +1170,11 @@ sub ROOMMATE_StartInternalTimers($$) { =item helper =begin html -

- -

-

- ROOMMATE -

-
+ +

ROOMMATE

+ +
+

+


Set -
+ -

+

-
+

+ +

-
+

+ +

-
+

+ +

-
+

+ +

-
+

+ +

Attributes
-
+

+


Generated Readings/Events:
-
+
- + + =end html =begin html_DE -

- -

-

- ROOMMATE -

-
+ +

ROOMMATE

+ +
+

+


Set -
+ -

+

-
+

+ +

-
+

+ +

-
+

+ +

-
+

+ +

-
+

+ +

Attribute
-
+

+


Generierte Readings/Events:
-
+
- + + =end html_DE