Hallo zusammen,
ich würde aus der Anwesenheitssteuerung gerne Zeitpunkt der Änderung einer Location schreiben. Ein Log schriebe ich schon, da steht aber leider nicht drin was ich will :-(
2017-02-01_08:22:33 rr_location_michael durTimerAbsence_cr: 78
2017-02-01_08:22:33 rr_location_michael durTimerAbsence: 01:18:01
2017-02-01_08:23:33 rr_location_michael durTimerAbsence_cr: 79
2017-02-01_08:23:33 rr_location_michael durTimerAbsence: 01:19:01
2017-02-01_08:24:33 rr_location_michael durTimerAbsence_cr: 80
aus:
define FileLog_Michael FileLog ./log/Bewohner_Michael-%Y-%m.log rr_location_michael
in list rr_location_michael stehen auch die eigentlich gewünschten Infos:
Internals:
DEF Eltern,Bewohner
NAME rr_location_michael
NR 406
NTFY_ORDER 50-rr_location_michael
RESIDENTGROUPS Eltern,Bewohner,
STATE home
TYPE ROOMMATE
Readings:
2017-01-30 17:49:11 durTimerAbsence 00:00:00
2017-01-30 17:49:11 durTimerAbsence_cr 0
2017-02-04 23:11:43 durTimerPresence 125:22:31
2017-02-04 23:11:43 durTimerPresence_cr 7523
2016-07-05 21:30:23 durTimerSleep 00:00:00
2016-07-05 21:30:23 durTimerSleep_cr 0
2017-01-30 17:49:11 lastArrival 2017-01-30 17:49:11
2017-01-30 07:18:59 lastDeparture 2017-01-30 07:18:59
2017-01-30 17:49:11 lastDurAbsence 10:30:12
2017-01-30 17:49:11 lastDurAbsence_cr 630
2017-01-30 07:18:59 lastDurPresence 12:44:29
2017-01-30 07:18:59 lastDurPresence_cr 764
2017-02-03 18:22:10 lastLocation TestGeoZone
2017-01-30 07:18:59 lastMood calm
2017-01-30 17:49:11 lastState absent
2017-02-03 18:22:10 location home
2017-01-30 17:49:11 mood calm
2017-01-30 17:49:11 presence present
2017-01-30 17:49:11 state home
2016-07-05 21:39:44 wayhome 0
Timer:
Rr_location_michael_durationtimer:
HASH rr_location_michael
MODIFIER DurationTimer
NAME rr_location_michael_DurationTimer
Attributes:
alias Michael
devStateIcon .*home:user_available:absent .*absent:user_away:home .*gone:user_ext_away:home .*gotosleep:scene_toilet:asleep .*asleep:scene_sleeping:awoken .*awoken:scene_sleeping_alternat:home .*:user_unknown:home
group location
icon people_sensor
room Haus,Residents
rr_realname group
sortby 1
webCmd state
Das ist doch bestimmt ein Bedienungsfehler von mir :-(
Gruß
Micha
Hi,
also so 100%ig verstehe ich nicht, was Du willst. Ich glaube, Du vermisst Einträge im Logfile. Richtig? Falls ja, dann gib uns mal ein "list FileLog_Michael" und einen Ausschnitt aus dem Event-Monitor, in dem man die gewünschten Events sieht.
Gruß,
Thorsten
Hallo Thorsten,
ich würde gerne in den Logs sehen, wann ich wo war; also home work ....
Im Eventmonitor kommt zum Beispiel wenn ich zu Hause eintreffe:
2017-02-05 10:48:24 ROOMMATE rr_location_michael lastState: absent
2017-02-05 10:48:24 ROOMMATE rr_location_michael home
2017-02-05 10:48:24 ROOMMATE rr_location_michael mood: calm
2017-02-05 10:48:24 ROOMMATE rr_location_michael presence: present
2017-02-05 10:48:24 ROOMMATE rr_location_michael location: home
2017-02-05 10:48:24 ROOMMATE rr_location_michael lastArrival: 2017-02-05 10:48:23
2017-02-05 10:48:24 ROOMMATE rr_location_michael lastDurAbsence: 00:00:37
2017-02-05 10:48:24 ROOMMATE rr_location_michael lastDurAbsence_cr: 1
ein List auf FileLog_Michael ergibt:
Internals:
DEF ./log/Bewohner_Michael-%Y-%m.log rr_location_michael
NAME FileLog_Michael
NOTIFYDEV rr_location_michael
NR 514
NTFY_ORDER 50-FileLog_Michael
REGEXP rr_location_michael
STATE active
TYPE FileLog
currentlogfile ./log/Bewohner_Michael-2017-02.log
logfile ./log/Bewohner_Michael-%Y-%m.log
Readings:
2017-02-05 10:46:41 linesInTheFile 97870
Attributes:
im Logfile taucht:
2017-02-05_10:48:23 rr_location_michael lastState: absent
2017-02-05_10:48:23 rr_location_michael home
2017-02-05_10:48:23 rr_location_michael mood: calm
2017-02-05_10:48:23 rr_location_michael presence: present
2017-02-05_10:48:23 rr_location_michael location: home
2017-02-05_10:48:23 rr_location_michael lastArrival: 2017-02-05 10:48:23
2017-02-05_10:48:23 rr_location_michael lastDurAbsence: 00:00:37
2017-02-05_10:48:23 rr_location_michael lastDurAbsence_cr: 1
auf. allerdings mit ganz viel "dahinter" und "davor" was ich nciht haben möchte, zum Besipiel:
017-02-05_10:30:24 rr_location_michael durTimerPresence_cr: 8201
2017-02-05_10:30:24 rr_location_michael durTimerPresence: 136:41:13
2017-02-05_10:31:24 rr_location_michael durTimerPresence_cr: 8202
2017-02-05_10:31:24 rr_location_michael durTimerPresence: 136:42:13
2017-02-05_10:32:24 rr_location_michael durTimerPresence_cr: 8203
2017-02-05_10:32:24 rr_location_michael durTimerPresence: 136:43:13
2017-02-05_10:33:24 rr_location_michael durTimerPresence_cr: 8204
2017-02-05_10:33:24 rr_location_michael durTimerPresence: 136:44:13
2017-02-05_10:34:24 rr_location_michael durTimerPresence_cr: 8205
2017-02-05_10:34:24 rr_location_michael durTimerPresence: 136:45:13
2017-02-05_10:35:24 rr_location_michael durTimerPresence_cr: 8206
2017-02-05_10:35:24 rr_location_michael durTimerPresence: 136:46:13
2017-02-05_10:36:24 rr_location_michael durTimerPresence_cr: 8207
2017-02-05_10:36:24 rr_location_michael durTimerPresence: 136:47:13
2017-02-05_10:37:24 rr_location_michael durTimerPresence_cr: 8208
2017-02-05_10:37:24 rr_location_michael durTimerPresence: 136:48:13
2017-02-05_10:38:24 rr_location_michael durTimerPresence_cr: 8209
2017-02-05_10:38:24 rr_location_michael durTimerPresence: 136:49:13
2017-02-05_10:39:24 rr_location_michael durTimerPresence_cr: 8210
2017-02-05_10:39:24 rr_location_michael durTimerPresence: 136:50:13
2017-02-05_10:40:24 rr_location_michael durTimerPresence_cr: 8211
2017-02-05_10:40:24 rr_location_michael durTimerPresence: 136:51:13
2017-02-05_10:41:24 rr_location_michael durTimerPresence_cr: 8212
2017-02-05_10:41:24 rr_location_michael durTimerPresence: 136:52:13
2017-02-05_10:42:24 rr_location_michael durTimerPresence_cr: 8213
2017-02-05_10:42:24 rr_location_michael durTimerPresence: 136:53:13
2017-02-05_10:43:24 rr_location_michael durTimerPresence_cr: 8214
2017-02-05_10:43:24 rr_location_michael durTimerPresence: 136:54:13
2017-02-05_10:44:24 rr_location_michael durTimerPresence_cr: 8215
2017-02-05_10:44:24 rr_location_michael durTimerPresence: 136:55:13
2017-02-05_10:45:24 rr_location_michael durTimerPresence_cr: 8216
2017-02-05_10:45:24 rr_location_michael durTimerPresence: 136:56:13
2017-02-05_10:46:41 rr_location_michael durTimerPresence_cr: 8218
2017-02-05_10:46:41 rr_location_michael durTimerPresence: 136:57:30
2017-02-05_10:47:41 rr_location_michael durTimerPresence_cr: 8219
2017-02-05_10:47:41 rr_location_michael durTimerPresence: 136:58:30
Gruß
Micha
Zitat von: mfeske am 05 Februar 2017, 10:54:09
im Logfile taucht:
2017-02-05_10:48:23 rr_location_michael location: home
...ist das nicht das, was Du willst?
Gruß,
Thorsten
Dann musst du deine Regex enger setzen wenn du nicht alle Readings haben möchtest. Wenn du nur location im Log haben möchtest dann
DEF ./log/Bewohner_Michael-%Y-%m.log rr_location_michael.location:.*