!!!ABGELÖST!!! [74_XiaomiFlowerSens.pm] Xiaomi Flower Monitor

Begonnen von CoolTux, 17 November 2016, 13:25:06

Vorheriges Thema - Nächstes Thema

CoolTux

Super. Dann kann ich also sagen geht mit der neuen Version 1.4.0. Aber es kommt noch eine kleine Fehlermeldung. Das schaue ich mir an. Ist bestimmt nichts großes.


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

CoolTux

Zitat von: distel am 03 Januar 2018, 09:54:56
Wie/Wo wird denn daran gearbeitet? Konkret suche ich aktuell nach einer Möglichkeit die die "neuen" Thermo/Hygrometer von Xiaomi  einzubinden. Da ich nichts gefunden haben, war die Überlegung mich bei deinem Modul inspirieren zu lassen. Falls es aber (absehbar) eine allgemeine Basis gibt, die den BT LE Part abdeckt, würde ich mich noch etwas gedulden...

https://de.aliexpress.com/item/Original-Xiaomi-Mijia-Bluetooth-Hygrothermograph-High-Sensitive-Lcd-bildschirm-Hygrometer-Thermometer-Sensor-Verwenden-Mit-Mijia-App/32844666522.html

Da dies die Arbeit eines anderen Entwicklers ist, möchte ich dazu nichts weiter sagen.



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

CoolTux

Zitat von: inoma am 03 Januar 2018, 08:19:51
Hallo CoolTux,das sieht soweit ganz gut aus, allerdings kommt immer folgender Fehler:
PERL WARNING: Use of uninitialized value $gtResult[0] in string eq at ./FHEM/74_XiaomiFlowerSens.pm line 444.

Ich befürchte ich werde das mit einem verbose 5 brauchen.
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

Jamo

#948
Hallo Leon,
aber gerne: Die Blume mit verbose 5 ist "Blume7", also im log darauf schauen.
2018.01.03 21:14:19 1: PERL WARNING: Use of uninitialized value $gtResult[0] in string eq at ./FHEM/74_XiaomiFlowerSens.pm line 444.
2018.01.03 21:14:19 3: eval: {XiaomiFlowerSens_ExecGatttool_Done('Blume1|C4:7C:8D:61:B9:A2|error|read|0x35|{"gtResult":"no data response"}')}
2018.01.03 21:14:19 1: PERL WARNING: Use of uninitialized value $gtResult[0] in string ne at ./FHEM/74_XiaomiFlowerSens.pm line 465.
2018.01.03 21:14:19 3: eval: {XiaomiFlowerSens_ExecGatttool_Done('Blume1|C4:7C:8D:61:B9:A2|error|read|0x35|{"gtResult":"no data response"}')}
2018.01.03 21:14:19 1: PERL WARNING: Use of uninitialized value $gtResult[0] in string eq at ./FHEM/74_XiaomiFlowerSens.pm line 444.
2018.01.03 21:14:19 3: eval: {XiaomiFlowerSens_ExecGatttool_Done('Blume2|C4:7C:8D:61:B4:D9|ok|read|0x38|{"gtResult":"34 27 33 2e 31 2e 38 "}')}
2018.01.03 21:14:19 1: PERL WARNING: Use of uninitialized value $gtResult[0] in string ne at ./FHEM/74_XiaomiFlowerSens.pm line 465.
2018.01.03 21:14:19 3: eval: {XiaomiFlowerSens_ExecGatttool_Done('Blume2|C4:7C:8D:61:B4:D9|ok|read|0x38|{"gtResult":"34 27 33 2e 31 2e 38 "}')}
2018.01.03 21:14:19 5: XiaomiFlowerSens (Blume7) - ExecGatttool_Run: gatttool loop result connect error,Software caused connection abort (103)

2018.01.03 21:14:19 5: XiaomiFlowerSens (Blume7) - ExecGatttool_Run: call gatttool with command ssh pizero 'gatttool -i hci0 -b C4:7C:8D:63:86:10 --char-read -a 0x38 2>&1 /dev/null' and loop 2
2018.01.03 21:14:24 2: Presence_GTag_RED_collect: Event: present
connect error: Software caused connection abort (103)
connect error: Software caused connection abort (103)
2018.01.03 21:14:26 1: PERL WARNING: Use of uninitialized value $gtResult[0] in string eq at ./FHEM/74_XiaomiFlowerSens.pm line 444.
2018.01.03 21:14:26 3: eval: {XiaomiFlowerSens_ExecGatttool_Done('Blume1|C4:7C:8D:61:B9:A2|error|read|0x35|{"gtResult":"no data response"}')}
2018.01.03 21:14:26 1: PERL WARNING: Use of uninitialized value $gtResult[0] in string ne at ./FHEM/74_XiaomiFlowerSens.pm line 465.
2018.01.03 21:14:26 3: eval: {XiaomiFlowerSens_ExecGatttool_Done('Blume1|C4:7C:8D:61:B9:A2|error|read|0x35|{"gtResult":"no data response"}')}
2018.01.03 21:14:26 1: PERL WARNING: Use of uninitialized value $gtResult[0] in string eq at ./FHEM/74_XiaomiFlowerSens.pm line 444.
2018.01.03 21:14:26 3: eval: {XiaomiFlowerSens_ExecGatttool_Done('Blume2|C4:7C:8D:61:B4:D9|error|read|0x35|{"gtResult":"no data response"}')}
2018.01.03 21:14:26 1: PERL WARNING: Use of uninitialized value $gtResult[0] in string ne at ./FHEM/74_XiaomiFlowerSens.pm line 465.
2018.01.03 21:14:26 3: eval: {XiaomiFlowerSens_ExecGatttool_Done('Blume2|C4:7C:8D:61:B4:D9|error|read|0x35|{"gtResult":"no data response"}')}
2018.01.03 21:14:26 5: XiaomiFlowerSens (Blume7) - ExecGatttool_Run: gatttool loop result connect error,Software caused connection abort (103)

2018.01.03 21:14:26 5: XiaomiFlowerSens (Blume7) - ExecGatttool_Run: call gatttool with command ssh pizero 'gatttool -i hci0 -b C4:7C:8D:63:86:10 --char-read -a 0x38 2>&1 /dev/null' and loop 3
connect error: Transport endpoint is not connected (107)
2018.01.03 21:14:38 1: PERL WARNING: Use of uninitialized value $gtResult[0] in string eq at ./FHEM/74_XiaomiFlowerSens.pm line 444.
2018.01.03 21:14:38 3: eval: {XiaomiFlowerSens_ExecGatttool_Done('Blume1|C4:7C:8D:61:B9:A2|error|read|0x35|{"gtResult":"no data response"}')}
2018.01.03 21:14:38 1: PERL WARNING: Use of uninitialized value $gtResult[0] in string ne at ./FHEM/74_XiaomiFlowerSens.pm line 465.
2018.01.03 21:14:38 3: eval: {XiaomiFlowerSens_ExecGatttool_Done('Blume1|C4:7C:8D:61:B9:A2|error|read|0x35|{"gtResult":"no data response"}')}
2018.01.03 21:14:46 1: Timeout for XiaomiFlowerSens_ExecGatttool_Run reached, terminated process 9688
2018.01.03 21:14:46 1: Timeout for XiaomiFlowerSens_ExecGatttool_Run reached, terminated process 9689
2018.01.03 21:14:46 4: XiaomiFlowerSens (Blume7) - WriteReadings: Readings were written
2018.01.03 21:14:46 4: XiaomiFlowerSens (Blume7) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
2018.01.03 21:14:46 1: Timeout for XiaomiFlowerSens_ExecGatttool_Run reached, terminated process 9690
Bullseye auf iNUC, Homematic + HMIP(UART/HMUSB), Debmatic, HUEBridge, Zigbee/Conbee III, FB7690, Alexa (fhem-lazy), Livetracking, LaCrosse JeeLink, LoRaWan / TTN / Chirpstack, Sonos, ESPresence

CoolTux

Eigenartig. Der Befehl für eine ssh Verbindung mit Abfrage ist nicht der den ich erwartet hätte. Welche Firmwareversion hat der Sensor?
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

Jamo

FW 3.1.8
Internals:
   BTMAC      C4:7C:8D:63:86:10
   DEF        C4:7C:8D:63:86:10
   INTERVAL   907
   NAME       Blume7
   NOTIFYDEV  global
   NR         4207
   NTFY_ORDER 50-Blume7
   STATE      M[20]: 34 &nbsp T: 19.4°C &nbsp Lx: 7 &nbsp Ft: 126 &nbsp 01-03 21:33
   TYPE       XiaomiFlowerSens
   VERSION    1.4.0
   loglevel   4
   READINGS:
     2018-01-03 21:33:15   OldMoist        34
     2018-01-03 21:33:05   battery         ok
     2018-01-03 21:33:05   batteryLevel    99
     2018-01-03 21:33:15   fertility       126
     2018-01-03 21:33:05   firmware        3.1.8
     2018-01-03 21:14:46   lastGattError   The BlockingCall Process terminated unexpectedly. Timedout
     2018-01-03 21:33:15   lux             58
     2017-12-29 01:41:05   lux10           7
     2018-01-03 21:33:15   moisture        34
     2018-01-03 21:33:15   state           active
     2018-01-03 21:33:15   temperature     19.4
     2018-01-03 21:33:15   timestamp       01-03 21:33
   helper:
     CallBatteryFirmware 0
     CallSensDataCounter 0
     updateTimeCallBatteryFirmware 1515011585.21971
     updateTimestampCallBatteryFirmware 2018-01-03 21:33:05
Attributes:
   alias      Zamie/Glücksfeder
   event-on-change-reading moisture,battery,batteryLevel
   event-on-update-reading moisture
   group      BLUMEN
   interval   907
   minMoisture 20
   minTemp    15
   room       Favourites,Wohnung
   sortby     08
   sshHost    pizero
   stateFormat M[20]: moisture &nbsp T: temperature°C &nbsp Lx: lux10 &nbsp Ft: fertility &nbsp timestamp
   userReadings timestamp:moisture:.* {sprintf("%s",substr(ReadingsTimestamp("Blume7","moisture","nA"),5,11))},
lux10:lux.* {sprintf("%d",((ReadingsVal("Blume7","lux","nA")+5)/10))}
   verbose    0
Bullseye auf iNUC, Homematic + HMIP(UART/HMUSB), Debmatic, HUEBridge, Zigbee/Conbee III, FB7690, Alexa (fhem-lazy), Livetracking, LaCrosse JeeLink, LoRaWan / TTN / Chirpstack, Sonos, ESPresence

CoolTux

Ich habe da jetzt hoch und runter getestet. Ich kann beim besten Willen nichts finden wieso Deine Ausgabe so anders ist.
Siehe unten. So sollte es aussehen. Der Befehl ist bei mir viel länger da ich eine Befehlskette gebildet habe.


2018.01.04 06:27:08 4: XiaomiFlowerSens (Dracaena) - WriteSensData: call function ExecGatttool_Run
2018.01.04 06:27:14 5: XiaomiFlowerSens (Dracaena) - ExecGatttool_Run: call gatttool with command ssh webapp01 'gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-write-req -a 0x33 -n A01F && gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.04 06:27:22 5: XiaomiFlowerSens (Dracaena) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Characteristic value/descriptor,ae 00 00 8e 00 00 00 27 83 02 02 3c 00 fb 34 9b

2018.01.04 06:27:22 4: XiaomiFlowerSens (Dracaena) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Characteristic value/descriptor,ae 00 00 8e 00 00 00 27 83 02 02 3c 00 fb 34 9b

2018.01.04 06:27:22 4: XiaomiFlowerSens (Dracaena) - ExecGatttool_Done: gatttool return string: Dracaena|C4:7C:8D:62:42:6F|ok|read|0x35|{"gtResult":"ae 00 00 8e 00 00 00 27 83 02 02 3c 00 fb 34 9b "}
2018.01.04 06:27:22 5: XiaomiFlowerSens (Dracaena) - ProcessingNotification
2018.01.04 06:27:22 4: XiaomiFlowerSens (Dracaena) - ProcessingNotification: handle 0x35
2018.01.04 06:27:22 5: XiaomiFlowerSens (Dracaena) - Handle0x35
2018.01.04 06:27:22 4: XiaomiFlowerSens (Dracaena) - WriteReadings: Readings were written
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

Jamo

Hallo Leon,
beim 'write' bekomme ich auch den langen Befehl. Hier nochmal ein längerer Log mit verbose 5 über alle Blumen. Jetzt sollte es stimmen.
2018.01.04 09:58:26 4: XiaomiFlowerSens (Blume2) - WriteSensData: call function ExecGatttool_Run
2018.01.04 09:58:27 5: XiaomiFlowerSens (Blume2) - ExecGatttool_Run: call gatttool with command ssh pizero 'gatttool -i hci0 -b C4:7C:8D:61:B4:D9 --char-write-req -a 0x33 -n A01F && gatttool -i hci0 -b C4:7C:8D:61:B4:D9 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.04 09:58:29 5: XiaomiFlowerSens (Blume2) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully Characteristic value/descriptor,bb 00 00 97 00 00 00 1f f5 00 02 3c 00 fb 34 9b
2018.01.04 09:58:29 4: XiaomiFlowerSens (Blume2) - ExecGatttool_Run: gatttool result Characteristic value was written successfully Characteristic value/descriptor,bb 00 00 97 00 00 00 1f f5 00 02 3c 00 fb 34 9b
2018.01.04 09:58:29 4: XiaomiFlowerSens (Blume2) - ExecGatttool_Done: gatttool return string: Blume2|C4:7C:8D:61:B4:D9|ok|read|0x35|{"gtResult":"bb 00 00 97 00 00 00 1f f5 00 02 3c 00 fb 34 9b "}
2018.01.04 09:58:29 5: XiaomiFlowerSens (Blume2) - ProcessingNotification
2018.01.04 09:58:29 4: XiaomiFlowerSens (Blume2) - ProcessingNotification: handle 0x35
2018.01.04 09:58:29 5: XiaomiFlowerSens (Blume2) - Handle0x35
2018.01.04 09:58:29 4: XiaomiFlowerSens (Blume2) - WriteReadings: Readings were written
2018.01.04 09:58:30 4: XiaomiFlowerSens (Blume3) - WriteSensData: call function ExecGatttool_Run
2018.01.04 09:58:32 5: XiaomiFlowerSens (Blume3) - ExecGatttool_Run: call gatttool with command ssh wohny 'gatttool -i hci0 -b C4:7C:8D:63:49:16 --char-write-req -a 0x33 -n A01F && gatttool -i hci0 -b C4:7C:8D:63:49:16 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.04 09:58:48 5: XiaomiFlowerSens (Blume3) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully Characteristic value/descriptor,91 00 00 7b 00 00 00 1a 4a 00 02 3c 00 fb 34 9b
2018.01.04 09:58:48 4: XiaomiFlowerSens (Blume3) - ExecGatttool_Run: gatttool result Characteristic value was written successfully Characteristic value/descriptor,91 00 00 7b 00 00 00 1a 4a 00 02 3c 00 fb 34 9b
2018.01.04 09:58:48 4: XiaomiFlowerSens (Blume3) - ExecGatttool_Done: gatttool return string: Blume3|C4:7C:8D:63:49:16|ok|read|0x35|{"gtResult":"91 00 00 7b 00 00 00 1a 4a 00 02 3c 00 fb 34 9b "}
2018.01.04 09:58:48 5: XiaomiFlowerSens (Blume3) - ProcessingNotification
2018.01.04 09:58:48 4: XiaomiFlowerSens (Blume3) - ProcessingNotification: handle 0x35
2018.01.04 09:58:48 5: XiaomiFlowerSens (Blume3) - Handle0x35
2018.01.04 09:58:48 4: XiaomiFlowerSens (Blume3) - WriteReadings: Readings were written
2018.01.04 10:00:14 4: XiaomiFlowerSens (Blume7) - WriteSensData: call function ExecGatttool_Run
2018.01.04 10:00:14 4: XiaomiFlowerSens (Blume7) - stateRequestTimer: Call Request Timer
2018.01.04 10:00:21 5: XiaomiFlowerSens (Blume7) - ExecGatttool_Run: call gatttool with command ssh pizero 'gatttool -i hci0 -b C4:7C:8D:63:86:10 --char-write-req -a 0x33 -n A01F && gatttool -i hci0 -b C4:7C:8D:63:86:10 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.04 10:00:28 5: XiaomiFlowerSens (Blume7) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully Characteristic value/descriptor,b6 00 00 75 00 00 00 22 82 00 02 3c 00 fb 34 9b
2018.01.04 10:00:28 4: XiaomiFlowerSens (Blume7) - ExecGatttool_Run: gatttool result Characteristic value was written successfully Characteristic value/descriptor,b6 00 00 75 00 00 00 22 82 00 02 3c 00 fb 34 9b
2018.01.04 10:00:28 4: XiaomiFlowerSens (Blume7) - ExecGatttool_Done: gatttool return string: Blume7|C4:7C:8D:63:86:10|ok|read|0x35|{"gtResult":"b6 00 00 75 00 00 00 22 82 00 02 3c 00 fb 34 9b "}
2018.01.04 10:00:28 5: XiaomiFlowerSens (Blume7) - ProcessingNotification
2018.01.04 10:00:28 4: XiaomiFlowerSens (Blume7) - ProcessingNotification: handle 0x35
2018.01.04 10:00:28 5: XiaomiFlowerSens (Blume7) - Handle0x35
2018.01.04 10:00:28 4: XiaomiFlowerSens (Blume7) - WriteReadings: Readings were written

2018.01.04 10:03:04 4: XiaomiFlowerSens (Blume1) - WriteSensData: call function ExecGatttool_Run
2018.01.04 10:03:04 4: XiaomiFlowerSens (Blume1) - stateRequestTimer: Call Request Timer
2018.01.04 10:03:06 5: XiaomiFlowerSens (Blume1) - ExecGatttool_Run: call gatttool with command ssh pizero 'gatttool -i hci0 -b C4:7C:8D:61:B9:A2 --char-write-req -a 0x33 -n A01F && gatttool -i hci0 -b C4:7C:8D:61:B9:A2 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.04 10:03:12 5: XiaomiFlowerSens (Blume1) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully Characteristic value/descriptor,b9 00 00 2b 00 00 00 34 22 03 02 3c 00 fb 34 9b
2018.01.04 10:03:12 4: XiaomiFlowerSens (Blume1) - ExecGatttool_Run: gatttool result Characteristic value was written successfully Characteristic value/descriptor,b9 00 00 2b 00 00 00 34 22 03 02 3c 00 fb 34 9b
2018.01.04 10:03:12 4: XiaomiFlowerSens (Blume1) - ExecGatttool_Done: gatttool return string: Blume1|C4:7C:8D:61:B9:A2|ok|read|0x35|{"gtResult":"b9 00 00 2b 00 00 00 34 22 03 02 3c 00 fb 34 9b "}
2018.01.04 10:03:12 5: XiaomiFlowerSens (Blume1) - ProcessingNotification
2018.01.04 10:03:12 4: XiaomiFlowerSens (Blume1) - ProcessingNotification: handle 0x35
2018.01.04 10:03:12 5: XiaomiFlowerSens (Blume1) - Handle0x35
2018.01.04 10:03:12 4: XiaomiFlowerSens (Blume1) - WriteReadings: Readings were written

2018.01.04 10:04:33 4: XiaomiFlowerSens (Blume8) - WriteSensData: call function ExecGatttool_Run
2018.01.04 10:04:33 4: XiaomiFlowerSens (Blume8) - stateRequestTimer: Call Request Timer ssh: connect to host pizero port 22: No route to host
2018.01.04 10:04:52 4: XiaomiFlowerSens (Blume8) - ExecGatttool_Done: gatttool return string: Blume8|C4:7C:8D:63:89:AA|error|write|0x33|no gatttool binary found. Please check if bluez-package is properly installed
2018.01.04 10:04:52 5: XiaomiFlowerSens (Blume8) - ExecGatttool_Done: JSON error while request: 'null' expected, at character offset 0 (before "no gatttool binary f...") at ./FHEM/74_XiaomiFlowerSens.pm line 494.
2018.01.04 10:04:52 5: XiaomiFlowerSens (Blume8) - ProcessingErrors
2018.01.04 10:04:52 4: XiaomiFlowerSens (Blume8) - WriteReadings: Readings were written

2018.01.04 10:09:19 4: XiaomiFlowerSens (Blume5) - WriteSensData: call function ExecGatttool_Run
2018.01.04 10:09:19 4: XiaomiFlowerSens (Blume5) - stateRequestTimer: Call Request Timer
2018.01.04 10:09:20 5: XiaomiFlowerSens (Blume5) - ExecGatttool_Run: call gatttool with command ssh flurry 'gatttool -i hci0 -b C4:7C:8D:63:4B:36 --char-write-req -a 0x33 -n A01F && gatttool -i hci0 -b C4:7C:8D:63:4B:36 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.04 10:09:42 4: XiaomiFlowerSens (Blume6) - WriteSensData: call function ExecGatttool_Run
2018.01.04 10:09:42 4: XiaomiFlowerSens (Blume6) - stateRequestTimer: Call Request Timer
2018.01.04 10:09:43 5: XiaomiFlowerSens (Blume6) - ExecGatttool_Run: call gatttool with command ssh flurry 'gatttool -i hci0 -b C4:7C:8D:63:5E:9F --char-write-req -a 0x33 -n A01F && gatttool -i hci0 -b C4:7C:8D:63:5E:9F --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.04 10:09:50 5: XiaomiFlowerSens (Blume6) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully Characteristic value/descriptor,c6 00 00 42 01 00 00 14 4c 00 02 3c 00 fb 34 9b
2018.01.04 10:09:50 4: XiaomiFlowerSens (Blume6) - ExecGatttool_Run: gatttool result Characteristic value was written successfully Characteristic value/descriptor,c6 00 00 42 01 00 00 14 4c 00 02 3c 00 fb 34 9b
2018.01.04 10:09:50 4: XiaomiFlowerSens (Blume6) - ExecGatttool_Done: gatttool return string: Blume6|C4:7C:8D:63:5E:9F|ok|read|0x35|{"gtResult":"c6 00 00 42 01 00 00 14 4c 00 02 3c 00 fb 34 9b "}
2018.01.04 10:09:50 5: XiaomiFlowerSens (Blume6) - ProcessingNotification
2018.01.04 10:09:50 4: XiaomiFlowerSens (Blume6) - ProcessingNotification: handle 0x35
2018.01.04 10:09:50 5: XiaomiFlowerSens (Blume6) - Handle0x35
2018.01.04 10:09:50 4: XiaomiFlowerSens (Blume6) - WriteReadings: Readings were written
2018.01.04 10:10:00 5: XiaomiFlowerSens (Blume5) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully Characteristic value/descriptor,b8 00 00 af 00 00 00 19 ac 00 02 3c 00 fb 34 9b
2018.01.04 10:10:00 4: XiaomiFlowerSens (Blume5) - ExecGatttool_Run: gatttool result Characteristic value was written successfully Characteristic value/descriptor,b8 00 00 af 00 00 00 19 ac 00 02 3c 00 fb 34 9b
2018.01.04 10:10:00 4: XiaomiFlowerSens (Blume5) - ExecGatttool_Done: gatttool return string: Blume5|C4:7C:8D:63:4B:36|ok|read|0x35|{"gtResult":"b8 00 00 af 00 00 00 19 ac 00 02 3c 00 fb 34 9b "}
2018.01.04 10:10:00 5: XiaomiFlowerSens (Blume5) - ProcessingNotification
2018.01.04 10:10:00 4: XiaomiFlowerSens (Blume5) - ProcessingNotification: handle 0x35
2018.01.04 10:10:00 5: XiaomiFlowerSens (Blume5) - Handle0x35
2018.01.04 10:10:01 4: XiaomiFlowerSens (Blume5) - WriteReadings: Readings were written

2018.01.04 10:14:12 4: XiaomiFlowerSens (Blume3) - WriteSensData: call function ExecGatttool_Run
2018.01.04 10:14:12 4: XiaomiFlowerSens (Blume3) - stateRequestTimer: Call Request Timer
2018.01.04 10:14:13 5: XiaomiFlowerSens (Blume3) - ExecGatttool_Run: call gatttool with command ssh flurry 'gatttool -i hci0 -b C4:7C:8D:63:49:16 --char-write-req -a 0x33 -n A01F && gatttool -i hci0 -b C4:7C:8D:63:49:16 --char-read -a 0x35 2>&1 /dev/null' and loop 0 connect error: Connection refused (111)
2018.01.04 10:14:53 5: XiaomiFlowerSens (Blume3) - ExecGatttool_Run: gatttool loop result
2018.01.04 10:14:53 1: PERL WARNING: Use of uninitialized value $gtResult[0] in string eq at ./FHEM/74_XiaomiFlowerSens.pm line 444.
2018.01.04 10:14:53 4: XiaomiFlowerSens (Blume3) - ExecGatttool_Run: gatttool result
2018.01.04 10:14:53 1: PERL WARNING: Use of uninitialized value $gtResult[0] in string ne at ./FHEM/74_XiaomiFlowerSens.pm line 465.
2018.01.04 10:14:53 4: XiaomiFlowerSens (Blume3) - ExecGatttool_Done: gatttool return string: Blume3|C4:7C:8D:63:49:16|error|read|0x35|{"gtResult":"no data response"}
2018.01.04 10:14:53 5: XiaomiFlowerSens (Blume3) - ProcessingErrors
2018.01.04 10:14:53 4: XiaomiFlowerSens (Blume3) - WriteReadings: Readings were written
2018.01.04 10:15:11 4: XiaomiFlowerSens (Blume2) - WriteSensData: call function ExecGatttool_Run
2018.01.04 10:15:11 4: XiaomiFlowerSens (Blume2) - stateRequestTimer: Call Request Timer
2018.01.04 10:15:12 5: XiaomiFlowerSens (Blume2) - ExecGatttool_Run: call gatttool with command ssh flurry 'gatttool -i hci0 -b C4:7C:8D:61:B4:D9 --char-write-req -a 0x33 -n A01F && gatttool -i hci0 -b C4:7C:8D:61:B4:D9 --char-read -a 0x35 2>&1 /dev/null' and loop 0 connect error: Transport endpoint is not connected (107)
2018.01.04 10:15:26 5: XiaomiFlowerSens (Blume2) - ExecGatttool_Run: gatttool loop result
2018.01.04 10:15:26 1: PERL WARNING: Use of uninitialized value $gtResult[0] in string eq at ./FHEM/74_XiaomiFlowerSens.pm line 444.
2018.01.04 10:15:26 4: XiaomiFlowerSens (Blume2) - ExecGatttool_Run: gatttool result
2018.01.04 10:15:26 1: PERL WARNING: Use of uninitialized value $gtResult[0] in string ne at ./FHEM/74_XiaomiFlowerSens.pm line 465.
2018.01.04 10:15:26 4: XiaomiFlowerSens (Blume2) - ExecGatttool_Done: gatttool return string: Blume2|C4:7C:8D:61:B4:D9|error|read|0x35|{"gtResult":"no data response"}
2018.01.04 10:15:26 5: XiaomiFlowerSens (Blume2) - ProcessingErrors
2018.01.04 10:15:26 4: XiaomiFlowerSens (Blume2) - WriteReadings: Readings were written
2018.01.04 10:17:03 4: XiaomiFlowerSens (Blume4) - WriteSensData: call function ExecGatttool_Run
2018.01.04 10:17:03 4: XiaomiFlowerSens (Blume4) - stateRequestTimer: Call Request Timer
2018.01.04 10:17:04 5: XiaomiFlowerSens (Blume4) - ExecGatttool_Run: call gatttool with command ssh flurry 'gatttool -i hci0 -b C4:7C:8D:63:7D:8F --char-write-req -a 0x33 -n A01F && gatttool -i hci0 -b C4:7C:8D:63:7D:8F --char-read -a 0x35 2>&1 /dev/null' and loop 0 connect error: Connection refused (111)
2018.01.04 10:17:45 5: XiaomiFlowerSens (Blume4) - ExecGatttool_Run: gatttool loop result
2018.01.04 10:17:45 1: PERL WARNING: Use of uninitialized value $gtResult[0] in string eq at ./FHEM/74_XiaomiFlowerSens.pm line 444.
2018.01.04 10:17:45 4: XiaomiFlowerSens (Blume4) - ExecGatttool_Run: gatttool result
2018.01.04 10:17:45 1: PERL WARNING: Use of uninitialized value $gtResult[0] in string ne at ./FHEM/74_XiaomiFlowerSens.pm line 465.
2018.01.04 10:17:45 4: XiaomiFlowerSens (Blume4) - ExecGatttool_Done: gatttool return string: Blume4|C4:7C:8D:63:7D:8F|error|read|0x35|{"gtResult":"no data response"}
2018.01.04 10:17:45 5: XiaomiFlowerSens (Blume4) - ProcessingErrors
2018.01.04 10:17:45 4: XiaomiFlowerSens (Blume4) - WriteReadings: Readings were written
2018.01.04 10:18:12 4: XiaomiFlowerSens (Blume7) - WriteSensData: call function ExecGatttool_Run
2018.01.04 10:18:12 4: XiaomiFlowerSens (Blume7) - stateRequestTimer: Call Request Timer
2018.01.04 10:18:13 5: XiaomiFlowerSens (Blume7) - ExecGatttool_Run: call gatttool with command ssh flurry 'gatttool -i hci0 -b C4:7C:8D:63:86:10 --char-write-req -a 0x33 -n A01F && gatttool -i hci0 -b C4:7C:8D:63:86:10 --char-read -a 0x35 2>&1 /dev/null' and loop 0 connect error: Transport endpoint is not connected (107)
2018.01.04 10:18:20 5: XiaomiFlowerSens (Blume7) - ExecGatttool_Run: gatttool loop result
2018.01.04 10:18:20 1: PERL WARNING: Use of uninitialized value $gtResult[0] in string eq at ./FHEM/74_XiaomiFlowerSens.pm line 444.
2018.01.04 10:18:20 4: XiaomiFlowerSens (Blume7) - ExecGatttool_Run: gatttool result
2018.01.04 10:18:20 1: PERL WARNING: Use of uninitialized value $gtResult[0] in string ne at ./FHEM/74_XiaomiFlowerSens.pm line 465.
2018.01.04 10:18:20 4: XiaomiFlowerSens (Blume7) - ExecGatttool_Done: gatttool return string: Blume7|C4:7C:8D:63:86:10|error|read|0x35|{"gtResult":"no data response"}
2018.01.04 10:18:20 5: XiaomiFlowerSens (Blume7) - ProcessingErrors
2018.01.04 10:18:20 4: XiaomiFlowerSens (Blume7) - WriteReadings: Readings were written
2018.01.04 10:19:24 4: XiaomiFlowerSens (Blume1) - WriteSensData: call function ExecGatttool_Run
2018.01.04 10:19:24 4: XiaomiFlowerSens (Blume1) - stateRequestTimer: Call Request Timer
2018.01.04 10:19:25 5: XiaomiFlowerSens (Blume1) - ExecGatttool_Run: call gatttool with command ssh flurry 'gatttool -i hci0 -b C4:7C:8D:61:B9:A2 --char-write-req -a 0x33 -n A01F && gatttool -i hci0 -b C4:7C:8D:61:B9:A2 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.04 10:19:33 5: XiaomiFlowerSens (Blume1) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully Characteristic value/descriptor,ba 00 00 87 00 00 00 33 20 03 02 3c 00 fb 34 9b
2018.01.04 10:19:33 4: XiaomiFlowerSens (Blume1) - ExecGatttool_Run: gatttool result Characteristic value was written successfully Characteristic value/descriptor,ba 00 00 87 00 00 00 33 20 03 02 3c 00 fb 34 9b
2018.01.04 10:19:33 4: XiaomiFlowerSens (Blume1) - ExecGatttool_Done: gatttool return string: Blume1|C4:7C:8D:61:B9:A2|ok|read|0x35|{"gtResult":"ba 00 00 87 00 00 00 33 20 03 02 3c 00 fb 34 9b "}
2018.01.04 10:19:33 5: XiaomiFlowerSens (Blume1) - ProcessingNotification
2018.01.04 10:19:33 4: XiaomiFlowerSens (Blume1) - ProcessingNotification: handle 0x35
2018.01.04 10:19:33 5: XiaomiFlowerSens (Blume1) - Handle0x35
2018.01.04 10:19:33 4: XiaomiFlowerSens (Blume1) - WriteReadings: Readings were written
Bullseye auf iNUC, Homematic + HMIP(UART/HMUSB), Debmatic, HUEBridge, Zigbee/Conbee III, FB7690, Alexa (fhem-lazy), Livetracking, LaCrosse JeeLink, LoRaWan / TTN / Chirpstack, Sonos, ESPresence

CoolTux

Ah ok, jetzt habe ich ein klareres Bild. Sobald er einmal keine Verbindung aufbauen kann. z.B. Connection refused vom BT Dongle kommt er durch die Befehlskette durcheinander.

Muss ich mir was einfallen lassen.
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: CoolTux am 03 Januar 2018, 12:43:45
Da dies die Arbeit eines anderen Entwicklers ist, möchte ich dazu nichts weiter sagen.
Spaßeshalber habe ich mal versucht, das Thermometer mit Deinem Modul einzubinden. Das Ergebnis scheint vielversprechend...

defmod xfs XiaomiFlowerSens 4C:65:A8:D0:42:63

setstate xfs active
setstate xfs 2018-01-04 18:20:18 battery ok
setstate xfs 2018-01-04 18:20:18 batteryLevel 255
setstate xfs 2018-01-04 18:21:38 fertility 0
setstate xfs 2018-01-04 18:20:18 firmware -30.-30.-30
setstate xfs 2018-01-04 18:21:38 lux 16
setstate xfs 2018-01-04 18:21:38 moisture 0
setstate xfs 2018-01-04 18:21:38 state active
setstate xfs 2018-01-04 18:21:38 temperature 1383.2


Natürlich stimmen die Daten soweit noch nicht, aber es scheint eine ähnliche Implementierung zu sein. Kannst Du mir nen Tipp geben, wie ich da weiter kommen könnte?! Ggf. könnte Dein Modul ja auch "universeller werden...


Gruß

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

CoolTux

Zitat von: distel am 04 Januar 2018, 18:25:58
Spaßeshalber habe ich mal versucht, das Thermometer mit Deinem Modul einzubinden. Das Ergebnis scheint vielversprechend...

defmod xfs XiaomiFlowerSens 4C:65:A8:D0:42:63

setstate xfs active
setstate xfs 2018-01-04 18:20:18 battery ok
setstate xfs 2018-01-04 18:20:18 batteryLevel 255
setstate xfs 2018-01-04 18:21:38 fertility 0
setstate xfs 2018-01-04 18:20:18 firmware -30.-30.-30
setstate xfs 2018-01-04 18:21:38 lux 16
setstate xfs 2018-01-04 18:21:38 moisture 0
setstate xfs 2018-01-04 18:21:38 state active
setstate xfs 2018-01-04 18:21:38 temperature 1383.2


Natürlich stimmen die Daten soweit noch nicht, aber es scheint eine ähnliche Implementierung zu sein. Kannst Du mir nen Tipp geben, wie ich da weiter kommen könnte?! Ggf. könnte Dein Modul ja auch "universeller werden...


Gruß

Dirk

Schau erstmal das du Werte ausserhalb von FHEM bekommst. Nur rein mit einem gatttool Aufruf.
Hier ist der Ausgangthread da findest Du mehr Infos
https://forum.fhem.de/index.php/topic,57787.0.html


Mach mal gatttool --characteristic oder so ähnlich.
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: CoolTux am 04 Januar 2018, 19:22:52
Schau erstmal das du Werte ausserhalb von FHEM bekommst. Nur rein mit einem gatttool Aufruf.
Danke für die Tipps! Leider zickt das Teil schon was rum :-/

Nen paar Dinge lassen sich "standardkonform" (Device Information, Battery Service, ...) auslesen - das hatte mir auch schon nRF Connect auf Android angezeigt.
Nur die Temperatur will sich nicht offenbaren.

Gibt es ne Möglichkeit bei Android den BT-Verkehr zu tracen? dann könnte ich mal die App belauschen...

Gruß Dirk

PS: Bin ja etwas OffTopic hier unterwegs... werde wohl mal nen neuen Thread aufmachen - Wenn es "joinbare" Erebnisse gibt, weiß ich ja, wohin ich mich wenden kann.
NUC-I37100
Docker: eBus, fhem, ha-bridge, unifi
Hardware: Homematic, FS20, Somfy RTS, 1wire, FBAHA, enOcean

CoolTux

#957
Zitat von: inoma am 04 Januar 2018, 10:32:06
Hallo Leon,
beim 'write' bekomme ich auch den langen Befehl. Hier nochmal ein längerer Log mit verbose 5 über alle Blumen. Jetzt sollte es stimmen.
2018.01.04 09:58:26 4: XiaomiFlowerSens (Blume2) - WriteSensData: call function ExecGatttool_Run
2018.01.04 09:58:27 5: XiaomiFlowerSens (Blume2) - ExecGatttool_Run: call gatttool with command ssh pizero 'gatttool -i hci0 -b C4:7C:8D:61:B4:D9 --char-write-req -a 0x33 -n A01F && gatttool -i hci0 -b C4:7C:8D:61:B4:D9 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.04 09:58:29 5: XiaomiFlowerSens (Blume2) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully Characteristic value/descriptor,bb 00 00 97 00 00 00 1f f5 00 02 3c 00 fb 34 9b
2018.01.04 09:58:29 4: XiaomiFlowerSens (Blume2) - ExecGatttool_Run: gatttool result Characteristic value was written successfully Characteristic value/descriptor,bb 00 00 97 00 00 00 1f f5 00 02 3c 00 fb 34 9b
2018.01.04 09:58:29 4: XiaomiFlowerSens (Blume2) - ExecGatttool_Done: gatttool return string: Blume2|C4:7C:8D:61:B4:D9|ok|read|0x35|{"gtResult":"bb 00 00 97 00 00 00 1f f5 00 02 3c 00 fb 34 9b "}
2018.01.04 09:58:29 5: XiaomiFlowerSens (Blume2) - ProcessingNotification
2018.01.04 09:58:29 4: XiaomiFlowerSens (Blume2) - ProcessingNotification: handle 0x35
2018.01.04 09:58:29 5: XiaomiFlowerSens (Blume2) - Handle0x35
2018.01.04 09:58:29 4: XiaomiFlowerSens (Blume2) - WriteReadings: Readings were written
2018.01.04 09:58:30 4: XiaomiFlowerSens (Blume3) - WriteSensData: call function ExecGatttool_Run
2018.01.04 09:58:32 5: XiaomiFlowerSens (Blume3) - ExecGatttool_Run: call gatttool with command ssh wohny 'gatttool -i hci0 -b C4:7C:8D:63:49:16 --char-write-req -a 0x33 -n A01F && gatttool -i hci0 -b C4:7C:8D:63:49:16 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.04 09:58:48 5: XiaomiFlowerSens (Blume3) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully Characteristic value/descriptor,91 00 00 7b 00 00 00 1a 4a 00 02 3c 00 fb 34 9b
2018.01.04 09:58:48 4: XiaomiFlowerSens (Blume3) - ExecGatttool_Run: gatttool result Characteristic value was written successfully Characteristic value/descriptor,91 00 00 7b 00 00 00 1a 4a 00 02 3c 00 fb 34 9b
2018.01.04 09:58:48 4: XiaomiFlowerSens (Blume3) - ExecGatttool_Done: gatttool return string: Blume3|C4:7C:8D:63:49:16|ok|read|0x35|{"gtResult":"91 00 00 7b 00 00 00 1a 4a 00 02 3c 00 fb 34 9b "}
2018.01.04 09:58:48 5: XiaomiFlowerSens (Blume3) - ProcessingNotification
2018.01.04 09:58:48 4: XiaomiFlowerSens (Blume3) - ProcessingNotification: handle 0x35
2018.01.04 09:58:48 5: XiaomiFlowerSens (Blume3) - Handle0x35
2018.01.04 09:58:48 4: XiaomiFlowerSens (Blume3) - WriteReadings: Readings were written
2018.01.04 10:00:14 4: XiaomiFlowerSens (Blume7) - WriteSensData: call function ExecGatttool_Run
2018.01.04 10:00:14 4: XiaomiFlowerSens (Blume7) - stateRequestTimer: Call Request Timer
2018.01.04 10:00:21 5: XiaomiFlowerSens (Blume7) - ExecGatttool_Run: call gatttool with command ssh pizero 'gatttool -i hci0 -b C4:7C:8D:63:86:10 --char-write-req -a 0x33 -n A01F && gatttool -i hci0 -b C4:7C:8D:63:86:10 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.04 10:00:28 5: XiaomiFlowerSens (Blume7) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully Characteristic value/descriptor,b6 00 00 75 00 00 00 22 82 00 02 3c 00 fb 34 9b
2018.01.04 10:00:28 4: XiaomiFlowerSens (Blume7) - ExecGatttool_Run: gatttool result Characteristic value was written successfully Characteristic value/descriptor,b6 00 00 75 00 00 00 22 82 00 02 3c 00 fb 34 9b
2018.01.04 10:00:28 4: XiaomiFlowerSens (Blume7) - ExecGatttool_Done: gatttool return string: Blume7|C4:7C:8D:63:86:10|ok|read|0x35|{"gtResult":"b6 00 00 75 00 00 00 22 82 00 02 3c 00 fb 34 9b "}
2018.01.04 10:00:28 5: XiaomiFlowerSens (Blume7) - ProcessingNotification
2018.01.04 10:00:28 4: XiaomiFlowerSens (Blume7) - ProcessingNotification: handle 0x35
2018.01.04 10:00:28 5: XiaomiFlowerSens (Blume7) - Handle0x35
2018.01.04 10:00:28 4: XiaomiFlowerSens (Blume7) - WriteReadings: Readings were written

2018.01.04 10:03:04 4: XiaomiFlowerSens (Blume1) - WriteSensData: call function ExecGatttool_Run
2018.01.04 10:03:04 4: XiaomiFlowerSens (Blume1) - stateRequestTimer: Call Request Timer
2018.01.04 10:03:06 5: XiaomiFlowerSens (Blume1) - ExecGatttool_Run: call gatttool with command ssh pizero 'gatttool -i hci0 -b C4:7C:8D:61:B9:A2 --char-write-req -a 0x33 -n A01F && gatttool -i hci0 -b C4:7C:8D:61:B9:A2 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.04 10:03:12 5: XiaomiFlowerSens (Blume1) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully Characteristic value/descriptor,b9 00 00 2b 00 00 00 34 22 03 02 3c 00 fb 34 9b
2018.01.04 10:03:12 4: XiaomiFlowerSens (Blume1) - ExecGatttool_Run: gatttool result Characteristic value was written successfully Characteristic value/descriptor,b9 00 00 2b 00 00 00 34 22 03 02 3c 00 fb 34 9b
2018.01.04 10:03:12 4: XiaomiFlowerSens (Blume1) - ExecGatttool_Done: gatttool return string: Blume1|C4:7C:8D:61:B9:A2|ok|read|0x35|{"gtResult":"b9 00 00 2b 00 00 00 34 22 03 02 3c 00 fb 34 9b "}
2018.01.04 10:03:12 5: XiaomiFlowerSens (Blume1) - ProcessingNotification
2018.01.04 10:03:12 4: XiaomiFlowerSens (Blume1) - ProcessingNotification: handle 0x35
2018.01.04 10:03:12 5: XiaomiFlowerSens (Blume1) - Handle0x35
2018.01.04 10:03:12 4: XiaomiFlowerSens (Blume1) - WriteReadings: Readings were written

2018.01.04 10:04:33 4: XiaomiFlowerSens (Blume8) - WriteSensData: call function ExecGatttool_Run
2018.01.04 10:04:33 4: XiaomiFlowerSens (Blume8) - stateRequestTimer: Call Request Timer ssh: connect to host pizero port 22: No route to host
2018.01.04 10:04:52 4: XiaomiFlowerSens (Blume8) - ExecGatttool_Done: gatttool return string: Blume8|C4:7C:8D:63:89:AA|error|write|0x33|no gatttool binary found. Please check if bluez-package is properly installed
2018.01.04 10:04:52 5: XiaomiFlowerSens (Blume8) - ExecGatttool_Done: JSON error while request: 'null' expected, at character offset 0 (before "no gatttool binary f...") at ./FHEM/74_XiaomiFlowerSens.pm line 494.
2018.01.04 10:04:52 5: XiaomiFlowerSens (Blume8) - ProcessingErrors
2018.01.04 10:04:52 4: XiaomiFlowerSens (Blume8) - WriteReadings: Readings were written

2018.01.04 10:09:19 4: XiaomiFlowerSens (Blume5) - WriteSensData: call function ExecGatttool_Run
2018.01.04 10:09:19 4: XiaomiFlowerSens (Blume5) - stateRequestTimer: Call Request Timer
2018.01.04 10:09:20 5: XiaomiFlowerSens (Blume5) - ExecGatttool_Run: call gatttool with command ssh flurry 'gatttool -i hci0 -b C4:7C:8D:63:4B:36 --char-write-req -a 0x33 -n A01F && gatttool -i hci0 -b C4:7C:8D:63:4B:36 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.04 10:09:42 4: XiaomiFlowerSens (Blume6) - WriteSensData: call function ExecGatttool_Run
2018.01.04 10:09:42 4: XiaomiFlowerSens (Blume6) - stateRequestTimer: Call Request Timer
2018.01.04 10:09:43 5: XiaomiFlowerSens (Blume6) - ExecGatttool_Run: call gatttool with command ssh flurry 'gatttool -i hci0 -b C4:7C:8D:63:5E:9F --char-write-req -a 0x33 -n A01F && gatttool -i hci0 -b C4:7C:8D:63:5E:9F --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.04 10:09:50 5: XiaomiFlowerSens (Blume6) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully Characteristic value/descriptor,c6 00 00 42 01 00 00 14 4c 00 02 3c 00 fb 34 9b
2018.01.04 10:09:50 4: XiaomiFlowerSens (Blume6) - ExecGatttool_Run: gatttool result Characteristic value was written successfully Characteristic value/descriptor,c6 00 00 42 01 00 00 14 4c 00 02 3c 00 fb 34 9b
2018.01.04 10:09:50 4: XiaomiFlowerSens (Blume6) - ExecGatttool_Done: gatttool return string: Blume6|C4:7C:8D:63:5E:9F|ok|read|0x35|{"gtResult":"c6 00 00 42 01 00 00 14 4c 00 02 3c 00 fb 34 9b "}
2018.01.04 10:09:50 5: XiaomiFlowerSens (Blume6) - ProcessingNotification
2018.01.04 10:09:50 4: XiaomiFlowerSens (Blume6) - ProcessingNotification: handle 0x35
2018.01.04 10:09:50 5: XiaomiFlowerSens (Blume6) - Handle0x35
2018.01.04 10:09:50 4: XiaomiFlowerSens (Blume6) - WriteReadings: Readings were written
2018.01.04 10:10:00 5: XiaomiFlowerSens (Blume5) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully Characteristic value/descriptor,b8 00 00 af 00 00 00 19 ac 00 02 3c 00 fb 34 9b
2018.01.04 10:10:00 4: XiaomiFlowerSens (Blume5) - ExecGatttool_Run: gatttool result Characteristic value was written successfully Characteristic value/descriptor,b8 00 00 af 00 00 00 19 ac 00 02 3c 00 fb 34 9b
2018.01.04 10:10:00 4: XiaomiFlowerSens (Blume5) - ExecGatttool_Done: gatttool return string: Blume5|C4:7C:8D:63:4B:36|ok|read|0x35|{"gtResult":"b8 00 00 af 00 00 00 19 ac 00 02 3c 00 fb 34 9b "}
2018.01.04 10:10:00 5: XiaomiFlowerSens (Blume5) - ProcessingNotification
2018.01.04 10:10:00 4: XiaomiFlowerSens (Blume5) - ProcessingNotification: handle 0x35
2018.01.04 10:10:00 5: XiaomiFlowerSens (Blume5) - Handle0x35
2018.01.04 10:10:01 4: XiaomiFlowerSens (Blume5) - WriteReadings: Readings were written

2018.01.04 10:14:12 4: XiaomiFlowerSens (Blume3) - WriteSensData: call function ExecGatttool_Run
2018.01.04 10:14:12 4: XiaomiFlowerSens (Blume3) - stateRequestTimer: Call Request Timer
2018.01.04 10:14:13 5: XiaomiFlowerSens (Blume3) - ExecGatttool_Run: call gatttool with command ssh flurry 'gatttool -i hci0 -b C4:7C:8D:63:49:16 --char-write-req -a 0x33 -n A01F && gatttool -i hci0 -b C4:7C:8D:63:49:16 --char-read -a 0x35 2>&1 /dev/null' and loop 0 connect error: Connection refused (111)
2018.01.04 10:14:53 5: XiaomiFlowerSens (Blume3) - ExecGatttool_Run: gatttool loop result
2018.01.04 10:14:53 1: PERL WARNING: Use of uninitialized value $gtResult[0] in string eq at ./FHEM/74_XiaomiFlowerSens.pm line 444.
2018.01.04 10:14:53 4: XiaomiFlowerSens (Blume3) - ExecGatttool_Run: gatttool result
2018.01.04 10:14:53 1: PERL WARNING: Use of uninitialized value $gtResult[0] in string ne at ./FHEM/74_XiaomiFlowerSens.pm line 465.
2018.01.04 10:14:53 4: XiaomiFlowerSens (Blume3) - ExecGatttool_Done: gatttool return string: Blume3|C4:7C:8D:63:49:16|error|read|0x35|{"gtResult":"no data response"}
2018.01.04 10:14:53 5: XiaomiFlowerSens (Blume3) - ProcessingErrors
2018.01.04 10:14:53 4: XiaomiFlowerSens (Blume3) - WriteReadings: Readings were written
2018.01.04 10:15:11 4: XiaomiFlowerSens (Blume2) - WriteSensData: call function ExecGatttool_Run
2018.01.04 10:15:11 4: XiaomiFlowerSens (Blume2) - stateRequestTimer: Call Request Timer
2018.01.04 10:15:12 5: XiaomiFlowerSens (Blume2) - ExecGatttool_Run: call gatttool with command ssh flurry 'gatttool -i hci0 -b C4:7C:8D:61:B4:D9 --char-write-req -a 0x33 -n A01F && gatttool -i hci0 -b C4:7C:8D:61:B4:D9 --char-read -a 0x35 2>&1 /dev/null' and loop 0 connect error: Transport endpoint is not connected (107)
2018.01.04 10:15:26 5: XiaomiFlowerSens (Blume2) - ExecGatttool_Run: gatttool loop result
2018.01.04 10:15:26 1: PERL WARNING: Use of uninitialized value $gtResult[0] in string eq at ./FHEM/74_XiaomiFlowerSens.pm line 444.
2018.01.04 10:15:26 4: XiaomiFlowerSens (Blume2) - ExecGatttool_Run: gatttool result
2018.01.04 10:15:26 1: PERL WARNING: Use of uninitialized value $gtResult[0] in string ne at ./FHEM/74_XiaomiFlowerSens.pm line 465.
2018.01.04 10:15:26 4: XiaomiFlowerSens (Blume2) - ExecGatttool_Done: gatttool return string: Blume2|C4:7C:8D:61:B4:D9|error|read|0x35|{"gtResult":"no data response"}
2018.01.04 10:15:26 5: XiaomiFlowerSens (Blume2) - ProcessingErrors
2018.01.04 10:15:26 4: XiaomiFlowerSens (Blume2) - WriteReadings: Readings were written
2018.01.04 10:17:03 4: XiaomiFlowerSens (Blume4) - WriteSensData: call function ExecGatttool_Run
2018.01.04 10:17:03 4: XiaomiFlowerSens (Blume4) - stateRequestTimer: Call Request Timer
2018.01.04 10:17:04 5: XiaomiFlowerSens (Blume4) - ExecGatttool_Run: call gatttool with command ssh flurry 'gatttool -i hci0 -b C4:7C:8D:63:7D:8F --char-write-req -a 0x33 -n A01F && gatttool -i hci0 -b C4:7C:8D:63:7D:8F --char-read -a 0x35 2>&1 /dev/null' and loop 0 connect error: Connection refused (111)
2018.01.04 10:17:45 5: XiaomiFlowerSens (Blume4) - ExecGatttool_Run: gatttool loop result
2018.01.04 10:17:45 1: PERL WARNING: Use of uninitialized value $gtResult[0] in string eq at ./FHEM/74_XiaomiFlowerSens.pm line 444.
2018.01.04 10:17:45 4: XiaomiFlowerSens (Blume4) - ExecGatttool_Run: gatttool result
2018.01.04 10:17:45 1: PERL WARNING: Use of uninitialized value $gtResult[0] in string ne at ./FHEM/74_XiaomiFlowerSens.pm line 465.
2018.01.04 10:17:45 4: XiaomiFlowerSens (Blume4) - ExecGatttool_Done: gatttool return string: Blume4|C4:7C:8D:63:7D:8F|error|read|0x35|{"gtResult":"no data response"}
2018.01.04 10:17:45 5: XiaomiFlowerSens (Blume4) - ProcessingErrors
2018.01.04 10:17:45 4: XiaomiFlowerSens (Blume4) - WriteReadings: Readings were written
2018.01.04 10:18:12 4: XiaomiFlowerSens (Blume7) - WriteSensData: call function ExecGatttool_Run
2018.01.04 10:18:12 4: XiaomiFlowerSens (Blume7) - stateRequestTimer: Call Request Timer
2018.01.04 10:18:13 5: XiaomiFlowerSens (Blume7) - ExecGatttool_Run: call gatttool with command ssh flurry 'gatttool -i hci0 -b C4:7C:8D:63:86:10 --char-write-req -a 0x33 -n A01F && gatttool -i hci0 -b C4:7C:8D:63:86:10 --char-read -a 0x35 2>&1 /dev/null' and loop 0 connect error: Transport endpoint is not connected (107)
2018.01.04 10:18:20 5: XiaomiFlowerSens (Blume7) - ExecGatttool_Run: gatttool loop result
2018.01.04 10:18:20 1: PERL WARNING: Use of uninitialized value $gtResult[0] in string eq at ./FHEM/74_XiaomiFlowerSens.pm line 444.
2018.01.04 10:18:20 4: XiaomiFlowerSens (Blume7) - ExecGatttool_Run: gatttool result
2018.01.04 10:18:20 1: PERL WARNING: Use of uninitialized value $gtResult[0] in string ne at ./FHEM/74_XiaomiFlowerSens.pm line 465.
2018.01.04 10:18:20 4: XiaomiFlowerSens (Blume7) - ExecGatttool_Done: gatttool return string: Blume7|C4:7C:8D:63:86:10|error|read|0x35|{"gtResult":"no data response"}
2018.01.04 10:18:20 5: XiaomiFlowerSens (Blume7) - ProcessingErrors
2018.01.04 10:18:20 4: XiaomiFlowerSens (Blume7) - WriteReadings: Readings were written
2018.01.04 10:19:24 4: XiaomiFlowerSens (Blume1) - WriteSensData: call function ExecGatttool_Run
2018.01.04 10:19:24 4: XiaomiFlowerSens (Blume1) - stateRequestTimer: Call Request Timer
2018.01.04 10:19:25 5: XiaomiFlowerSens (Blume1) - ExecGatttool_Run: call gatttool with command ssh flurry 'gatttool -i hci0 -b C4:7C:8D:61:B9:A2 --char-write-req -a 0x33 -n A01F && gatttool -i hci0 -b C4:7C:8D:61:B9:A2 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.04 10:19:33 5: XiaomiFlowerSens (Blume1) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully Characteristic value/descriptor,ba 00 00 87 00 00 00 33 20 03 02 3c 00 fb 34 9b
2018.01.04 10:19:33 4: XiaomiFlowerSens (Blume1) - ExecGatttool_Run: gatttool result Characteristic value was written successfully Characteristic value/descriptor,ba 00 00 87 00 00 00 33 20 03 02 3c 00 fb 34 9b
2018.01.04 10:19:33 4: XiaomiFlowerSens (Blume1) - ExecGatttool_Done: gatttool return string: Blume1|C4:7C:8D:61:B9:A2|ok|read|0x35|{"gtResult":"ba 00 00 87 00 00 00 33 20 03 02 3c 00 fb 34 9b "}
2018.01.04 10:19:33 5: XiaomiFlowerSens (Blume1) - ProcessingNotification
2018.01.04 10:19:33 4: XiaomiFlowerSens (Blume1) - ProcessingNotification: handle 0x35
2018.01.04 10:19:33 5: XiaomiFlowerSens (Blume1) - Handle0x35
2018.01.04 10:19:33 4: XiaomiFlowerSens (Blume1) - WriteReadings: Readings were written



Da GitHub gerade hängt würde ich Dich bitten diese Version einmal zu testen.
ACHTUNG!!! Da ich aktuell zu Hause mich nicht einwählen kann konnte ich sie nicht testen.
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

marcel151

Zitat von: CoolTux am 02 Januar 2018, 11:40:11
Ich habe soeben eine neue Version ins SVN geladen. Durch diese Version sollte sich das "auslesen Problem" über SSH erledigt haben. Bitte einmal testen.

Hallo,

nun auch endlich mal eine Rückmeldung von mir, hatte nach den Feiertagen wenig Zeit. Mit der Version 1.4.0 geht es! Kein "charWrite faild" mehr, vielen Dank CoolTux! Was hast du geändert wenn ich fragen darf?

VG
Marcel

CoolTux

Mit neueren Fimwareversionen wurde anscheinend die Zeit gekürzt welche zwischen einen write und einem read liegen darf. per ssh haben die Befehle zu lange gedauert. Ich habe daraus nun eine Befehlskette gemacht.
Nun ist zwar wieder meine Flexibilität flöten, aber was solls.  ;D



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