From 5d7353d2434a1d64cc866afdbddd21b6987a67d6 Mon Sep 17 00:00:00 2001 From: jpawlowski Date: Sun, 8 Mar 2015 11:41:16 +0000 Subject: [PATCH] 20_GUEST, 20_ROOMMATE: add FILTER to notify example in commandref git-svn-id: https://svn.fhem.de/fhem/trunk@8171 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/20_GUEST.pm | 4 ++-- fhem/FHEM/20_ROOMMATE.pm | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fhem/FHEM/20_GUEST.pm b/fhem/FHEM/20_GUEST.pm index 372eed00d..edbbd8ac6 100755 --- a/fhem/FHEM/20_GUEST.pm +++ b/fhem/FHEM/20_GUEST.pm @@ -1068,7 +1068,7 @@ sub GUEST_StartInternalTimers($$) {
If you are using the GEOFANCY module, you can easily have your location updated with GEOFANCY events by defining a simple NOTIFY-trigger like this:

- define n_rg_Guest.location notify geofancy:currLoc_Guest.* set rg_Guest location $EVTPART1
+ define n_rg_Guest.location notify geofancy:currLoc_Guest.* set rg_Guest location:FILTER=STATE!=$EVTPART1 $EVTPART1

By defining geofencing zones called 'home' and 'wayhome' in the iOS app, you automatically get all the features of automatic state changes described above. @@ -1338,7 +1338,7 @@ sub GUEST_StartInternalTimers($$) {
Wenn Sie auch das GEOFANCY Modul verwenden, können Sie das Reading 'location' ganz einfach über GEOFANCY Ereignisse aktualisieren lassen. Definieren Sie dazu einen NOTIFY-Trigger wie diesen:

- define n_rg_Manfred.location notify geofancy:currLoc_Manfred.* set rg_Manfred location $EVTPART1
+ define n_rg_Manfred.location notify geofancy:currLoc_Manfred.* set rg_Manfred location:FILTER=STATE!=$EVTPART1 $EVTPART1

Durch das Anlegen von Geofencing-Zonen mit den Namen 'home' und 'wayhome' in der iOS App werden zukünftig automatisch alle Statusänderungen wie oben beschrieben durchgeführt. diff --git a/fhem/FHEM/20_ROOMMATE.pm b/fhem/FHEM/20_ROOMMATE.pm index 570ac7fcf..a335ed35c 100755 --- a/fhem/FHEM/20_ROOMMATE.pm +++ b/fhem/FHEM/20_ROOMMATE.pm @@ -1051,7 +1051,7 @@ sub ROOMMATE_StartInternalTimers($$) {
If you are using the GEOFANCY module, you can easily have your location updated with GEOFANCY events by defining a simple NOTIFY-trigger like this:

- define n_rr_Manfred.location notify geofancy:currLoc_Manfred.* set rr_Manfred location $EVTPART1
+ define n_rr_Manfred.location notify geofancy:currLoc_Manfred.* set rr_Manfred location:FILTER=STATE!=$EVTPART1 $EVTPART1

By defining geofencing zones called 'home' and 'wayhome' in the iOS app, you automatically get all the features of automatic state changes described above. @@ -1321,7 +1321,7 @@ sub ROOMMATE_StartInternalTimers($$) {
Wenn Sie auch das GEOFANCY Modul verwenden, können Sie das Reading 'location' ganz einfach über GEOFANCY Ereignisse aktualisieren lassen. Definieren Sie dazu einen NOTIFY-Trigger wie diesen:

- define n_rr_Manfred.location notify geofancy:currLoc_Manfred.* set rr_Manfred location $EVTPART1
+ define n_rr_Manfred.location notify geofancy:currLoc_Manfred.* set rr_Manfred location:FILTER=STATE!=$EVTPART1 $EVTPART1

Durch das Anlegen von Geofencing-Zonen mit den Namen 'home' und 'wayhome' in der iOS App werden zukünftig automatisch alle Statusänderungen wie oben beschrieben durchgeführt.