mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-19 00:26:03 +00:00
RESIDENTS: add NotifyOrderPrefix
git-svn-id: https://svn.fhem.de/fhem/trunk@14060 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
024b661036
commit
9d3ebe44f3
@ -18,6 +18,7 @@ sub RESIDENTS_Initialize($) {
|
||||
$hash->{AttrFn} = "RESIDENTStk_Attr";
|
||||
$hash->{NotifyFn} = "RESIDENTStk_Notify";
|
||||
|
||||
$hash->{NotifyOrderPrefix} = "45-";
|
||||
$hash->{AttrList} =
|
||||
"disable:1,0 disabledForIntervals do_not_notify:1,0 "
|
||||
. "rgr_states:multiple-strict,home,gotosleep,asleep,awoken,absent,gone rgr_lang:EN,DE rgr_noDuration:0,1 rgr_showAllStates:0,1 rgr_wakeupDevice "
|
||||
|
@ -19,6 +19,7 @@ sub GUEST_Initialize($) {
|
||||
$hash->{AttrFn} = "RESIDENTStk_Attr";
|
||||
$hash->{NotifyFn} = "RESIDENTStk_Notify";
|
||||
|
||||
$hash->{NotifyOrderPrefix} = "35-";
|
||||
$hash->{AttrList} =
|
||||
"disable:1,0 disabledForIntervals do_not_notify:1,0 "
|
||||
. "rg_states:multiple-strict,home,gotosleep,asleep,awoken,absent,none "
|
||||
|
@ -19,6 +19,7 @@ sub ROOMMATE_Initialize($) {
|
||||
$hash->{AttrFn} = "RESIDENTStk_Attr";
|
||||
$hash->{NotifyFn} = "RESIDENTStk_Notify";
|
||||
|
||||
$hash->{NotifyOrderPrefix} = "40-";
|
||||
$hash->{AttrList} =
|
||||
"disable:1,0 disabledForIntervals do_not_notify:1,0 "
|
||||
. "rr_states:multiple-strict,home,gotosleep,asleep,awoken,absent,gone "
|
||||
|
@ -1084,7 +1084,8 @@ sub RESIDENTStk_Notify($$) {
|
||||
|
||||
# init RESIDENTS, ROOMMATE or GUEST devices after boot
|
||||
if ( $_ =~
|
||||
m/^INITIALIZED|REREADCFG|DEFINED.+|MODIFIED.+|DELETED.+$/ )
|
||||
m/^INITIALIZED|REREADCFG|DEFINED.+|MODIFIED.+|RENAMED.+|DELETED.+$/
|
||||
)
|
||||
{
|
||||
RESIDENTStk_findResidentSlaves($hash)
|
||||
if ( $TYPE eq "RESIDENTS" );
|
||||
|
Loading…
x
Reference in New Issue
Block a user