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

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

Vorheriges Thema - Nächstes Thema

kroonen

Hi,

Looks ok now, thnx for the support


   STATE      T: 7.4  H: 68.1
   TYPE       XiaomiBTLESens
   VERSION    2.4.5
   loglevel   4
   READINGS:
     2018-11-22 08:01:40   batteryPercent  36
     2018-11-22 08:01:40   batteryState    ok
     2018-02-11 11:47:33   firmware        00.00.66
     2018-11-22 08:04:09   humidity        68.1
     2018-11-21 20:58:15   lastGattError   charWrite faild
     2018-11-22 08:04:09   state           T: 7.4  H: 68.1
     2018-11-22 08:04:09   temperature     7.4
   helper:
     CallBattery 0
     CallSensDataCounter 0
     updateTimeCallBattery 1542870100.28165
     updateTimestampCallBattery 2018-11-22 08:01:40
Attributes:
   interval   120
   model      thermoHygroSens
   room       XiaomiBTLESens



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

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

kroonen

Hi,

I updated my other, and these took the intern temp and humidity, and this is not correct anymore (strang characters)

NOTIFYDEV  global,Mayatemp
   NR         37
   NTFY_ORDER 50-Mayatemp
   STATE      Temp 16.9°C / Hum C?b%
   TYPE       XiaomiBTLESens
   VERSION    2.4.5
   loglevel   4
   READINGS:
     2018-06-28 18:59:02   battery         ok
     2018-06-28 18:59:02   batteryLevel    79
     2018-11-23 15:38:04   batteryPercent  42
     2018-11-23 15:38:04   batteryState    ok
     2018-02-22 11:23:20   firmware        00.00.66
     2018-11-23 16:23:41   humidity        C?b
     2018-11-23 12:24:38   lastGattError   charWrite faild
     2018-11-23 16:23:41   state           T: 16.9 H: C?b
     2018-11-23 16:23:41   temperature     16.9



Debug loglevel5 2 sensors
2018.11.23 16:28:04 5: XiaomiBTLESens (Mayatemp) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,2a

2018.11.23 16:28:04 4: XiaomiBTLESens (Mayatemp) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,2a

2018.11.23 16:28:04 5: Cmd: >{BlockingStart('1')}<
2018.11.23 16:28:04 5: Cmd: >{XiaomiBTLESens::ExecGatttool_Done('Mayatemp|4C:65:A8:D1:E8:DB|ok|read|0x18|{"gtResult":"2a "}')}<
2018.11.23 16:28:04 5: XiaomiBTLESens (Mayatemp) - ExecGatttool_Done: gatttool return string: Mayatemp|4C:65:A8:D1:E8:DB|ok|read|0x18|{"gtResult":"2a "}
2018.11.23 16:28:04 4: XiaomiBTLESens (Mayatemp) - ProcessingNotification
2018.11.23 16:28:04 4: XiaomiBTLESens (Mayatemp) - ProcessingNotification: handle 0x18
2018.11.23 16:28:04 4: XiaomiBTLESens (Mayatemp) - Thermo/Hygro Sens Handle0x18
2018.11.23 16:28:04 5: Starting notify loop for Mayatemp, 3 event(s), first is batteryPercent: 42
2018.11.23 16:28:04 5: Notify for Mayatemp
2018.11.23 16:28:04 5: batteryPercent: 42, 'batteryPercent', '42'
2018.11.23 16:28:04 5: MQTT mqtt message sent: Publish/at-most-once,retain /Mayakamer-Sensor/Mayakamertemp/Batt
  34 32                                            42
2018.11.23 16:28:04 5: SW: 312800242f4d6179616b616d65722d53656e736f722f4d6179616b616d657274656d702f426174743432
2018.11.23 16:28:04 5: Starting notify loop for mayatemp_mqtt, 1 event(s), first is transmission-state: outgoing publish sent
2018.11.23 16:28:04 5: End notify loop for mayatemp_mqtt
2018.11.23 16:28:04 5: batteryState: ok, 'batteryState', 'ok'
2018.11.23 16:28:04 5: T: 17.0 H: C�r, 'T', '17.0 H: C�r'
2018.11.23 16:28:04 5: End notify loop for Mayatemp
2018.11.23 16:28:04 4: XiaomiBTLESens (Mayatemp) - WriteReadings: Readings were written
2018.11.23 16:28:04 4: XiaomiBTLESens (Mayatemp) - Run CreateParamGatttool with mod: write
2018.11.23 16:28:04 4: BlockingCall (XiaomiBTLESens::ExecGatttool_Run): created child (11789), uses telnetPort to connect back
2018.11.23 16:28:04 5: Starting notify loop for Mayatemp, 1 event(s), first is write sensor data
2018.11.23 16:28:04 5: Notify for Mayatemp
2018.11.23 16:28:04 5: write sensor data, 'write sensor data', ''
2018.11.23 16:28:04 5: End notify loop for Mayatemp
2018.11.23 16:28:04 5: XiaomiBTLESens (Mayatemp) - Write XiaomiBTLESens_ExecGatttool_Run Mayatemp|4C:65:A8:D1:E8:DB|write|0x10|0100
2018.11.23 16:28:04 4: Connection accepted from telnetPort_127.0.0.1_52630
2018.11.23 16:28:04 5: Cmd: >{BlockingRegisterTelnet($cl,3)}<
2018.11.23 16:28:04 5: XiaomiBTLESens (Mayatemp) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D1:E8:DB --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.11.23 16:28:05 4: Connection accepted from WEB_192.168.180.32_63217
2018.11.23 16:28:05 4: Connection closed for WEB_192.168.180.32_63217: EOF
2018.11.23 16:28:05 4: Connection accepted from WEB_192.168.180.32_63219
2018.11.23 16:28:08 5: XiaomiBTLESens (Slaaptemp) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,23

2018.11.23 16:28:08 4: XiaomiBTLESens (Slaaptemp) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,23

2018.11.23 16:28:08 5: Cmd: >{BlockingStart('2')}<
2018.11.23 16:28:08 5: Cmd: >{XiaomiBTLESens::ExecGatttool_Done('Slaaptemp|4C:65:A8:D1:E3:0C|ok|read|0x18|{"gtResult":"23 "}')}<
2018.11.23 16:28:08 5: XiaomiBTLESens (Slaaptemp) - ExecGatttool_Done: gatttool return string: Slaaptemp|4C:65:A8:D1:E3:0C|ok|read|0x18|{"gtResult":"23 "}
2018.11.23 16:28:08 4: XiaomiBTLESens (Slaaptemp) - ProcessingNotification
2018.11.23 16:28:08 4: XiaomiBTLESens (Slaaptemp) - ProcessingNotification: handle 0x18
2018.11.23 16:28:08 4: XiaomiBTLESens (Slaaptemp) - Thermo/Hygro Sens Handle0x18
2018.11.23 16:28:08 5: Starting notify loop for Slaaptemp, 3 event(s), first is batteryPercent: 35
2018.11.23 16:28:08 5: createNotifyHash
2018.11.23 16:28:08 5: Notify for Slaaptemp
2018.11.23 16:28:08 5: batteryPercent: 35, 'batteryPercent', '35'
2018.11.23 16:28:08 5: MQTT mqtt message sent: Publish/at-most-once,retain /Slaapkamer-Sensor/Slaapkamertemp/Batt
  33 35                                            35
2018.11.23 16:28:08 5: SW: 312a00262f536c6161706b616d65722d53656e736f722f536c6161706b616d657274656d702f426174743335
2018.11.23 16:28:08 5: Starting notify loop for slaaptemp_mqtt, 1 event(s), first is transmission-state: outgoing publish sent
2018.11.23 16:28:08 5: End notify loop for slaaptemp_mqtt
2018.11.23 16:28:08 5: batteryState: ok, 'batteryState', 'ok'
2018.11.23 16:28:08 5: T: 15.5 H: C�R, 'T', '15.5 H: C�R'
2018.11.23 16:28:08 5: End notify loop for Slaaptemp
2018.11.23 16:28:08 4: XiaomiBTLESens (Slaaptemp) - WriteReadings: Readings were written
2018.11.23 16:28:08 4: XiaomiBTLESens (Slaaptemp) - Run CreateParamGatttool with mod: write
2018.11.23 16:28:08 4: BlockingCall (XiaomiBTLESens::ExecGatttool_Run): created child (11800), uses telnetPort to connect back
2018.11.23 16:28:08 5: Starting notify loop for Slaaptemp, 1 event(s), first is write sensor data
2018.11.23 16:28:08 5: Notify for Slaaptemp
2018.11.23 16:28:08 5: write sensor data, 'write sensor data', ''
2018.11.23 16:28:08 5: End notify loop for Slaaptemp
2018.11.23 16:28:08 5: XiaomiBTLESens (Slaaptemp) - Write XiaomiBTLESens_ExecGatttool_Run Slaaptemp|4C:65:A8:D1:E3:0C|write|0x10|0100
2018.11.23 16:28:08 4: Connection accepted from telnetPort_127.0.0.1_52632
2018.11.23 16:28:08 5: Cmd: >{BlockingRegisterTelnet($cl,4)}<
2018.11.23 16:28:08 5: XiaomiBTLESens (Slaaptemp) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D1:E3:0C --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.11.23 16:28:14 5: XiaomiBTLESens (Mayatemp) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 31 36 2e 39 20 48 3d 35 30 2e 38 00
Notification handle = 0x000e value,54 3d 31 37 2e 30 20 48 3d 35 30 2e 36 00
Notification handle = 0x000e value,54 3d 31 36 2e 39 20 48 3d 35 30 2e 37 00
Notification handle = 0x000e value,54 3d 31 36 2e 39 20 48 3d 35 30 2e 36 00
Notification handle = 0x000e value,54 3d 31 36 2e 39 20 48 3d 35 30 2e 38 00
Notification handle = 0x000e value,54 3d 31 37 2e 30 20 48 3d 35 30 2e 36 00
Notification handle = 0x000e value,54 3d 31 36 2e 39 20 48 3d 35 30 2e 37 00
Notification handle = 0x000e value,54 3d 31 36 2e 39 20 48 3d 35 30 2e 36 00
Notification handle = 0x000e value,54 3d 31 36 2e 39 20 48 3d 35 30 2e 37 00
Notification handle = 0x000e value,54 3d 31 36 2e 39 20 48 3d 35 30 2e 36 00

2018.11.23 16:28:14 4: XiaomiBTLESens (Mayatemp) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 31 36 2e 39 20 48 3d 35 30 2e 38 00
Notification handle = 0x000e value,54 3d 31 37 2e 30 20 48 3d 35 30 2e 36 00
Notification handle = 0x000e value,54 3d 31 36 2e 39 20 48 3d 35 30 2e 37 00
Notification handle = 0x000e value,54 3d 31 36 2e 39 20 48 3d 35 30 2e 36 00
Notification handle = 0x000e value,54 3d 31 36 2e 39 20 48 3d 35 30 2e 38 00
Notification handle = 0x000e value,54 3d 31 37 2e 30 20 48 3d 35 30 2e 36 00
Notification handle = 0x000e value,54 3d 31 36 2e 39 20 48 3d 35 30 2e 37 00
Notification handle = 0x000e value,54 3d 31 36 2e 39 20 48 3d 35 30 2e 36 00
Notification handle = 0x000e value,54 3d 31 36 2e 39 20 48 3d 35 30 2e 37 00
Notification handle = 0x000e value,54 3d 31 36 2e 39 20 48 3d 35 30 2e 36 00

2018.11.23 16:28:14 5: Cmd: >{BlockingStart('3')}<
2018.11.23 16:28:14 5: Cmd: >{XiaomiBTLESens::ExecGatttool_Done('Mayatemp|4C:65:A8:D1:E8:DB|ok|write|0x10|{"gtResult":"54 3d 31 36 2e 39 20 48 3d 35 30 2e 38 00 "}')}<
2018.11.23 16:28:14 5: XiaomiBTLESens (Mayatemp) - ExecGatttool_Done: gatttool return string: Mayatemp|4C:65:A8:D1:E8:DB|ok|write|0x10|{"gtResult":"54 3d 31 36 2e 39 20 48 3d 35 30 2e 38 00 "}
2018.11.23 16:28:14 4: XiaomiBTLESens (Mayatemp) - ProcessingNotification
2018.11.23 16:28:14 4: XiaomiBTLESens (Mayatemp) - ProcessingNotification: handle 0x10
2018.11.23 16:28:14 4: XiaomiBTLESens (Mayatemp) - Thermo/Hygro Sens Handle0x10
2018.11.23 16:28:14 5: Starting notify loop for Mayatemp, 3 event(s), first is temperature: 16.9
2018.11.23 16:28:14 5: Notify for Mayatemp
2018.11.23 16:28:14 5: temperature: 16.9, 'temperature', '16.9'
2018.11.23 16:28:14 5: MQTT mqtt message sent: Publish/at-most-once,retain /Mayakamer-Sensor/Mayakamertemp/Temperature
  31 36 2e 39                                      16.9
2018.11.23 16:28:14 5: SW: 3131002b2f4d6179616b616d65722d53656e736f722f4d6179616b616d657274656d702f54656d706572617475726531362e39
2018.11.23 16:28:14 5: Starting notify loop for mayatemp_mqtt, 1 event(s), first is transmission-state: outgoing publish sent
2018.11.23 16:28:14 5: End notify loop for mayatemp_mqtt
2018.11.23 16:28:14 5: humidity: C�b, 'humidity', 'C�b'
2018.11.23 16:28:14 5: MQTT mqtt message sent: Publish/at-most-once,retain /Mayakamer-Sensor/Mayakamertemp/Humidity
  43 d3 13 62                                      C..b
2018.11.23 16:28:14 5: SW: 312e00282f4d6179616b616d65722d53656e736f722f4d6179616b616d657274656d702f48756d696469747943d31362
2018.11.23 16:28:14 5: Starting notify loop for mayatemp_mqtt, 1 event(s), first is transmission-state: outgoing publish sent
2018.11.23 16:28:14 5: End notify loop for mayatemp_mqtt
2018.11.23 16:28:14 5: T: 16.9 H: C�b, 'T', '16.9 H: C�b'
2018.11.23 16:28:14 5: End notify loop for Mayatemp
2018.11.23 16:28:14 4: XiaomiBTLESens (Mayatemp) - WriteReadings: Readings were written
2018.11.23 16:28:18 5: XiaomiBTLESens (Slaaptemp) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 31 35 2e 34 20 48 3d 35 35 2e 39 00
Notification handle = 0x000e value,54 3d 31 35 2e 34 20 48 3d 35 36 2e 31 00
Notification handle = 0x000e value,54 3d 31 35 2e 34 20 48 3d 35 36 2e 32 00
Notification handle = 0x000e value,54 3d 31 35 2e 35 20 48 3d 35 36 2e 31 00

2018.11.23 16:28:18 4: XiaomiBTLESens (Slaaptemp) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 31 35 2e 34 20 48 3d 35 35 2e 39 00
Notification handle = 0x000e value,54 3d 31 35 2e 34 20 48 3d 35 36 2e 31 00
Notification handle = 0x000e value,54 3d 31 35 2e 34 20 48 3d 35 36 2e 32 00
Notification handle = 0x000e value,54 3d 31 35 2e 35 20 48 3d 35 36 2e 31 00

2018.11.23 16:28:18 5: Cmd: >{BlockingStart('4')}<
2018.11.23 16:28:18 5: Cmd: >{XiaomiBTLESens::ExecGatttool_Done('Slaaptemp|4C:65:A8:D1:E3:0C|ok|write|0x10|{"gtResult":"54 3d 31 35 2e 34 20 48 3d 35 35 2e 39 00 "}')}<
2018.11.23 16:28:18 5: XiaomiBTLESens (Slaaptemp) - ExecGatttool_Done: gatttool return string: Slaaptemp|4C:65:A8:D1:E3:0C|ok|write|0x10|{"gtResult":"54 3d 31 35 2e 34 20 48 3d 35 35 2e 39 00 "}
2018.11.23 16:28:18 4: XiaomiBTLESens (Slaaptemp) - ProcessingNotification
2018.11.23 16:28:18 4: XiaomiBTLESens (Slaaptemp) - ProcessingNotification: handle 0x10
2018.11.23 16:28:18 4: XiaomiBTLESens (Slaaptemp) - Thermo/Hygro Sens Handle0x10
2018.11.23 16:28:18 5: Starting notify loop for Slaaptemp, 3 event(s), first is temperature: 15.4
2018.11.23 16:28:18 5: Notify for Slaaptemp
2018.11.23 16:28:18 5: temperature: 15.4, 'temperature', '15.4'
2018.11.23 16:28:18 5: MQTT mqtt message sent: Publish/at-most-once,retain /Slaapkamer-Sensor/Slaapkamertemp/Temperature
  31 35 2e 34                                      15.4
2018.11.23 16:28:18 5: SW: 3133002d2f536c6161706b616d65722d53656e736f722f536c6161706b616d657274656d702f54656d706572617475726531352e34
2018.11.23 16:28:18 5: Starting notify loop for slaaptemp_mqtt, 1 event(s), first is transmission-state: outgoing publish sent
2018.11.23 16:28:18 5: End notify loop for slaaptemp_mqtt
2018.11.23 16:28:18 5: humidity: C�R, 'humidity', 'C�R'
2018.11.23 16:28:18 5: MQTT mqtt message sent: Publish/at-most-once,retain /Slaapkamer-Sensor/Slaapkamertemp/Humidity
  43 d3 13 52                                      C..R
2018.11.23 16:28:18 5: SW: 3130002a2f536c6161706b616d65722d53656e736f722f536c6161706b616d657274656d702f48756d696469747943d31352
2018.11.23 16:28:18 5: Starting notify loop for slaaptemp_mqtt, 1 event(s), first is transmission-state: outgoing publish sent
2018.11.23 16:28:18 5: End notify loop for slaaptemp_mqtt
2018.11.23 16:28:18 5: T: 15.4 H: C�R, 'T', '15.4 H: C�R'
2018.11.23 16:28:18 5: End notify loop for Slaaptemp
2018.11.23 16:28:18 4: XiaomiBTLESens (Slaaptemp) - WriteReadings: Readings were written
2018.11.23 16:28:27 4: WEB_192.168.180.32_63210 GET /fhem/FileLog_logWrapper?dev=Logfile&type=text&file=fhem-2018-11.log; BUFLEN:0

CoolTux

Hello. I can understand the mistake and will offer a fix for the days.
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

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

Thnx, it works now for all the devices correct

regards Richard

Typ1er

Zitat von: CoolTux am 20 November 2018, 09:43:42
Starte bitte einmal den kompletten Rechner neu und schaue ob es dann besser läuft.
Das hatte ich schon mehrfach gemacht.


Habe jetzt einen neuen Pi aufgesetzt, und selbes wieder, betrifft nur an 1 Sensor von 4. Interessant ist das die Xiaomi App den Sensor gefühlt im Sekundentakt auslesen kann.
Intervall steht bei mir auf 180 Sekunden

CoolTux

Du lässt aber nicht die App gleichzeitig laufen wie das Modul oder?
Das geht nämlich nicht, dann blockiert die App.
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

Zenz

Hallo CoolTux!

Habe heute erstmalig einen neu aufgesetzten Raspberry (2018-11-13-raspbian-stretch) mit Fhem (5.9) versucht den gerade aus China eingetroffenen Sensor in Betrieb zu nehmen.
Dabei zeigt sich nun folgendes Bild (siehe Anhang "Bild_1") bzw. Log ("Bild_2")

Da ich mir keinen Rat mehr weiß, ersuche ich höflich um Hilfe.

Mit der App (Android) funktioniert der Sensor bzw. konnte ich ihn auch auf Version 3.1.9 updaten.

Vielen Dank im Voraus
Zenz

I


CoolTux

Hallo Zens,

Leider kann ich nichts erkennen. Aber das ist nicht schlimm.
Als aller erstes so fern noch nicht geschehen bitte ein Update machen.
Dann noch mal testen, wenn das Fehlerbild geblieben ist, brauche ich ein list vom Device.
Also in die FHEMWEB Eingabekonsole eingeben
list DEVICENAME
DEVICENAME bitte durch den tatsächlichen ersetzen. Dann stellst Du den verbose des Devices, NICHT den globalen, auf 5 und machst eine Abfrage. Im FHEM Log sollten nun detaillierte Informationen zu finden sein. Das zusammen mit dem list postest Du bitte hier in Code Tags. Das ist das Rautezeichen im Forumeditors in der Symbolleiste.


Grüße
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

Zenz

zuerst einmal recht herzlichen Dank für deine Hilfe!

Hoffe, dass  ich das von dir benötigte, richtige gemacht habe  :-\

Beim Einfügen der Bilder (hier) scheitere ich leider - habe sie deshalb wieder als Anhang angefügt...  sorry

CoolTux

Zitat von: Zenz am 24 November 2018, 16:49:11
zuerst einmal recht herzlichen Dank für deine Hilfe!

Hoffe, dass  ich das von dir benötigte, richtige gemacht habe  :-\

[/code]

Bitte keine Screenshots. Bitte die Ausgabe, also das was du als Screenshot gezeigt hast, kopieren und hier in Codetags eintragen. Also nicht das was du mir so schreiben willst sondern das list und das Log in Codetags.

Das Log sollte im übrigen eigentlich länger sein.

Hast du die App noch mit dem Sensor verbunden oder das Handy? Wenn ja bitte die Verbindung lösen.
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

Zenz

Habe mit Sicherheit die App getrennt (geschlossen und Bluetooth abgeschaltet)

Raspberry nochmals neu gestartet

list
Internals:
   BTMAC      B8:27:EB:93:6E:EB
   DEF        B8:27:EB:93:6E:EB
   INTERVAL   300
   NAME       Zitrone
   NOTIFYDEV  global,Zitrone
   NR         16
   NTFY_ORDER 50-Zitrone
   STATE      error
   TYPE       XiaomiBTLESens
   VERSION    2.4.6
   loglevel   4
   READINGS:
     2018-11-24 16:56:45   lastGattError   The BlockingCall Process terminated unexpectedly. Timedout
     2018-11-24 16:56:45   state           error
   helper:
     CallBattery 0
     CallSensDataCounter 0
Attributes:
   model      flowerSens
   room       XiaomiBTLESens
   verbose    5



"get" ausgeführt
get Zitrone sensorData

=> erhalte bei den Readings
lastGattError

The BlockingCall Process terminated unexpectedly. Timedout

2018-11-24 16:56:45
state

read sensor data

2018-11-24 16:58:47


Log File
2018.11.24 16:55:14 0: Server shutdown
2018.11.24 16:55:15 1: Including fhem.cfg
2018.11.24 16:55:15 3: WEB: port 8083 opened
2018.11.24 16:55:15 2: eventTypes: loaded 7 events from ./log/eventTypes.txt
2018.11.24 16:55:15 3: XiaomiBTLESens (Zitrone) - defined with BTMAC B8:27:EB:93:6E:EB
2018.11.24 16:55:15 1: Including ./log/fhem.save
2018.11.24 16:55:15 4: XiaomiBTLESens (Zitrone) - Run CreateParamGatttool with mod: read
2018.11.24 16:55:15 3: telnetForBlockingFn_1543074915: port 41307 opened
2018.11.24 16:55:15 5: XiaomiBTLESens (Zitrone) - Read XiaomiBTLESens_ExecGatttool_Run Zitrone|B8:27:EB:93:6E:EB|read|0x38
2018.11.24 16:55:15 4: XiaomiBTLESens (Zitrone) - stateRequestTimer: Call Request Timer
2018.11.24 16:55:15 1: usb create starting
2018.11.24 16:55:16 3: Probing CUL device /dev/ttyAMA0
2018.11.24 16:55:16 3: Probing TCM_ESP3 device /dev/ttyAMA0
2018.11.24 16:55:16 3: Probing ZWDongle device /dev/ttyAMA0
2018.11.24 16:55:16 3: Probing FRM device /dev/ttyAMA0
2018.11.24 16:55:22 1: usb create end
2018.11.24 16:55:22 0: Featurelevel: 5.9
2018.11.24 16:55:22 0: Server started with 9 defined entities (fhem.pl:17779/2018-11-18 perl:5.024001 os:linux user:fhem pid:2118)
2018.11.24 16:55:22 3: FHEMWEB WEB CSRF error: csrf_117715287523099 ne csrf_263850007521562 for client WEB_10.0.0.11_52057 / command shutdown restart. For details see the csrfToken FHEMWEB attribute.
2018.11.24 16:55:22 5: XiaomiBTLESens (Zitrone) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b B8:27:EB:93:6E:EB --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.11.24 16:56:02 5: XiaomiBTLESens (Zitrone) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)

2018.11.24 16:56:02 5: XiaomiBTLESens (Zitrone) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b B8:27:EB:93:6E:EB --char-read -a 0x38 2>&1 /dev/null and loop 1
2018.11.24 16:56:42 5: XiaomiBTLESens (Zitrone) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)

2018.11.24 16:56:42 5: XiaomiBTLESens (Zitrone) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b B8:27:EB:93:6E:EB --char-read -a 0x38 2>&1 /dev/null and loop 2
2018.11.24 16:56:45 1: Timeout for XiaomiBTLESens::ExecGatttool_Run reached, terminated process 2119
2018.11.24 16:56:45 4: XiaomiBTLESens (Zitrone) - WriteReadings: Readings were written
2018.11.24 16:56:45 4: XiaomiBTLESens (Zitrone) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
2018.11.24 16:58:47 4: XiaomiBTLESens (Zitrone) - Run CreateParamGatttool with mod: read
2018.11.24 16:58:47 5: XiaomiBTLESens (Zitrone) - Read XiaomiBTLESens_ExecGatttool_Run Zitrone|B8:27:EB:93:6E:EB|read|0x38
2018.11.24 16:58:47 5: XiaomiBTLESens (Zitrone) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b B8:27:EB:93:6E:EB --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.11.24 16:59:27 5: XiaomiBTLESens (Zitrone) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)

2018.11.24 16:59:27 5: XiaomiBTLESens (Zitrone) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b B8:27:EB:93:6E:EB --char-read -a 0x38 2>&1 /dev/null and loop 1
2018.11.24 17:00:08 5: XiaomiBTLESens (Zitrone) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)

2018.11.24 17:00:08 5: XiaomiBTLESens (Zitrone) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b B8:27:EB:93:6E:EB --char-read -a 0x38 2>&1 /dev/null and loop 2
2018.11.24 17:00:17 1: Timeout for XiaomiBTLESens::ExecGatttool_Run reached, terminated process 2137
2018.11.24 17:00:17 4: XiaomiBTLESens (Zitrone) - WriteReadings: Readings were written
2018.11.24 17:00:17 4: XiaomiBTLESens (Zitrone) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout



CoolTux

Das gatttool bekommt keine Verbindung hin.
Ist der Sensor in Nähe des FHEM Servers? Welche Distribution verwendest Du? Bitte genaue Version.
Findest Du unter /etc/os-release
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