109 Commits

Author SHA1 Message Date
markusbloch
1d3c64dae6 PRESENCE: fix perl warning (Forum: #55673, #55699)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@11810 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-07-17 18:17:46 +00:00
markusbloch
46d8703545 PRESENCE: fix logging of STDERR in shellscript mode (Forum: #55472)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@11777 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-07-10 14:03:35 +00:00
markusbloch
f162b41830 PRESENCE: add AttrFn check for presenceThreshold
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@11754 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-07-06 19:47:03 +00:00
markusbloch
198f98324c PRESENCE: new attribute presenceThreshold (Forum: #55327)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@11750 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-07-06 16:20:00 +00:00
markusbloch
1d61af45ba PRESENCE: fix "Use of uninitialized value" log entries when qx() returns undef (Forum: #55290)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@11745 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-07-05 16:49:41 +00:00
markusbloch
6ecb180a24 PRESENCE: fix generating readings when definition is disabled (Forum: #55271)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@11739 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-07-04 20:30:50 +00:00
markusbloch
0143495f51 PRESENCE: added lepresenced commandref (by PatrickR), replaced special chars with html entities
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@11650 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-06-12 14:28:18 +00:00
markusbloch
d60624ec5a PRESENCE: new attribute bluetooth_hci_device to select a specific hci device (Forum: #54471); move initial check to NotifyFn
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@11647 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-06-11 11:47:06 +00:00
markusbloch
ad26a7056c PRESENCE: also honor the present timeout interval in mode lan-bluetooth (Forum: #54160)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@11607 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-06-04 08:51:35 +00:00
markusbloch
36fc387927 PRESENCE: fix bug within DefineFn syntax check (Forum: #54160)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@11601 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-06-02 20:05:21 +00:00
markusbloch
7ea8e74b83 PRESENCE: override $SIG{CHLD} setting during BlockingCall (Forum: #53356)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@11463 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-05-16 11:11:11 +00:00
markusbloch
aca8a311ff PRESENCE: fix minor commandref bug
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@11343 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-04-29 15:25:01 +00:00
markusbloch
8171c49886 PRESENCE: new attribute absenceThreshold to define a number of checks that have to result in "absent" before the state changes to "absent" (Forum: #51888)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@11215 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-04-10 07:28:20 +00:00
markusbloch
5d043bd352 PRESENCE: new collectord script and .deb package from r11212
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@11213 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-04-09 16:48:28 +00:00
markusbloch
487d17a141 PRESENCE/presenced: new presenced package released
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@10989 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-03-04 17:42:19 +00:00
markusbloch
6bb68392b5 PRESENCE: fix log warning "use of uninitialized value ..." when using power set command without any argument. (Forum: #48499)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@10686 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-01-31 15:46:23 +00:00
markusbloch
f6e803e54d PRESENCE: add =item helper marker
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@10541 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2016-01-16 22:09:54 +00:00
markusbloch
2d63e963a9 PRESENCE: remove unwanted html tags from commandref (Forum: #46371)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@10295 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2015-12-29 18:47:24 +00:00
markusbloch
63ce4c8a26 PRESENCE/collectord: new collectord-1.5.deb package released
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@10044 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2015-11-29 13:55:53 +00:00
markusbloch
9f2336d1c6 PRESENCE: changing %NAME,... to $NAME,... in commandref for feature level 5.7
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@9970 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2015-11-22 14:14:42 +00:00
markusbloch
bb4ecc1a11 PRESENCE: support for Solaris ping (mode: local-ping)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@9454 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2015-10-14 17:01:10 +00:00
markusbloch
da62f854bf PRESENCE: rescheduling new check if fork fails (by frank, Forum: #40119)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@9111 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2015-08-22 16:46:24 +00:00
markusbloch
662bcdf656 PRESENCE: display right state for disabled lan-bluetooth device after FHEM startup
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@8638 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2015-05-26 19:34:04 +00:00
markusbloch
b92bea50cb PRESENCE: optimize logging for local-bluetooth mode (Forum: #34368)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@8191 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2015-03-10 22:34:23 +00:00
markusbloch
bf9d4a11bc PRESENCE: new reading "presence" which contains the current (or last known) presence state, which can be just "absent" or "present" (Forum: #29334)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@7485 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2015-01-09 16:16:07 +00:00
markusbloch
25f491dfc4 PRESENCE: fixing not working timer, when using set [...] statusRequest (additionally to r7184, thanks to Patrick)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@7278 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-12-20 17:30:27 +00:00
markusbloch
90f64f2f32 PRESENCE: fixing not working timer, when using set [...] statusRequest
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@7184 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-12-10 20:49:34 +00:00
markusbloch
0c512d2c93 PRESENCE: fixing race condition of failed re-init after removed disabled attribute
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@6950 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-11-11 21:09:42 +00:00
markusbloch
adcf0fd282 PRESENCE: rerouting STDERR to STDOUT for ping; use char class instead of case-in-sensitive regexp (Forum #27558)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@6706 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-10-07 21:24:25 +00:00
markusbloch
0191a3894b PRESENCE: try to fix flapping active state (Forum #27255)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@6621 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-09-26 15:11:20 +00:00
markusbloch
3df4f84a92 PRESENCE:
- fixing presence detection in mode fritzbox with new Fritz!OS 6.20 (by Markus M.)
- mode fritzbox supports MAC address (by Markus M.)
- fixing not working internal timer in case of a statusRequest when device is disabled
- minor fixes and docu changes


git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@6570 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-09-19 10:20:15 +00:00
markusbloch
15cb68f84f PRESENCE: new state event "error" and "disabled"; minor log improvements
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@6341 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-08-01 21:56:21 +00:00
markusbloch
fac2cf66f4 PRESENCE: harmonize log output
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@6340 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-08-01 21:24:14 +00:00
markusbloch
825432afd8 PRESENCE: using AnalyzeCommandChain for new "power" set command instead of perl eval
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@6255 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-07-14 20:58:50 +00:00
markusbloch
b915cbc998 PRESENCE: fixing minor mistakes in german commandref
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@6246 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-07-12 22:05:31 +00:00
markusbloch
60a1559e2e PRESENCE: add new set command "powerOn" to startup the device via ppowerOnFn given by attribute "powerOnFn"
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@6245 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-07-12 22:00:35 +00:00
markusbloch
c40c699297 PRESENCE: fixing wrong presence state for mode lan-ping when device is unreachable
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@5434 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-04-04 15:43:23 +00:00
markusbloch
d05245b818 PRESENCE: using usleep also in PRESENCE_ExecuteFritzBoxCMD() subroutine
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@5198 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-03-10 23:01:01 +00:00
markusbloch
f12af1bca7 PRESENCE: use getlogin and getpwuid to obtain FHEM username; use usleep instead of sleep.
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@5188 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-03-10 16:58:36 +00:00
markusbloch
b347a761e2 PRESENCE: don't start a local scan in AttrFn before DefineFn has completed.
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@5031 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-02-23 21:41:47 +00:00
markusbloch
c0950c18ac PRESENCE: fixing present-check-interval to be equal like regular check-interval if it's not set
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4824 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-02-06 19:33:24 +00:00
markusbloch
15594be1e0 PRESENCE: fixing wrong binary check for ctlmgr_ctl
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4628 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-01-12 10:16:24 +00:00
markusbloch
ba1ee3ddcc PRESENCE: fixing wrong string operator
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4619 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-01-11 12:00:42 +00:00
markusbloch
e9c854010f PRESENCE: fixing user detection on FritzBox! , replacing tabulator with white spaces
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4614 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2014-01-10 21:26:50 +00:00
markusbloch
e69419b471 PRESENCE: adapting commandref to r4341
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4342 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-12-08 09:39:25 +00:00
markusbloch
04aff4864a PRESENCE: "statusRequest" command for lan-bluetooth mode
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4341 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-12-07 18:39:02 +00:00
markusbloch
3c96ed0630 PRESENCE: new collectord package
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4340 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-12-07 17:16:21 +00:00
markusbloch
fd32832668 PRESENCE: use "w" parameter when busybox ps is used in mode local-bluetooth
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4319 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-12-03 17:28:44 +00:00
markusbloch
f929347a64 PRESENCE: fixing nonworking initialization in mode "lan-bluetooth"; code cosmetics
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4205 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-11-11 20:42:10 +00:00
markusbloch
b312c8d32d PRESENCE: fixing not working re-initialization in mode lan-bluetooth
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4140 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-11-02 19:59:09 +00:00