[74_XiaomiBTLESens.pm] Xiaomi Bluetooth Sensoren FlowerSens/Thermometer

Begonnen von CoolTux, 11 Januar 2018, 15:42:45

Vorheriges Thema - Nächstes Thema

CoolTux

Richtig. Und dann mal schauen um welche Uhrzeit der Fehler war und im Log nach schauen.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Astrofreak85

so, 1,5m war wohl zu viel, der BT-Empfänger ist jetzt auch 20cm ran zum Sensor, und siehe da, geht...thx :)

CoolTux

Ich habe einen Recht starken BT Empfänger. So rund 5m ist maximum. Liegt dann aber eher am Sensor. Der BT Empfänger kann wohl 40m im Freien.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

distel

Zitat von: oko am 07 Februar 2018, 08:03:52
Sorry, wenn ich hier rein grätsche, aber ich hätte nen Einwand ;-)
Du sprichst wie ich von 74_XiaomiBTLESensor in der Version 2.0.6debug10?

Deine Schilderung lässt aber eher auf Fehler in der BT-Kommunikation, denn auf Verarbeitungsfehler im Modul schließen. Um das zu analysieren wären entsprechende logs von den fraglichen Zeitpunkten notwendig. Dort ist ersichtlich, was der Sensor via BT meldet und was das Modul draus gemacht hat.

Gruß Dirk
NUC-I37100
Docker: eBus, fhem, ha-bridge, unifi
Hardware: Homematic, FS20, Somfy RTS, 1wire, FBAHA, enOcean

distel

Zitat von: CoolTux am 07 Februar 2018, 09:55:34
Ich habe einen Recht starken BT Empfänger. So rund 5m ist maximum. Liegt dann aber eher am Sensor. Der BT Empfänger kann wohl 40m im Freien.
Hab den BT-Stick von Pearl (PX-1632-953) - der soll 100m Reichweite haben. Nach einer massiven Wand ist allerdings recht schnell Schluss. Wird aber wie schon anderswo festgestellt mehr am Sensor liegen. Xiaomi hatte hier wohl auch mehr im Sinne, dass in jedem Zimmer ne WLAN-Lampe mit Bluetooth steht und somit nur "die letzte Meile" in Bluetooth gehandelt wird.
NUC-I37100
Docker: eBus, fhem, ha-bridge, unifi
Hardware: Homematic, FS20, Somfy RTS, 1wire, FBAHA, enOcean

oko

Zitat von: distel am 07 Februar 2018, 10:28:09
Du sprichst wie ich von 74_XiaomiBTLESensor in der Version 2.0.6debug10?
Ähm, jetzt wo du es erwähnst...
74_XiaomiBTLESensor natürlich schon, aber nicht debug sondern die normale Version.
Ich hab gerade im Log geschaut, da kommen auch keine Roh-Daten.

Dann werde ich mal die Debug-Version laden und installieren...

mod25

hallo zusammen ich hab das problem das bei meine sensoren die temperature 58974.5 angezeigt wird.
ich nutze die 2.0.6 debug10

anbei ein log
2018.02.07 21:23:26 5: XiaomiBTLESens (oregano) - ExecGatttool_Run: gatttool loop result connect error,Transport endpoint is not connected (107)

2018.02.07 21:23:26 5: XiaomiBTLESens (oregano) - ExecGatttool_Run: call gatttool with command ssh home.fritz.box 'gatttool -i hci0 -b C4:7C:8D:65:EA:65 --char-read -a 0x38 2>&1 /dev/null' and loop 1
2018.02.07 21:23:38 5: XiaomiBTLESens (oregano) - ExecGatttool_Run: gatttool loop result connect error,Transport endpoint is not connected (107)

2018.02.07 21:23:38 5: XiaomiBTLESens (oregano) - ExecGatttool_Run: call gatttool with command ssh home.fritz.box 'gatttool -i hci0 -b C4:7C:8D:65:EA:65 --char-read -a 0x38 2>&1 /dev/null' and loop 2
2018.02.07 21:23:49 5: XiaomiBTLESens (oregano) - ExecGatttool_Run: gatttool loop result connect error,Transport endpoint is not connected (107)

2018.02.07 21:23:49 5: XiaomiBTLESens (oregano) - ExecGatttool_Run: call gatttool with command ssh home.fritz.box 'gatttool -i hci0 -b C4:7C:8D:65:EA:65 --char-read -a 0x38 2>&1 /dev/null' and loop 3
2018.02.07 21:24:02 5: XiaomiBTLESens (oregano) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,63 27 33 2e 31 2e 38

2018.02.07 21:24:02 4: XiaomiBTLESens (oregano) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,63 27 33 2e 31 2e 38

2018.02.07 21:24:02 5: XiaomiBTLESens (oregano) - ExecGatttool_Done: gatttool return string: oregano|C4:7C:8D:65:EA:65|ok|read|0x38|{"gtResult":"63 27 33 2e 31 2e 38 "}
2018.02.07 21:24:02 4: XiaomiBTLESens (oregano) - ProcessingNotification
2018.02.07 21:24:02 4: XiaomiBTLESens (oregano) - ProcessingNotification: handle 0x38
2018.02.07 21:24:02 4: XiaomiBTLESens (oregano) - FlowerSens Handle0x38
2018.02.07 21:24:02 4: XiaomiBTLESens (oregano) - WriteReadings: Readings were written
2018.02.07 21:24:02 4: XiaomiBTLESens (oregano) - Run CreateParamGatttool with mod: write
2018.02.07 21:24:02 5: XiaomiBTLESens (oregano) - Write XiaomiBTLESens_ExecGatttool_Run oregano|C4:7C:8D:65:EA:65|write|0x33|A01F
2018.02.07 21:24:03 5: XiaomiBTLESens (oregano) - ExecGatttool_Run: call gatttool with command ssh home.fritz.box 'gatttool -i hci0 -b C4:7C:8D:65:EA:65 --char-write-req -a 0x33 -n A01F && gatttool -i hci0 -b C4:7C:8D:65:EA:65 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.02.07 21:24:04 5: XiaomiBTLESens (oregano) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Characteristic value/descriptor,f8 ff 00 83 00 00 00 0f 17 00 02 3c 00 fb 34 9b

2018.02.07 21:24:04 4: XiaomiBTLESens (oregano) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Characteristic value/descriptor,f8 ff 00 83 00 00 00 0f 17 00 02 3c 00 fb 34 9b

2018.02.07 21:24:04 5: XiaomiBTLESens (oregano) - ExecGatttool_Done: gatttool return string: oregano|C4:7C:8D:65:EA:65|ok|read|0x35|{"gtResult":"f8 ff 00 83 00 00 00 0f 17 00 02 3c 00 fb 34 9b "}
2018.02.07 21:24:04 4: XiaomiBTLESens (oregano) - ProcessingNotification
2018.02.07 21:24:04 4: XiaomiBTLESens (oregano) - ProcessingNotification: handle 0x35
2018.02.07 21:24:04 4: XiaomiBTLESens (oregano) - FlowerSens Handle0x35
2018.02.07 21:24:04 4: XiaomiBTLESens (oregano) - WriteReadings: Readings were written

ich hoffe ihr könnt mir helfen.

CoolTux

Kann es sein das Du minus Gerade bei Deiner Pflanze hast? Denn genau das würde Dein Wert her geben. -3.5 Grad
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

CoolTux

Ok ich habe es gefixt und die aktuelle Version ist nun im Master Branch und wird auch morgen früh per SVN verteilt.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

kroonen

Hi,

Today I got my bluetooth temp/sensor. In the living room de module works ok, but when I put it in de garage, where the temp is around 6 degrees I get wrong humidity 7.4. On the display it is also 06.3, so an 0 add.

I got this in my logging

2018.02.08 21:33:57 1: PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 682.
2018.02.08 21:33:57 3: eval: {XiaomiBTLESens_ExecGatttool_Done('zoldertem|4C:65:A8:D1:7D:DC|ok|read|0x18|{"gtResult":"64 "}')}
2018.02.08 21:33:57 1: PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 683.
2018.02.08 21:33:57 3: eval: {XiaomiBTLESens_ExecGatttool_Done('zoldertem|4C:65:A8:D1:7D:DC|ok|read|0x18|{"gtResult":"64 "}')}

Internals:
   BTMAC      4C:65:A8:D1:7D:DC
   DEF        4C:65:A8:D1:7D:DC
   INTERVAL   300
   NAME       zoldertem
   NOTIFYDEV  global,zoldertem
   NR         21
   NTFY_ORDER 50-zoldertem
   STATE      active
   TYPE       XiaomiBTLESens
   VERSION    2.0.5
   loglevel   4
   READINGS:
     2018-02-08 21:33:57   battery         ok
     2018-02-08 21:33:57   batteryLevel    100
     2018-02-08 15:18:45   firmware        00.00.66
     2018-02-08 21:34:12   humidity        7.4
     2018-02-08 21:02:58   lastGattError   charWrite faild
     2018-02-08 21:34:12   state           active
     2018-02-08 21:34:12   temperature     6.3
   helper:
     CallBattery 0
     CallSensDataCounter 0
     updateTimeCallBattery 1518122037.51622
     updateTimestampCallBattery 2018-02-08 21:33:57
Attributes:
   interval   300
   model      thermoHygroSens
   room       XiaomiBTLESens

Any idea what goes wrong??


kroonen

Some details debug, but don't see hum in log?

2018.02.08 21:46:40 4: XiaomiBTLESens (zoldertem) - Run CreateParamGatttool with mod: read
2018.02.08 21:46:40 4: BlockingCall (XiaomiBTLESens_ExecGatttool_Run): created child (923), uses telnetPort to connect back
2018.02.08 21:46:40 5: Starting notify loop for zoldertem, 1 event(s), first is read sensor data
2018.02.08 21:46:40 5: End notify loop for zoldertem
2018.02.08 21:46:40 4: XiaomiBTLESens (zoldertem) - Read XiaomiBTLESens_ExecGatttool_Run zoldertem|4C:65:A8:D1:7D:DC|read|0x18
2018.02.08 21:46:40 4: XiaomiBTLESens (zoldertem) - stateRequestTimer: Call Request Timer
2018.02.08 21:46:40 5: End notify loop for global
2018.02.08 21:46:40 0: Featurelevel: 5.8
2018.02.08 21:46:40 0: Server started with 10 defined entities (fhem.pl:16107/2018-02-07 perl:5.024001 os:linux user:fhem pid:915)
2018.02.08 21:46:40 4: Connection accepted from WEB_192.168.180.35_54728
2018.02.08 21:46:40 4: Connection accepted from telnetPort_127.0.0.1_59626
2018.02.08 21:46:41 4: WEB_192.168.180.35_54728 GET /fhem?XHR=1&inform=type=status;filter=;since=1518122782.584;fmt=JSON&fw_id=26&timestamp=1518122794778; BUFLEN:0
2018.02.08 21:46:41 5: Cmd: >{BlockingRegisterTelnet($cl,1)}<
2018.02.08 21:46:41 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b 4C:65:A8:D1:7D:DC --char-read -a 0x18 2>&1 /dev/null and loop 0
2018.02.08 21:46:45 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,64

2018.02.08 21:46:45 4: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,64

2018.02.08 21:46:45 5: Cmd: >{BlockingStart('1')}<
2018.02.08 21:46:45 5: Cmd: >{XiaomiBTLESens_ExecGatttool_Done('zoldertem|4C:65:A8:D1:7D:DC|ok|read|0x18|{"gtResult":"64 "}')}<
2018.02.08 21:46:45 4: XiaomiBTLESens (zoldertem) - ExecGatttool_Done: gatttool return string: zoldertem|4C:65:A8:D1:7D:DC|ok|read|0x18|{"gtResult":"64 "}
2018.02.08 21:46:45 5: XiaomiBTLESens (zoldertem) - ProcessingNotification
2018.02.08 21:46:45 4: XiaomiBTLESens (zoldertem) - ProcessingNotification: handle 0x18
2018.02.08 21:46:45 5: XiaomiBTLESens (zoldertem) - Thermo/Hygro Sens Handle0x18
2018.02.08 21:46:45 1: PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 682.
2018.02.08 21:46:45 3: eval: {XiaomiBTLESens_ExecGatttool_Done('zoldertem|4C:65:A8:D1:7D:DC|ok|read|0x18|{"gtResult":"64 "}')}
2018.02.08 21:46:45 1: PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 683.
2018.02.08 21:46:45 3: eval: {XiaomiBTLESens_ExecGatttool_Done('zoldertem|4C:65:A8:D1:7D:DC|ok|read|0x18|{"gtResult":"64 "}')}
2018.02.08 21:46:45 5: Starting notify loop for zoldertem, 3 event(s), first is battery: ok
2018.02.08 21:46:45 5: createNotifyHash
2018.02.08 21:46:45 5: End notify loop for zoldertem
2018.02.08 21:46:45 4: XiaomiBTLESens (zoldertem) - WriteReadings: Readings were written
2018.02.08 21:46:45 4: XiaomiBTLESens (zoldertem) - Run CreateParamGatttool with mod: write
2018.02.08 21:46:45 4: BlockingCall (XiaomiBTLESens_ExecGatttool_Run): created child (933), uses telnetPort to connect back
2018.02.08 21:46:45 5: Starting notify loop for zoldertem, 1 event(s), first is write sensor data
2018.02.08 21:46:45 5: End notify loop for zoldertem
2018.02.08 21:46:45 4: XiaomiBTLESens (zoldertem) - Write XiaomiBTLESens_ExecGatttool_Run zoldertem|4C:65:A8:D1:7D:DC|write|0x10|0100
2018.02.08 21:46:45 4: Connection accepted from telnetPort_127.0.0.1_59628
2018.02.08 21:46:45 5: Cmd: >{BlockingRegisterTelnet($cl,2)}<
2018.02.08 21:46:45 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: call gatttool with command timeout 15 gatttool -i hci0 -b 4C:65:A8:D1:7D:DC --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.02.08 21:47:00 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 36 2e 31 20 48 3d 36 38 2e 37 00
Notification handle = 0x000e value,54 3d 36 2e 32 20 48 3d 36 37 2e 39 00
Notification handle = 0x000e value,54 3d 36 2e 31 20 48 3d 36 39 2e 30 00
Notification handle = 0x000e value,54 3d 36 2e 33 20 48 3d 36 37 2e 39 00
Notification handle = 0x000e value,54 3d 36 2e 31 20 48 3d 36 38 2e 37 00
Notification handle = 0x000e value,54 3d 36 2e 32 20 48 3d 36 37 2e 39 00
Notification handle = 0x000e value,54 3d 36 2e 31 20 48 3d 36 38 2e 38 00
Notification handle = 0x000e value,54 3d 36 2e 32 20 48 3d 36 38 2e 30 00
Notification handle = 0x000e value,54 3d 36 2e 30 20 48 3d 36 38 2e 37 00
Notification handle = 0x000e value,54 3d 36 2e 32 20 48 3d 36 37 2e 39 00
Notification handle = 0x000e value,54 3d 36 2e 31 20 48 3d 36 39 2e 30 00
Notification handle = 0x000e value,54 3d 36 2e 33 20 48 3d 36 37 2e 39 00

2018.02.08 21:47:00 4: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 36 2e 31 20 48 3d 36 38 2e 37 00
Notification handle = 0x000e value,54 3d 36 2e 32 20 48 3d 36 37 2e 39 00
Notification handle = 0x000e value,54 3d 36 2e 31 20 48 3d 36 39 2e 30 00
Notification handle = 0x000e value,54 3d 36 2e 33 20 48 3d 36 37 2e 39 00
Notification handle = 0x000e value,54 3d 36 2e 31 20 48 3d 36 38 2e 37 00
Notification handle = 0x000e value,54 3d 36 2e 32 20 48 3d 36 37 2e 39 00
Notification handle = 0x000e value,54 3d 36 2e 31 20 48 3d 36 38 2e 38 00
Notification handle = 0x000e value,54 3d 36 2e 32 20 48 3d 36 38 2e 30 00
Notification handle = 0x000e value,54 3d 36 2e 30 20 48 3d 36 38 2e 37 00
Notification handle = 0x000e value,54 3d 36 2e 32 20 48 3d 36 37 2e 39 00
Notification handle = 0x000e value,54 3d 36 2e 31 20 48 3d 36 39 2e 30 00
Notification handle = 0x000e value,54 3d 36 2e 33 20 48 3d 36 37 2e 39 00

2018.02.08 21:47:00 5: Cmd: >{BlockingStart('2')}<
2018.02.08 21:47:00 5: Cmd: >{XiaomiBTLESens_ExecGatttool_Done('zoldertem|4C:65:A8:D1:7D:DC|ok|write|0x10|{"gtResult":"54 3d 36 2e 31 20 48 3d 36 38 2e 37 00 \nNotification handle = 0x000e value"}')}<
2018.02.08 21:47:00 4: XiaomiBTLESens (zoldertem) - ExecGatttool_Done: gatttool return string: zoldertem|4C:65:A8:D1:7D:DC|ok|write|0x10|{"gtResult":"54 3d 36 2e 31 20 48 3d 36 38 2e 37 00 \nNotification handle = 0x000e value"}
2018.02.08 21:47:00 5: XiaomiBTLESens (zoldertem) - ProcessingNotification
2018.02.08 21:47:00 4: XiaomiBTLESens (zoldertem) - ProcessingNotification: handle 0x10
2018.02.08 21:47:00 5: XiaomiBTLESens (zoldertem) - Thermo/Hygro Sens Handle0x10
2018.02.08 21:47:00 5: Starting notify loop for zoldertem, 3 event(s), first is temperature: 6.1
2018.02.08 21:47:00 5: End notify loop for zoldertem
2018.02.08 21:47:00 4: XiaomiBTLESens (zoldertem) - WriteReadings: Readings were written

Internals:
   BTMAC      4C:65:A8:D1:7D:DC
   DEF        4C:65:A8:D1:7D:DC
   INTERVAL   300
   NAME       zoldertem
   NOTIFYDEV  global,zoldertem
   NR         21
   NTFY_ORDER 50-zoldertem
   STATE      active
   TYPE       XiaomiBTLESens
   VERSION    2.0.5
   loglevel   4
   READINGS:
     2018-02-08 21:46:45   battery         ok
     2018-02-08 21:46:45   batteryLevel    100
     2018-02-08 15:18:45   firmware        00.00.66
     2018-02-08 21:47:00   humidity        8.7
     2018-02-08 21:02:58   lastGattError   charWrite faild
     2018-02-08 21:47:00   state           active
     2018-02-08 21:47:00   temperature     6.1
   helper:
     CallBattery 0
     CallSensDataCounter 0
     updateTimeCallBattery 1518122805.32754
     updateTimestampCallBattery 2018-02-08 21:46:45
Attributes:
   interval   300
   model      thermoHygroSens
   room       XiaomiBTLESens

CoolTux

Zitat von: kroonen am 08 Februar 2018, 21:43:30
Hi,

Today I got my bluetooth temp/sensor. In the living room de module works ok, but when I put it in de garage, where the temp is around 6 degrees I get wrong humidity 7.4. On the display it is also 06.3, so an 0 add.

I got this in my logging

2018.02.08 21:33:57 1: PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 682.
2018.02.08 21:33:57 3: eval: {XiaomiBTLESens_ExecGatttool_Done('zoldertem|4C:65:A8:D1:7D:DC|ok|read|0x18|{"gtResult":"64 "}')}
2018.02.08 21:33:57 1: PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 683.
2018.02.08 21:33:57 3: eval: {XiaomiBTLESens_ExecGatttool_Done('zoldertem|4C:65:A8:D1:7D:DC|ok|read|0x18|{"gtResult":"64 "}')}

Internals:
   BTMAC      4C:65:A8:D1:7D:DC
   DEF        4C:65:A8:D1:7D:DC
   INTERVAL   300
   NAME       zoldertem
   NOTIFYDEV  global,zoldertem
   NR         21
   NTFY_ORDER 50-zoldertem
   STATE      active
   TYPE       XiaomiBTLESens
   VERSION    2.0.5
   loglevel   4
   READINGS:
     2018-02-08 21:33:57   battery         ok
     2018-02-08 21:33:57   batteryLevel    100
     2018-02-08 15:18:45   firmware        00.00.66
     2018-02-08 21:34:12   humidity        7.4
     2018-02-08 21:02:58   lastGattError   charWrite faild
     2018-02-08 21:34:12   state           active
     2018-02-08 21:34:12   temperature     6.3
   helper:
     CallBattery 0
     CallSensDataCounter 0
     updateTimeCallBattery 1518122037.51622
     updateTimestampCallBattery 2018-02-08 21:33:57
Attributes:
   interval   300
   model      thermoHygroSens
   room       XiaomiBTLESens

Any idea what goes wrong??

Are you sure that you do not mix temperature and humidity? because in this list of your device temperature 6.3 and humidity 7.4
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

mod25

Zitat von: CoolTux am 08 Februar 2018, 17:03:01
Ok ich habe es gefixt und die aktuelle Version ist nun im Master Branch und wird auch morgen früh per SVN verteilt.
Wunderbar. Habe die neue Version schon eingespielt und die Minus Grade werden jetzt auch angezeigt. Vielen Dank

kroonen

I updated today to 2.0.7 but now nothing works, it look like ssh, but I don't use ssh , I have also no options of ssh set. It keep logging and stays on write sensor date, and last gaterror, no data response

2018.02.09 19:20:51 4: XiaomiBTLESens (zoldertem) - Run CreateParamGatttool with mod: read
2018.02.09 19:20:51 4: BlockingCall (XiaomiBTLESens_ExecGatttool_Run): created child (12713), uses telnetPort to connect back
2018.02.09 19:20:51 5: Starting notify loop for zoldertem, 1 event(s), first is read sensor data
2018.02.09 19:20:51 5: End notify loop for zoldertem
2018.02.09 19:20:51 5: XiaomiBTLESens (zoldertem) - Read XiaomiBTLESens_ExecGatttool_Run zoldertem|4C:65:A8:D1:7D:DC|read|0x18
2018.02.09 19:20:51 4: XiaomiBTLESens (zoldertem) - stateRequestTimer: Call Request Timer
2018.02.09 19:20:51 5: End notify loop for global
2018.02.09 19:20:51 0: Featurelevel: 5.8
2018.02.09 19:20:51 0: Server started with 10 defined entities (fhem.pl:16107/2018-02-07 perl:5.024001 os:linux user:fhem pid:12700)
2018.02.09 19:20:51 4: Connection accepted from telnetPort_127.0.0.1_41082
2018.02.09 19:20:51 5: Cmd: >{BlockingRegisterTelnet($cl,1)}<
2018.02.09 19:20:51 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b 4C:65:A8:D1:7D:DC --char-read -a 0x18 2>&1 /dev/null and loop 0
2018.02.09 19:20:55 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,64

2018.02.09 19:20:55 4: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,64

2018.02.09 19:20:55 5: Cmd: >{BlockingStart('1')}<
2018.02.09 19:20:55 5: Cmd: >{XiaomiBTLESens_ExecGatttool_Done('zoldertem|4C:65:A8:D1:7D:DC|ok|read|0x18|{"gtResult":"64 "}')}<
2018.02.09 19:20:55 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Done: gatttool return string: zoldertem|4C:65:A8:D1:7D:DC|ok|read|0x18|{"gtResult":"64 "}
2018.02.09 19:20:55 4: XiaomiBTLESens (zoldertem) - ProcessingNotification
2018.02.09 19:20:55 4: XiaomiBTLESens (zoldertem) - ProcessingNotification: handle 0x18
2018.02.09 19:20:55 4: XiaomiBTLESens (zoldertem) - Thermo/Hygro Sens Handle0x18
2018.02.09 19:20:55 1: PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 686.
2018.02.09 19:20:55 3: eval: {XiaomiBTLESens_ExecGatttool_Done('zoldertem|4C:65:A8:D1:7D:DC|ok|read|0x18|{"gtResult":"64 "}')}
2018.02.09 19:20:55 1: PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 687.
2018.02.09 19:20:55 3: eval: {XiaomiBTLESens_ExecGatttool_Done('zoldertem|4C:65:A8:D1:7D:DC|ok|read|0x18|{"gtResult":"64 "}')}
2018.02.09 19:20:55 5: Starting notify loop for zoldertem, 3 event(s), first is battery: ok
2018.02.09 19:20:55 5: createNotifyHash
2018.02.09 19:20:55 5: End notify loop for zoldertem
2018.02.09 19:20:55 4: XiaomiBTLESens (zoldertem) - WriteReadings: Readings were written
2018.02.09 19:20:55 4: XiaomiBTLESens (zoldertem) - Run CreateParamGatttool with mod: write
2018.02.09 19:20:55 4: BlockingCall (XiaomiBTLESens_ExecGatttool_Run): created child (12726), uses telnetPort to connect back
2018.02.09 19:20:55 5: Starting notify loop for zoldertem, 1 event(s), first is write sensor data
2018.02.09 19:20:55 5: End notify loop for zoldertem
2018.02.09 19:20:55 5: XiaomiBTLESens (zoldertem) - Write XiaomiBTLESens_ExecGatttool_Run zoldertem|4C:65:A8:D1:7D:DC|write|0x10|0100
2018.02.09 19:20:55 4: Connection accepted from telnetPort_127.0.0.1_41084
2018.02.09 19:20:55 5: Cmd: >{BlockingRegisterTelnet($cl,2)}<
2018.02.09 19:20:55 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: call gatttool with command ssh none 'timeout 5 gatttool -i hci0 -b 4C:65:A8:D1:7D:DC --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null' and loop 0
ssh: Could not resolve hostname none: Name or service not known
2018.02.09 19:20:55 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: gatttool loop result
2018.02.09 19:20:55 1: PERL WARNING: Use of uninitialized value in split at ./FHEM/74_XiaomiBTLESens.pm line 482.
2018.02.09 19:20:55 3: eval: {XiaomiBTLESens_ExecGatttool_Done('zoldertem|4C:65:A8:D1:7D:DC|ok|read|0x18|{"gtResult":"64 "}')}
2018.02.09 19:20:55 1: PERL WARNING: Use of uninitialized value $gtResult[1] in substitution (s///) at ./FHEM/74_XiaomiBTLESens.pm line 483.
2018.02.09 19:20:55 3: eval: {XiaomiBTLESens_ExecGatttool_Done('zoldertem|4C:65:A8:D1:7D:DC|ok|read|0x18|{"gtResult":"64 "}')}
2018.02.09 19:20:55 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: call gatttool with command ssh none 'timeout 5 gatttool -i hci0 -b 4C:65:A8:D1:7D:DC --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null' and loop 1
ssh: Could not resolve hostname none: Name or service not known
2018.02.09 19:20:55 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: gatttool loop result
2018.02.09 19:20:55 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: call gatttool with command ssh none 'timeout 5 gatttool -i hci0 -b 4C:65:A8:D1:7D:DC --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null' and loop 2
ssh: Could not resolve hostname none: Name or service not known
2018.02.09 19:20:55 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: gatttool loop result
2018.02.09 19:20:55 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: call gatttool with command ssh none 'timeout 5 gatttool -i hci0 -b 4C:65:A8:D1:7D:DC --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null' and loop 3
ssh: Could not resolve hostname none: Name or service not known
2018.02.09 19:20:55 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: gatttool loop result
2018.02.09 19:20:55 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: call gatttool with command ssh none 'timeout 5 gatttool -i hci0 -b 4C:65:A8:D1:7D:DC --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null' and loop 4
ssh: Could not resolve hostname none: Name or service not known
2018.02.09 19:20:56 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: gatttool loop result
2018.02.09 19:20:56 1: PERL WARNING: Use of uninitialized value $gtResult[1] in join or string at ./FHEM/74_XiaomiBTLESens.pm line 490.
2018.02.09 19:20:56 3: eval: {XiaomiBTLESens_ExecGatttool_Done('zoldertem|4C:65:A8:D1:7D:DC|ok|read|0x18|{"gtResult":"64 "}')}
2018.02.09 19:20:56 4: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: gatttool result connect error,
2018.02.09 19:20:56 5: Cmd: >{BlockingStart('2')}<
2018.02.09 19:20:56 5: Cmd: >{XiaomiBTLESens_ExecGatttool_Done('zoldertem|4C:65:A8:D1:7D:DC|error|write|0x10|{"gtResult":"no data response"}')}<
2018.02.09 19:20:56 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Done: gatttool return string: zoldertem|4C:65:A8:D1:7D:DC|error|write|0x10|{"gtResult":"no data response"}
2018.02.09 19:20:56 4: XiaomiBTLESens (zoldertem) - ProcessingErrors
2018.02.09 19:20:56 5: Starting notify loop for zoldertem, 2 event(s), first is lastGattError: no data response
2018.02.09 19:20:56 5: End notify loop for zoldertem
2018.02.09 19:20:56 4: XiaomiBTLESens (zoldertem) - WriteReadings: Readings were written
2018.02.09 19:20:56 4: XiaomiBTLESens (zoldertem) - Run CreateParamGatttool with mod: write
2018.02.09 19:20:56 4: BlockingCall (XiaomiBTLESens_ExecGatttool_Run): created child (12742), uses telnetPort to connect back
2018.02.09 19:20:56 5: Starting notify loop for zoldertem, 1 event(s), first is write sensor data
2018.02.09 19:20:56 5: End notify loop for zoldertem

CoolTux

Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net