mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
RESIDENTStk: fix wakeupResetSwitcher creation
git-svn-id: https://svn.fhem.de/fhem/trunk@19533 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1e63f6700d
commit
f4d79b0da9
@ -3,10 +3,9 @@
|
|||||||
package main;
|
package main;
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use Data::Dumper;
|
use POSIX;
|
||||||
use Time::Local;
|
|
||||||
|
|
||||||
require RESIDENTStk;
|
use RESIDENTStk;
|
||||||
our ( %RESIDENTStk_types, %RESIDENTStk_subTypes );
|
our ( %RESIDENTStk_types, %RESIDENTStk_subTypes );
|
||||||
|
|
||||||
# initialize ##################################################################
|
# initialize ##################################################################
|
||||||
|
@ -3,10 +3,9 @@
|
|||||||
package main;
|
package main;
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use Data::Dumper;
|
use POSIX;
|
||||||
use Time::Local;
|
|
||||||
|
|
||||||
require RESIDENTStk;
|
use RESIDENTStk;
|
||||||
our ( @RESIDENTStk_attr, %RESIDENTStk_subTypes );
|
our ( @RESIDENTStk_attr, %RESIDENTStk_subTypes );
|
||||||
|
|
||||||
# initialize ##################################################################
|
# initialize ##################################################################
|
||||||
|
@ -3,10 +3,9 @@
|
|||||||
package main;
|
package main;
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use Data::Dumper;
|
use POSIX;
|
||||||
use Time::Local;
|
|
||||||
|
|
||||||
require RESIDENTStk;
|
use RESIDENTStk;
|
||||||
our ( @RESIDENTStk_attr, %RESIDENTStk_subTypes );
|
our ( @RESIDENTStk_attr, %RESIDENTStk_subTypes );
|
||||||
|
|
||||||
# initialize ##################################################################
|
# initialize ##################################################################
|
||||||
|
@ -3,10 +3,9 @@
|
|||||||
package main;
|
package main;
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use Data::Dumper;
|
use POSIX;
|
||||||
use Time::Local;
|
|
||||||
|
|
||||||
require RESIDENTStk;
|
use RESIDENTStk;
|
||||||
our ( @RESIDENTStk_attr, %RESIDENTStk_subTypes );
|
our ( @RESIDENTStk_attr, %RESIDENTStk_subTypes );
|
||||||
|
|
||||||
# initialize ##################################################################
|
# initialize ##################################################################
|
||||||
|
@ -3,10 +3,14 @@
|
|||||||
package main;
|
package main;
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use Data::Dumper;
|
use POSIX;
|
||||||
|
|
||||||
use Unit;
|
|
||||||
use FHEM::Meta;
|
use FHEM::Meta;
|
||||||
|
use Time::HiRes qw(gettimeofday);
|
||||||
|
use Time::Local;
|
||||||
|
use Unit;
|
||||||
|
#use Data::Dumper;
|
||||||
|
|
||||||
our ( @RESIDENTStk_attr, %RESIDENTStk_types, %RESIDENTStk_subTypes );
|
our ( @RESIDENTStk_attr, %RESIDENTStk_types, %RESIDENTStk_subTypes );
|
||||||
|
|
||||||
# module variables ############################################################
|
# module variables ############################################################
|
||||||
@ -1342,7 +1346,7 @@ m/^((?:DELETE)?ATTR)\s+([A-Za-z\d._]+)\s+([A-Za-z\d_\.\-\/]+)(?:\s+(.*)\s*)?$/
|
|||||||
next
|
next
|
||||||
unless ( $attr eq $prefix . "wakeupDevice"
|
unless ( $attr eq $prefix . "wakeupDevice"
|
||||||
|| $attr eq $prefix . "presenceDevices"
|
|| $attr eq $prefix . "presenceDevices"
|
||||||
|| $attr eq $prefix . "wakeupResetSwitcher" );
|
|| $attr eq "wakeupResetSwitcher" );
|
||||||
|
|
||||||
# when attributes of RESIDENTS, ROOMMATE, GUEST or PET were changed
|
# when attributes of RESIDENTS, ROOMMATE, GUEST or PET were changed
|
||||||
if ( $d eq $name ) {
|
if ( $d eq $name ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user