2
0
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:
jpawlowski 2017-04-21 17:48:17 +00:00
parent 024b661036
commit 9d3ebe44f3
4 changed files with 5 additions and 1 deletions

View File

@ -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 "

View File

@ -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 "

View File

@ -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 "

View File

@ -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" );