PRESENCE cover version - anderer Ansatz basierend auf aktuellem Code

Begonnen von martinp876, 23 Dezember 2020, 14:38:45

Vorheriges Thema - Nächstes Thema

Newbee

Moin,

wünsche ein gesundes Neues Jahr.

Sodele, nach nun 4 Tagen und einem Umzug des FHEM auf ein neues Major Release von Ubuntu hier nun eine Auffälligkeit.


2021.01.03 08:35:59 1: PERL WARNING: Use of uninitialized value within %stateH in hash element at ./FHEM/73_PRESENCE.pm line 833.
2021.01.03 08:36:16 1: PERL WARNING: Argument "device_name='iPhone A'" isn't numeric in split at ./FHEM/73_PRESENCE.pm line 651.
2021.01.03 08:36:22 1: PERL WARNING: Argument "device_name='iPhone B'" isn't numeric in split at ./FHEM/73_PRESENCE.pm line 651.
2021.01.03 08:36:29 1: PERL WARNING: Argument "device_name='iPhone C'" isn't numeric in split at ./FHEM/73_PRESENCE.pm line 651.
2021.01.03 08:36:35 1: PERL WARNING: Argument "device_name='iPhone D'" isn't numeric in split at ./FHEM/73_PRESENCE.pm line 651.


Funktionieren tut es trotz der Perl Warnungen. Diese sollten aber eher nicht sein, oder?  :o

So wie es aussieht geschieht dies nur nach neustart von FHEM.....

Grüße
Intel-NUC mit ubuntu server 20.04; FHEM 6.0
HM, Dect, Netatmo, Hue

binford6000

Hier auch ein paar Perl-Warnungen beim Neustart:
2021.01.03 11:26:21.033 1:  PERL WARNING: Use of uninitialized value $_ in pattern match (m//) at ./FHEM/73_PRESENCE.pm line 554, <$fh> line 1523.
2021.01.03 11:26:21.034 1:  PERL WARNING: Argument "condense" isn't numeric in numeric ne (!=) at ./FHEM/73_PRESENCE.pm line 554, <$fh> line 1523.
2021.01.03 11:26:21.039 1:  PERL WARNING: Use of uninitialized value $_ in pattern match (m//) at ./FHEM/73_PRESENCE.pm line 554, <$fh> line 1531.
2021.01.03 11:26:21.040 1:  PERL WARNING: Argument "verbose" isn't numeric in numeric ne (!=) at ./FHEM/73_PRESENCE.pm line 554, <$fh> line 1531.


#VGS

binford6000

Mir ist noch was aufgefallen:

  • Die beiden lan-bluetooth entities liefen problemlos
  • Hab mich nur gewundert dass ein notify PREDaemon:.*pre:.absent {
       fhem("set fhembot msg Abwesend: $EVTPART0")}
    nicht absence gemeldet hat
  • Die Readings im Daemon waren gar nicht vorhanden!
  • Ich habe daraufhin die beiden gtags gelöscht und via RAW neu angelegt
  • Jetzt sind zwar die Readings im Daemon da aber die beiden gtags auf error
Das steht dazu im Log:
2021.01.03 18:08:18.762 3:  Opening christine_gtag.pre device 10.3.3.9:5333
2021.01.03 18:08:18.765 3:  christine_gtag.pre device opened
2021.01.03 18:08:31.547 1:  PERL WARNING: Use of uninitialized value within %stateH in hash element at ./FHEM/73_PRESENCE.pm line 833.
2021.01.03 18:08:31.548 3:  eval: {PRESENCE_daemonScanReply('PREDaemon0#christine_gtag.pre|error')}
2021.01.03 18:09:28.979 3:  Opening sebastian.gtag.pre device 10.3.3.9:5333
2021.01.03 18:09:28.983 3:  sebastian.gtag.pre device opened
2021.01.03 18:11:58.781 5:  PRESENCE (christine_gtag.pre) - starting local scan


Bei verbose 5 kommt nicht mehr...

Hier noch einer der beiden gtags:
Internals:
   ADDRESS    7C:2F:80:98:AC:0F
   CFGFN     
   DEF        lan-bluetooth 7C:2F:80:98:AC:0F 10.3.3.9:5333
   DeviceName 10.3.3.9:5333
   FD         13
   FUUID      5ff1fa48-f33f-fe74-d910-f61b8d2bcd7b5195
   MODE       lan-bluetooth
   NAME       sebastian.gtag.pre
   NOTIFYDEV  global
   NR         4574
   NTFY_ORDER 50-sebastian.gtag.pre
   PARTIAL   
   STATE      error
   TYPE       PRESENCE
   CL:
     Authenticated 0
     BUF       
     FD         15
     FW_ID      4764
     LASTACCESS 1609694662
     NAME       WEB_10.3.3.31_59460
     NR         4769
     PEER       10.3.3.31
     PORT       59460
     SNAME      WEB
     SSL       
     STATE      Connected
     TEMPORARY  1
     TYPE       FHEMWEB
     canAsyncOutput 1
     READINGS:
       2021-01-03 18:24:18   state           Connected
   READINGS:
     2021-01-03 18:09:28   model           lan-bluetooth
     2021-01-03 18:12:41   state           error
   helper:
     DISABLED   0
     curState   init
     maybe      0
     nextScan   1609693769.08337
     cnt:
       exec       0
       maybe      0
       state      0
       th         0
     disp:
       condense   1
       verbose    0
     interval:
       absent     60
       init       30
       present    60
Attributes:
   devStateIcon present:ios-on-blue absent:ios-off disabled:ios-NACK
   event-on-change-reading .*
   intervalNormal 60
   intervalPresent 60
   prGroup    dynamic
   thresholdAbsence 3


Ansonsten auch noch was kosmetisches:
In der cref steht bei lan-bluetooth die DEF für shellscript:
ZitatMode: lan-bluetooth
define <name> PRESENCE shellscript cmd:<address> scan:<ip-address>
Checks for a bluetooth device with the help of presenced or collectord...
VG Sebastian

binford6000

Update:
Nach einem Neustart sind die gtags zwar kurz auf error aber dann present:
Internals:
   ADDRESS    7C:2F:80:98:AC:0F
   DEF        lan-bluetooth 7C:2F:80:98:AC:0F 10.3.3.9:5333
   DeviceName 10.3.3.9:5333
   FD         16
   FUUID      5ff1fa48-f33f-fe74-d910-f61b8d2bcd7b5195
   FVERSION   73_PRESENCE.pm:0.183140/2019-01-18
   MODE       lan-bluetooth
   NAME       sebastian.gtag.pre
   NOTIFYDEV  global
   NR         75
   NTFY_ORDER 50-sebastian.gtag.pre
   PARTIAL   
   STATE      present
   TYPE       PRESENCE
   CL:
     Authenticated 0
     BUF       
     FD         21
     FW_ID      157
     LASTACCESS 1609695300
     NAME       WEB_10.3.3.31_59558
     NR         158
     PEER       10.3.3.31
     PORT       59558
     SNAME      WEB
     SSL       
     STATE      Connected
     TEMPORARY  1
     TYPE       FHEMWEB
     canAsyncOutput 1
     READINGS:
       2021-01-03 18:31:25   state           Connected
   READINGS:
     2021-01-03 18:27:51   appearCnt       1
     2021-01-03 18:34:52   batteryPercent  17
     2021-01-03 18:34:52   batteryPercentAge 16
     2021-01-03 18:27:52   command_accepted yes
     2021-01-03 18:34:52   daemon          lepresenced V0.93
     2021-01-03 18:34:52   device_name     Gigaset G-tag
     2021-01-03 18:27:51   lastAppear      2021-01-03 18:27:51
     2021-01-03 18:34:52   maybeCnt        3
     2021-01-03 18:34:52   model           lan-lepresenced
     2021-01-03 18:34:52   presence        present
     2021-01-03 18:34:52   rssi            -68
     2021-01-03 18:33:52   state           present
     2021-01-03 18:34:52   thresHldCnt     1
   helper:
     DISABLED   0
     curState   present
     maybe      1
     nextScan   1609694862.01776
     cnt:
       exec       9
       maybe      3
       state      1
       th         1
     disp:
       condense   1
       verbose    0
     interval:
       absent     60
       init       30
       present    60
     timestamp:
       present    2021-01-03 18:27:51
Attributes:
   devStateIcon present:ios-on-blue absent:ios-off disabled:ios-NACK
   event-on-change-reading .*
   intervalNormal 60
   intervalPresent 60
   prGroup    dynamic
   thresholdAbsence 3


Im Daemon werden die Readings aber wieterhin nicht aktualisiert:
Internals:
   ADDRESS    daemon
   DEF        daemon daemon
   FUUID      5fec5c44-f33f-fe74-1dd9-78931a3d4d61378b
   FVERSION   73_PRESENCE.pm:0.183140/2019-01-18
   MODE       daemon
   NAME       PREDaemon
   NOTIFYDEV  global
   NR         67
   NTFY_ORDER 50-PREDaemon
   STATE      active
   TYPE       PRESENCE
   CL:
     Authenticated 0
     BUF       
     FD         19
     FW_ID      158
     LASTACCESS 1609695339
     NAME       WEB_10.3.3.31_59527
     NR         126
     PEER       10.3.3.31
     PORT       59527
     SNAME      WEB
     SSL       
     STATE      Connected
     TEMPORARY  1
     TYPE       FHEMWEB
     canAsyncOutput 1
     READINGS:
       2021-01-03 18:29:55   state           Connected
   READINGS:
     2021-01-03 13:30:43   daemonMaxScanTime 11
     2021-01-03 18:27:41   model           daemon
     2021-01-03 18:35:21   pGrp__total     dis:0 ab:2 pres:8
     2021-01-03 18:35:21   pGrp_default    dis:0 ab:0 pres:0
     2021-01-03 18:35:21   pGrp_dynamic    dis:0 ab:2 pres:5
     2021-01-03 18:35:21   pGrp_static     dis:0 ab:0 pres:3
     2021-01-03 18:34:51   pr_antonia_iphone.pre absent
     2021-01-03 18:30:23   pr_christine_gtag.pre error
     2021-01-03 18:35:21   pr_christine_iphone.pre present
     2021-01-03 18:34:51   pr_christine_watch.pre present
     2021-01-03 18:34:51   pr_deconz.pre   present
     2021-01-03 18:34:51   pr_fritte.pre   present
     2021-01-03 18:34:51   pr_nas.pre      absent
     2021-01-03 18:34:51   pr_proxmox.pre  present
     2021-01-03 18:30:12   pr_sebastian.gtag.pre error
     2021-01-03 18:34:51   pr_sebastian_iphone.pre present
     2021-01-03 18:35:21   state           active
   helper:
     DISABLED   0
     curState   init
     maybe      0
     nextScan   1609694891.47595
     cnt:
       exec       0
       maybe      0
       state      0
       th         0
     disp:
       condense   1
       verbose    0
     evnt:
     interval:
       absent     30
       init       30
       present    30
     prGroups:
       static
       dynamic
Attributes:
   devStateIcon active:ios-on-green .*:ios-NACK
   event-on-change-reading .*
   intervalNormal 30
   prGroupDisp condense


VG Sebastian

martinp876


Benni



Newbee

Moin,

nach einem kurzen Test, Perl Warnungen haben sich bei mir bis auf folgende reduziert. Wie zuvor auch, taucht diese nur bei Neustart auf.


2021.01.06 10:21:26 1: PERL WARNING: Use of uninitialized value within %stateH in hash element at ./FHEM/73_PRESENCE.pm line 837.


Danke und Grüße
Intel-NUC mit ubuntu server 20.04; FHEM 6.0
HM, Dect, Netatmo, Hue

binford6000

Mit der letzten Version sehe ich folgendes Verhalten bei lan-bluetooth und einem gtag:

  • device ist zwar present, wechselt aber zwischen maybe present und present
  • Die Meldungen im Log lauten aber alle present - kein einer absent dabei

2021.01.06 10:22:30.775 5:  PRESENCE (sebastian.gtag.pre) - write : 7C:2F:80:98:AC:0F|300
2021.01.06 10:22:30.775 5:  SW: 7C:2F:80:98:AC:0F|300

2021.01.06 10:22:30.893 5:  PRESENCE (sebastian.gtag.pre) - received data: command accepted

2021.01.06 10:22:30.896 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-62;batteryPercent=19;batteryPercentAge=2;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:22:30.896 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:22:30.898 4:  PRESENCE (sebastian.gtag.pre) - device is present after 1 check. 2 attempts left before going absent
2021.01.06 10:22:35.364 5:  PRESENCE (sebastian.gtag.pre) - write : 7C:2F:80:98:AC:0F|60
2021.01.06 10:22:35.365 5:  SW: 7C:2F:80:98:AC:0F|60

2021.01.06 10:22:35.405 5:  PRESENCE (sebastian.gtag.pre) - received data: command accepted
2021.01.06 10:22:35.426 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-62;batteryPercent=19;batteryPercentAge=2;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:22:35.426 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:22:35.426 4:  PRESENCE (sebastian.gtag.pre) - device is present after 2 check. 1 attempts left before going absent
2021.01.06 10:23:35.096 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-62;batteryPercent=19;batteryPercentAge=2;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:23:35.096 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:24:35.042 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-60;batteryPercent=19;batteryPercentAge=2;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:24:35.042 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:24:35.043 4:  PRESENCE (sebastian.gtag.pre) - device is present after 1 check. 2 attempts left before going absent
2021.01.06 10:25:35.248 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-62;batteryPercent=19;batteryPercentAge=2;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:25:35.248 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:25:35.248 4:  PRESENCE (sebastian.gtag.pre) - device is present after 2 check. 1 attempts left before going absent
2021.01.06 10:26:35.186 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-63;batteryPercent=19;batteryPercentAge=2;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:26:35.186 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:27:35.100 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-61;batteryPercent=19;batteryPercentAge=2;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:27:35.100 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:27:35.101 4:  PRESENCE (sebastian.gtag.pre) - device is present after 1 check. 2 attempts left before going absent
2021.01.06 10:28:35.031 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-62;batteryPercent=19;batteryPercentAge=2;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:28:35.031 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:28:35.031 4:  PRESENCE (sebastian.gtag.pre) - device is present after 2 check. 1 attempts left before going absent
2021.01.06 10:29:35.222 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-62;batteryPercent=19;batteryPercentAge=2;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:29:35.222 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:30:35.161 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-63;batteryPercent=19;batteryPercentAge=2;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:30:35.161 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:30:35.161 4:  PRESENCE (sebastian.gtag.pre) - device is present after 1 check. 2 attempts left before going absent
2021.01.06 10:31:35.102 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-61;batteryPercent=19;batteryPercentAge=2;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:31:35.103 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:31:35.103 4:  PRESENCE (sebastian.gtag.pre) - device is present after 2 check. 1 attempts left before going absent
2021.01.06 10:32:35.041 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-61;batteryPercent=19;batteryPercentAge=2;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:32:35.041 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:33:35.237 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-61;batteryPercent=19;batteryPercentAge=2;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:33:35.237 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:33:35.237 4:  PRESENCE (sebastian.gtag.pre) - device is present after 1 check. 2 attempts left before going absent
2021.01.06 10:34:35.179 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-61;batteryPercent=19;batteryPercentAge=2;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:34:35.179 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:34:35.179 4:  PRESENCE (sebastian.gtag.pre) - device is present after 2 check. 1 attempts left before going absent
2021.01.06 10:35:35.134 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-62;batteryPercent=19;batteryPercentAge=2;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:35:35.134 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:36:35.074 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-61;batteryPercent=19;batteryPercentAge=2;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:36:35.074 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:36:35.074 4:  PRESENCE (sebastian.gtag.pre) - device is present after 1 check. 2 attempts left before going absent
2021.01.06 10:37:35.033 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-63;batteryPercent=19;batteryPercentAge=2;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:37:35.034 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:37:35.034 4:  PRESENCE (sebastian.gtag.pre) - device is present after 2 check. 1 attempts left before going absent
2021.01.06 10:38:35.235 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-62;batteryPercent=19;batteryPercentAge=2;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:38:35.235 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:39:35.189 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-62;batteryPercent=19;batteryPercentAge=2;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:39:35.190 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:39:35.190 4:  PRESENCE (sebastian.gtag.pre) - device is present after 1 check. 2 attempts left before going absent
2021.01.06 10:40:35.152 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-62;batteryPercent=19;batteryPercentAge=2;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:40:35.152 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:40:35.152 4:  PRESENCE (sebastian.gtag.pre) - device is present after 2 check. 1 attempts left before going absent
2021.01.06 10:41:35.082 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-61;batteryPercent=19;batteryPercentAge=2;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:41:35.082 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:42:35.006 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-62;batteryPercent=19;batteryPercentAge=3;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:42:35.006 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:42:35.006 4:  PRESENCE (sebastian.gtag.pre) - device is present after 1 check. 2 attempts left before going absent
2021.01.06 10:43:35.185 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-61;batteryPercent=19;batteryPercentAge=3;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:43:35.185 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:43:35.185 4:  PRESENCE (sebastian.gtag.pre) - device is present after 2 check. 1 attempts left before going absent
2021.01.06 10:44:35.104 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-61;batteryPercent=19;batteryPercentAge=3;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:44:35.104 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:45:35.043 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-63;batteryPercent=19;batteryPercentAge=3;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:45:35.043 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:45:35.043 4:  PRESENCE (sebastian.gtag.pre) - device is present after 1 check. 2 attempts left before going absent
2021.01.06 10:46:35.240 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-61;batteryPercent=19;batteryPercentAge=3;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:46:35.240 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:46:35.240 4:  PRESENCE (sebastian.gtag.pre) - device is present after 2 check. 1 attempts left before going absent
2021.01.06 10:47:35.169 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-62;batteryPercent=19;batteryPercentAge=3;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:47:35.169 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:48:35.108 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-62;batteryPercent=19;batteryPercentAge=3;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:48:35.109 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:48:35.109 4:  PRESENCE (sebastian.gtag.pre) - device is present after 1 check. 2 attempts left before going absent
2021.01.06 10:49:35.054 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-61;batteryPercent=19;batteryPercentAge=3;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:49:35.054 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:49:35.055 4:  PRESENCE (sebastian.gtag.pre) - device is present after 2 check. 1 attempts left before going absent
2021.01.06 10:50:35.024 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-62;batteryPercent=19;batteryPercentAge=3;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:50:35.024 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:51:35.215 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-61;batteryPercent=19;batteryPercentAge=3;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:51:35.215 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:51:35.215 4:  PRESENCE (sebastian.gtag.pre) - device is present after 1 check. 2 attempts left before going absent
2021.01.06 10:52:35.164 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-62;batteryPercent=19;batteryPercentAge=3;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:52:35.164 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:52:35.165 4:  PRESENCE (sebastian.gtag.pre) - device is present after 2 check. 1 attempts left before going absent
2021.01.06 10:53:35.117 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-62;batteryPercent=19;batteryPercentAge=3;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:53:35.117 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:54:35.078 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-62;batteryPercent=19;batteryPercentAge=3;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:54:35.078 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:54:35.078 4:  PRESENCE (sebastian.gtag.pre) - device is present after 1 check. 2 attempts left before going absent
2021.01.06 10:55:35.020 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-62;batteryPercent=19;batteryPercentAge=3;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:55:35.021 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:55:35.021 4:  PRESENCE (sebastian.gtag.pre) - device is present after 2 check. 1 attempts left before going absent
2021.01.06 10:56:35.229 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-62;batteryPercent=19;batteryPercentAge=3;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:56:35.229 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:57:35.184 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-63;batteryPercent=19;batteryPercentAge=3;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:57:35.184 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:57:35.185 4:  PRESENCE (sebastian.gtag.pre) - device is present after 1 check. 2 attempts left before going absent
2021.01.06 10:58:35.131 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-63;batteryPercent=19;batteryPercentAge=3;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:58:35.132 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 10:58:35.132 4:  PRESENCE (sebastian.gtag.pre) - device is present after 2 check. 1 attempts left before going absent
2021.01.06 10:59:35.091 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-61;batteryPercent=19;batteryPercentAge=3;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 10:59:35.091 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 11:00:35.040 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-63;batteryPercent=19;batteryPercentAge=3;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 11:00:35.040 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 11:00:35.040 4:  PRESENCE (sebastian.gtag.pre) - device is present after 1 check. 2 attempts left before going absent
2021.01.06 11:01:35.239 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-63;batteryPercent=19;batteryPercentAge=3;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 11:01:35.239 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 11:01:35.239 4:  PRESENCE (sebastian.gtag.pre) - device is present after 2 check. 1 attempts left before going absent
2021.01.06 11:02:35.191 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-62;batteryPercent=19;batteryPercentAge=3;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 11:02:35.191 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 11:03:35.141 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-62;batteryPercent=19;batteryPercentAge=3;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 11:03:35.141 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 11:03:35.142 4:  PRESENCE (sebastian.gtag.pre) - device is present after 1 check. 2 attempts left before going absent
2021.01.06 11:04:35.081 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-61;batteryPercent=19;batteryPercentAge=3;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 11:04:35.082 4:  PRESENCE (sebastian.gtag.pre) - status info:present
2021.01.06 11:04:35.082 4:  PRESENCE (sebastian.gtag.pre) - device is present after 2 check. 1 attempts left before going absent
2021.01.06 11:05:35.035 5:  PRESENCE (sebastian.gtag.pre) - received data: present;device_name=Gigaset G-tag;rssi=-62;batteryPercent=19;batteryPercentAge=3;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.06 11:05:35.036 4:  PRESENCE (sebastian.gtag.pre) - status info:present


Hier das device:
Internals:
   ADDRESS    7C:2F:80:98:AC:0F
   DEF        lan-bluetooth 7C:2F:80:98:AC:0F 10.3.3.9:5333
   DeviceName 10.3.3.9:5333
   FD         15
   FUUID      5ff1fa48-f33f-fe74-d910-f61b8d2bcd7b5195
   FVERSION   73_PRESENCE.pm:0.183140/2019-01-18
   MODE       lan-bluetooth
   NAME       sebastian.gtag.pre
   NOTIFYDEV  global
   NR         75
   NTFY_ORDER 50-sebastian.gtag.pre
   PARTIAL   
   STATE      present
   TYPE       PRESENCE
   CL:
     Authenticated 0
     BUF       
     FD         23
     FW_ID      9946
     LASTACCESS 1609927611
     NAME       WEB_10.3.3.32_56082
     NR         9948
     PEER       10.3.3.32
     PORT       56082
     SNAME      WEB
     SSL       
     STATE      Connected
     TEMPORARY  1
     TYPE       FHEMWEB
     canAsyncOutput 1
     READINGS:
       2021-01-06 11:03:40   state           Connected
   READINGS:
     2021-01-05 22:15:35   appearCnt       0
     2021-01-06 11:06:35   batteryPercent  19
     2021-01-06 11:06:35   batteryPercentAge 3
     2021-01-06 10:22:35   command_accepted yes
     2021-01-06 11:06:35   daemon          lepresenced V0.93
     2021-01-06 11:06:35   device_name     Gigaset G-tag
     2021-01-05 19:40:28   lastAppear      2021-01-05 19:40:28
     2021-01-04 22:10:29   lastDisappear   2021-01-04 22:10:29
     2021-01-06 11:06:35   maybeCnt        16
     2021-01-06 11:06:35   model           lan-lepresenced
     2021-01-06 11:06:35   presence        maybe present
     2021-01-06 11:06:35   rssi            -64
     2021-01-06 11:05:35   state           present
     2021-01-06 11:06:35   thresHldCnt     1
   helper:
     DISABLED   0
     curState   present
     maybe      1
     nextScan   1609924955.36492
     cnt:
       exec       196
       maybe      16
       state      0
       th         1
     disp:
       condense   1
       verbose    0
     interval:
       absent     60
       init       30
       present    60
     timestamp:
       present    2021-01-05 19:40:28
Attributes:
   devStateIcon present:ios-on-blue absent:ios-off disabled:ios-NACK
   event-on-change-reading .*
   intervalNormal 60
   intervalPresent 60
   prGroup    dynamic
   thresholdAbsence 3
   verbose    5


In der cref ist bei lan-bluetooth auch noch cmd: und scan: zuviel. Im Bsp weiter unten dann korrekt:
ZitatMode: lan-bluetooth
define <name> PRESENCE lan-bluetooth cmd:<address> scan:<ip-address>

Beim Mode lan-bluetooth würde ich der Vollständigkeit halber auch noch
Alternatly you can use port 5222 (collectord) or port 5333 (lepresenced)
hinzufügen

ZitatMode: lan-bluetooth
define <name> PRESENCE lan-bluetooth cmd:<address> scan:<ip-address>
Checks for a bluetooth device with the help of presenced or collectord. They can be installed where-ever you like, however accessible via network. The given device will be checked for presence status.
The default port is 5111 (presenced). Alternatly you can use port 5222 (collectord)

VG Sebastian

gestein

Hallo,

bei mir kommt es nun wieder vor, dass die Gtags, die über lan-bluetooth eingebunden sind, nicht mehr upgedatet werden.
Collectord und lepresenced melden die Gtags korrekt als an- und abwesend.

Wenn ich fhem neu mit PRESENCE-daemon "verbose 5" starte, kommen folgende log-Einträge:
2021.01.07 20:55:06.760 5: PRESENCE (Gtag_rot) - do init
2021.01.07 20:55:06.760 5: PRESENCE (Gtag_rot) - write : 7C:2F:80:99:D8:9B|30
2021.01.07 20:55:06.861 5: PRESENCE (Gtag_weiss) - do init
2021.01.07 20:55:06.862 5: PRESENCE (Gtag_weiss) - write : 7C:2F:80:99:D9:99|30
2021.01.07 20:55:15.496 5: PRESENCE (Gtag_weiss) - received data: command accepted
2021.01.07 20:55:15.496 5: PRESENCE (Gtag_weiss) - received data: socket_closed;room=Wohnzimmer
2021.01.07 20:55:15.496 3: PRESENCE (Gtag_weiss) - collectord lost connection to room Wohnzimmer
2021.01.07 20:55:15.554 5: PRESENCE (Gtag_rot) - received data: command accepted
2021.01.07 20:55:15.554 5: PRESENCE (Gtag_rot) - received data: socket_closed;room=Wohnzimmer
2021.01.07 20:55:15.554 3: PRESENCE (Gtag_rot) - collectord lost connection to room Wohnzimmer
2021.01.07 20:55:18.354 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:55:21.196 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:55:23.321 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:55:26.623 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:55:32.585 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:55:32.994 5: PRESENCE (Gtag_rot) - received data: absence;room=;rooms=;rssi=;
2021.01.07 20:55:32.995 4: PRESENCE (Gtag_rot) - status info:absence
2021.01.07 20:55:32.995 5: PRESENCE (Gtag_rot) - write : 7C:2F:80:99:D8:9B|30
2021.01.07 20:55:33.716 5: PRESENCE (Gtag_rot) - received data: command accepted
2021.01.07 20:55:34.043 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:55:36.691 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:55:40.222 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:55:41.757 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:55:43.004 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:55:43.483 5: PRESENCE (Gtag_weiss) - received data: present;rooms='Vorzimmer,Zuhause';room='Vorzimmer';rssi_Zuhause='-80';rssi_Vorzimmer='-65';device_name=Gigaset G-tag;rssi=-65;batteryPercent=28;batteryPercentAge=0;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.07 20:55:43.484 4: PRESENCE (Gtag_weiss) - status info:present
2021.01.07 20:55:43.484 5: PRESENCE (Gtag_weiss) - write : 7C:2F:80:99:D9:99|30
2021.01.07 20:55:49.072 5: PRESENCE (PsnceDaemon) - , duration:12 reply:
2021.01.07 20:55:49.109 5: PRESENCE (Gtag_weiss) - received data: command accepted
2021.01.07 20:55:51.592 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:55:53.679 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:55:55.472 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:55:57.183 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:55:59.096 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:56:01.352 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:56:03.176 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:56:09.197 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:56:13.687 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:56:20.285 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:56:31.870 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:56:36.365 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:56:38.808 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:56:40.436 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:56:44.716 5: PRESENCE (PsnceDaemon) - , duration:14 reply:
2021.01.07 20:56:46.943 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:56:47.978 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:56:48.983 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:56:50.009 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:56:51.069 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:56:52.114 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:56:53.119 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:56:54.121 3: PRESENCE (PsnceDaemon) - skip scan due to running job
2021.01.07 20:56:55.163 3: PRESENCE (PsnceDaemon) - skip scan due to running job


Was kann ich noch tun, um den Fehler zu finden?
Danke, lg, Gerhard

p.s.: Die folgenden Readings sind noch unter Hochkomma:
room 'Vorzimmer'
rooms 'Vorzimmer'
rssi_Vorzimmer '-78'
rssi_Zuhause '-92'

binford6000

#100
Mit der letzten Version werden

  • im Daemon keine Group-Readings mehr aktualisiert (condense und verbose)
  • lan-bluetooth devices nicht aufgeführt (1 disabled, 1 present)
Internals:
   ADDRESS    daemon
   DEF        daemon daemon
   FUUID      5fec5c44-f33f-fe74-1dd9-78931a3d4d61378b
   FVERSION   73_PRESENCE.pm:0.183140/2019-01-18
   MODE       daemon
   NAME       PREDaemon
   NOTIFYDEV  global
   NR         67
   NTFY_ORDER 50-PREDaemon
   STATE      active
   TYPE       PRESENCE
   CL:
     Authenticated 0
     BUF       
     FD         16
     FW_ID      154
     LASTACCESS 1610090640
     NAME       WEB_10.3.3.31_51037
     NR         151
     PEER       10.3.3.31
     PORT       51037
     SNAME      WEB
     SSL       
     STATE      Connected
     TEMPORARY  1
     TYPE       FHEMWEB
     canAsyncOutput 1
     READINGS:
       2021-01-08 08:23:51   state           Connected
   READINGS:
     2021-01-07 23:14:49   daemonMaxScanTime 11
     2021-01-08 08:18:44   model           daemon
     2021-01-08 08:23:57   pGrp__total     dis:0 ab:0 pres:0
     2021-01-08 08:23:57   pGrp_default    dis:0 ab:0 pres:0
     2021-01-08 08:23:57   pGrp_dynamic    dis:0 ab:0 pres:0
     2021-01-08 08:23:57   pGrp_static     dis:0 ab:0 pres:0
     2021-01-08 08:23:57   pr_antonia_iphone.fn.pre absent
     2021-01-08 08:23:57   pr_christine_iphone.fn.pre absent
     2021-01-08 08:23:57   pr_deconz.fn.pre present
     2021-01-08 08:23:57   pr_deconz.lp.pre present
     2021-01-08 08:23:57   pr_fritzbox.lp.pre present
     2021-01-08 08:23:57   pr_nas.lp.pre   absent
     2021-01-08 08:19:58   pr_nextcloud.sh.pre present
     2021-01-08 08:23:57   pr_pihole.lp.pre present
     2021-01-08 08:23:57   pr_proxmox.lp.pre present
     2021-01-08 08:23:57   pr_sebastian_iphone.fn.pre present
     2021-01-08 08:23:57   state           active
   helper:
     DISABLED   0
     curState   init
     maybe      0
     nextScan   1610090354.67547
     cnt:
       exec       0
       maybe      0
       state      0
       th         0
     disp:
       condense   1
       verbose    0
     evnt:
     interval:
       absent     30
       init       30
       present    30
     prGroups:
       static
       dynamic
Attributes:
   devStateIcon active:ios-on-green .*:ios-NACK
   event-on-change-reading .*
   intervalNormal 30
   prGroupDisp condense


Hier ein Verbose 5 Log vom Daemon:
2021.01.08 09:06:57.994 5:  PRESENCE (PREDaemon) - , duration:1 reply:
         antonia_iphone.fn.pre|absent
         christine_iphone.fn.pre|absent
         deconz.fn.pre|present
         deconz.lp.pre|present
         fritzbox.lp.pre|present
         nas.lp.pre|absent
         pihole.lp.pre|present
         proxmox.lp.pre|present
         sebastian_iphone.fn.pre|present


VG Sebastian

martinp876

Groups counter sind reariert
Fehlendes Log zu "state change" implementiert

bei gestein wird nicht geforked weil schon en Job läuft. Das sollte nicht so lange sein...
1) killChilds ausführen
2) nachsehen, was da noch läuft. Es sollte nicht sein, dass einer hängen bleibt.  Wäre gut zu wissen, wer es war/ist um das Problem zu identifizieren


Wzut

@martinp876, wenn du doch jetzt eh schon soviel command.ref schreiben musst wäre es doch schön bei dieser Gelegenheit das HTML Format gleich so anzupassen das FHEMWEB bei jedem Auswahl eines Attibutes den jeweiligen command.ref Text als mini Hilfe unter der Eingabe anzeigt.
So wie das heute schon viele Module machen.
Maintainer der Module: MAX, MPD, UbiquitiMP, UbiquitiOut, SIP, BEOK, readingsWatcher

binford6000

#103
Groups Counter sind wieder OK.
Nur die maybe present Geschichte der gtags mit lan-bluetooth noch nicht:
2021.01.17 07:46:41.147 5:  PRESENCE (sebastian.gtag.lbt.pre) - received data: present;device_name=Gigaset G-tag;rssi=-67;batteryPercent=16;batteryPercentAge=4;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.17 07:46:41.147 4:  PRESENCE (sebastian.gtag.lbt.pre) - status info:present
2021.01.17 07:56:41.201 5:  PRESENCE (sebastian.gtag.lbt.pre) - received data: present;device_name=Gigaset G-tag;rssi=-68;batteryPercent=16;batteryPercentAge=4;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.17 07:56:41.201 4:  PRESENCE (sebastian.gtag.lbt.pre) - status info:present
2021.01.17 07:56:41.202 4:  PRESENCE (sebastian.gtag.lbt.pre) - device is present after 1 check. 2 attempts left before going absent
2021.01.17 08:06:41.029 5:  PRESENCE (sebastian.gtag.lbt.pre) - received data: present;device_name=Gigaset G-tag;rssi=-69;batteryPercent=16;batteryPercentAge=4;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.17 08:06:41.030 4:  PRESENCE (sebastian.gtag.lbt.pre) - status info:present
2021.01.17 08:06:41.030 4:  PRESENCE (sebastian.gtag.lbt.pre) - device is present after 2 check. 1 attempts left before going absent
2021.01.17 08:16:41.144 5:  PRESENCE (sebastian.gtag.lbt.pre) - received data: present;device_name=Gigaset G-tag;rssi=-69;batteryPercent=16;batteryPercentAge=4;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.17 08:16:41.144 4:  PRESENCE (sebastian.gtag.lbt.pre) - status info:present
2021.01.17 08:26:41.215 5:  PRESENCE (sebastian.gtag.lbt.pre) - received data: present;device_name=Gigaset G-tag;rssi=-70;batteryPercent=16;batteryPercentAge=4;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.17 08:26:41.215 4:  PRESENCE (sebastian.gtag.lbt.pre) - status info:present
2021.01.17 08:26:41.215 4:  PRESENCE (sebastian.gtag.lbt.pre) - device is present after 1 check. 2 attempts left before going absent
2021.01.17 08:36:41.247 5:  PRESENCE (sebastian.gtag.lbt.pre) - received data: present;device_name=Gigaset G-tag;rssi=-70;batteryPercent=16;batteryPercentAge=5;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.17 08:36:41.248 4:  PRESENCE (sebastian.gtag.lbt.pre) - status info:present
2021.01.17 08:36:41.249 4:  PRESENCE (sebastian.gtag.lbt.pre) - device is present after 2 check. 1 attempts left before going absent
2021.01.17 08:46:41.074 5:  PRESENCE (sebastian.gtag.lbt.pre) - received data: present;device_name=Gigaset G-tag;rssi=-69;batteryPercent=16;batteryPercentAge=5;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.17 08:46:41.074 4:  PRESENCE (sebastian.gtag.lbt.pre) - status info:present
2021.01.17 08:56:41.096 5:  PRESENCE (sebastian.gtag.lbt.pre) - received data: present;device_name=Gigaset G-tag;rssi=-70;batteryPercent=16;batteryPercentAge=5;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.17 08:56:41.096 4:  PRESENCE (sebastian.gtag.lbt.pre) - status info:present
2021.01.17 08:56:41.096 4:  PRESENCE (sebastian.gtag.lbt.pre) - device is present after 1 check. 2 attempts left before going absent
2021.01.17 09:06:41.169 5:  PRESENCE (sebastian.gtag.lbt.pre) - received data: present;device_name=Gigaset G-tag;rssi=-70;batteryPercent=16;batteryPercentAge=5;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.17 09:06:41.170 4:  PRESENCE (sebastian.gtag.lbt.pre) - status info:present
2021.01.17 09:06:41.170 4:  PRESENCE (sebastian.gtag.lbt.pre) - device is present after 2 check. 1 attempts left before going absent
2021.01.17 09:16:41.155 5:  PRESENCE (sebastian.gtag.lbt.pre) - received data: present;device_name=Gigaset G-tag;rssi=-69;batteryPercent=16;batteryPercentAge=5;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.17 09:16:41.155 4:  PRESENCE (sebastian.gtag.lbt.pre) - status info:present
2021.01.17 09:26:41.028 5:  PRESENCE (sebastian.gtag.lbt.pre) - received data: present;device_name=Gigaset G-tag;rssi=-69;batteryPercent=16;batteryPercentAge=5;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.17 09:26:41.028 4:  PRESENCE (sebastian.gtag.lbt.pre) - status info:present
2021.01.17 09:26:41.028 4:  PRESENCE (sebastian.gtag.lbt.pre) - device is present after 1 check. 2 attempts left before going absent
2021.01.17 09:44:55.065 5:  PRESENCE (sebastian.gtag.lbt.pre) - received data: present;device_name=Gigaset G-tag;rssi=-70;batteryPercent=16;batteryPercentAge=0;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.17 09:44:55.066 4:  PRESENCE (sebastian.gtag.lbt.pre) - status info:present
2021.01.17 09:44:55.066 4:  PRESENCE (sebastian.gtag.lbt.pre) - device is present after 2 check. 1 attempts left before going absent
2021.01.17 09:54:55.009 5:  PRESENCE (sebastian.gtag.lbt.pre) - received data: present;device_name=Gigaset G-tag;rssi=-70;batteryPercent=16;batteryPercentAge=0;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.17 09:54:55.010 4:  PRESENCE (sebastian.gtag.lbt.pre) - status info:present
2021.01.17 10:04:55.029 5:  PRESENCE (sebastian.gtag.lbt.pre) - received data: present;device_name=Gigaset G-tag;rssi=-71;batteryPercent=16;batteryPercentAge=0;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.17 10:04:55.030 4:  PRESENCE (sebastian.gtag.lbt.pre) - status info:present
2021.01.17 10:04:55.030 4:  PRESENCE (sebastian.gtag.lbt.pre) - device is present after 1 check. 2 attempts left before going absent
2021.01.17 10:14:55.135 5:  PRESENCE (sebastian.gtag.lbt.pre) - received data: present;device_name=Gigaset G-tag;rssi=-69;batteryPercent=16;batteryPercentAge=0;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.17 10:14:55.136 4:  PRESENCE (sebastian.gtag.lbt.pre) - status info:present
2021.01.17 10:14:55.136 4:  PRESENCE (sebastian.gtag.lbt.pre) - device is present after 2 check. 1 attempts left before going absent
2021.01.17 10:24:55.130 5:  PRESENCE (sebastian.gtag.lbt.pre) - received data: present;device_name=Gigaset G-tag;rssi=-70;batteryPercent=16;batteryPercentAge=0;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.17 10:24:55.131 4:  PRESENCE (sebastian.gtag.lbt.pre) - status info:present
2021.01.17 10:31:21.688 5:  PRESENCE (sebastian.gtag.lbt.pre) - received data: present;device_name=Gigaset G-tag;rssi=-75;batteryPercent=16;batteryPercentAge=0;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.17 10:31:21.688 4:  PRESENCE (sebastian.gtag.lbt.pre) - status info:present
2021.01.17 10:31:21.689 4:  PRESENCE (sebastian.gtag.lbt.pre) - device is present after 1 check. 2 attempts left before going absent
2021.01.17 10:41:21.056 5:  PRESENCE (sebastian.gtag.lbt.pre) - received data: present;device_name=Gigaset G-tag;rssi=-71;batteryPercent=16;batteryPercentAge=1;model=lan-lepresenced;daemon=lepresenced V0.93
2021.01.17 10:41:21.056 4:  PRESENCE (sebastian.gtag.lbt.pre) - status info:present
2021.01.17 10:41:21.056 4:  PRESENCE (sebastian.gtag.lbt.pre) - device is present after 2 check. 1 attempts left before going absent


Der presence reading des gtags steht 90% auf maybe present obwohl im Log present gemeldet wird:
Internals:
   ADDRESS    7C:2F:80:98:AC:0F
   DEF        lan-bluetooth 7C:2F:80:98:AC:0F 10.3.3.9:5333
   DeviceName 10.3.3.9:5333
   FD         20
   FUUID      5ff1fa48-f33f-fe74-d910-f61b8d2bcd7b5195
   FVERSION   73_PRESENCE.pm:0.183140/2019-01-18
   MODE       lan-bluetooth
   NAME       sebastian.gtag.lbt.pre
   NOTIFYDEV  global
   NR         74
   NTFY_ORDER 50-sebastian.gtag.lbt.pre
   PARTIAL   
   STATE      present
   TYPE       PRESENCE
   CL:
     Authenticated 0
     BUF       
     FD         16
     FW_ID      22834
     LASTACCESS 1610876873
     NAME       WEB_10.3.3.31_49963
     NR         22834
     PEER       10.3.3.31
     PORT       49963
     SNAME      WEB
     SSL       
     STATE      Connected
     TEMPORARY  1
     TYPE       FHEMWEB
     canAsyncOutput 1
     READINGS:
       2021-01-17 10:47:31   state           Connected
   READINGS:
     2021-01-16 23:02:30   appearCnt       1
     2021-01-17 10:41:21   batteryPercent  16
     2021-01-17 10:41:21   batteryPercentAge 1
     2021-01-09 17:45:49   command_accepted yes
     2021-01-17 10:41:21   daemon          lepresenced V0.93
     2021-01-17 10:41:21   device_name     Gigaset G-tag
     2021-01-16 23:02:30   lastAppear      2021-01-16 23:02:30
     2021-01-09 14:21:28   lastDisappear   2021-01-09 14:21:28
     2021-01-17 10:31:21   maybeCnt        24
     2021-01-17 10:41:21   model           lan-lepresenced
     2021-01-17 10:41:21   presence        maybe present
     2021-01-17 10:41:21   rssi            -71
     2021-01-17 10:24:55   state           present
     2021-01-17 10:41:21   thresHldCnt     2
   helper:
     DISABLED   0
     curState   present
     maybe      1
     nextScan   1610734358.91068
     cnt:
       exec       72
       maybe      24
       state      1
       th         2
     disp:
       condense   1
       verbose    0
     interval:
       absent     300
       init       30
       present    600
     timestamp:
       present    2021-01-16 23:02:30
Attributes:
   devStateIcon present:ios-on-blue absent:ios-off disabled:ios-NACK maybe.*:ios-set_off-blue

   event-on-change-reading .*
   intervalNormal 300
   intervalPresent 600
   prGroup    dynamic
   thresholdAbsence 3
   verbose    5


Noch ein Vorschlag:
Wie aus dem originalen PRESENCE das set active/inactive übernehmen anstatt dem Attribut disable 0/1.

VG Sebastian

Wzut

Zitat von: binford6000 am 17 Januar 2021, 10:50:23
Wie aus dem originalen PRESENCE das set active/inactive übernehmen anstatt dem Attribut disable 0/1.
Ist zwar nirgendwo mit Blut geschrieben, aber einige Module nutzen sowohl set active/inaktive als vorübergehende Abschaltung (ist bei Neustart wieder weg, d.h. aktiv) und zusätzlich noch das Attribut disable 0/1 für permanente Deaktivierung.   
Maintainer der Module: MAX, MPD, UbiquitiMP, UbiquitiOut, SIP, BEOK, readingsWatcher