Zitat
wollte hier nur mal kurz einen weiteren Bluetooth 4.1 BLE Pflanzensensor (ca. 12 Euro) vorstellen, den ich ans fhem (Raspberry) angebunden habe. Bisher läuft alles einwandfrei. Mir gefällt besonders, dass man sich nirgends anmelden oder registrieren muss, um die Werte auslesen zu können.
http://xiaomi-mi.com/mi-smart-home/xiaomi-huahuacacao-flower-care-smart-monitor/
Der Sensor liefert folgende Werte:
- Temperatur
- Feuchtigkeit
- Licht
- Dünger
2018-01-15 18:41:34 XiaomiBTLESens xbtle.temp.eg.fenster write devicename data
2018-01-15 18:41:41 XiaomiBTLESens xbtle.temp.eg.fenster devicename: x�ھɇ�
2018-01-15 18:41:41 XiaomiBTLESens xbtle.temp.eg.fenster active
...
2018-01-15 18:41:56 XiaomiBTLESens xbtle.temp.eg.fenster fetch devicename data
2018-01-15 18:42:02 XiaomiBTLESens xbtle.temp.eg.fenster devicename: MI_HT_V2
2018-01-15 18:42:02 XiaomiBTLESens xbtle.temp.eg.fenster active
2018-01-15 18:42:15 XiaomiBTLESens xbtle.temp.eg.fenster write devicename data
...
2018-01-15 18:42:20 XiaomiBTLESens xbtle.temp.eg.fenster devicename: x�ھɇ�
2018-01-15 18:42:20 XiaomiBTLESens xbtle.temp.eg.fenster active
2018-01-15 18:42:22 XiaomiBTLESens xbtle.temp.eg.fenster fetch devicename data
2018-01-15 18:42:22 XiaomiBTLESens xbtle.temp.eg.fenster devicename: MI_TEST1
2018-01-15 18:42:22 XiaomiBTLESens xbtle.temp.eg.fenster active
2018.01.15 18:40:38 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - CallDeviceName: call function ExecGatttool_Run
2018.01.15 18:40:38 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b <MAC> --char-read -a 0x3 2>&1 /dev/null and loop 0
2018.01.15 18:40:44 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,4d 4a 5f 48 54 5f 56 31
2018.01.15 18:40:44 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,4d 4a 5f 48 54 5f 56 31
2018.01.15 18:40:44 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.fenster|<MAC>|ok|read|0x3|{"gtResult":"4d 4a 5f 48 54 5f 56 31 "}
2018.01.15 18:40:44 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification
2018.01.15 18:40:44 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification: handle 0x3
2018.01.15 18:40:44 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - Thermo/Hygro Sens Handle0x24
2018.01.15 18:40:44 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - WriteReadings: Readings were written
2018.01.15 18:41:00 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - WriteDeviceName: call function ExecGatttool_Run
2018.01.15 18:41:00 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b <MAC> --char-write-req -a 0x3 -n 48545f54455354 2>&1 /dev/null and loop 0
2018.01.15 18:41:11 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.15 18:41:11 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.15 18:41:11 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.fenster|4C:65:A8:D0:42:63|ok|write|0x3|{"gtResult":"no data response"}
2018.01.15 18:41:11 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification
2018.01.15 18:41:11 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification: handle 0x3
2018.01.15 18:41:11 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - Thermo/Hygro Sens Handle0x24
2018.01.15 18:41:11 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - WriteReadings: Readings were written
2018.01.15 18:41:34 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - WriteDeviceName: call function ExecGatttool_Run
2018.01.15 18:41:34 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b <MAC> --char-write-req -a 0x3 -n 4d495f48545f5632 2>&1 /dev/null and loop 0
2018.01.15 18:41:41 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.15 18:41:41 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.15 18:41:41 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.fenster|4C:65:A8:D0:42:63|ok|write|0x3|{"gtResult":"no data response"}
2018.01.15 18:41:41 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification
2018.01.15 18:41:41 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification: handle 0x3
2018.01.15 18:41:41 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - Thermo/Hygro Sens Handle0x24
2018.01.15 18:41:41 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - WriteReadings: Readings were written
2018.01.15 18:41:56 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - CallDeviceName: call function ExecGatttool_Run
2018.01.15 18:41:56 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b <MAC> --char-read -a 0x3 2>&1 /dev/null and loop 0
2018.01.15 18:42:02 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,4d 49 5f 48 54 5f 56 32
2018.01.15 18:42:02 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,4d 49 5f 48 54 5f 56 32
2018.01.15 18:42:02 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.fenster|<MAC>|ok|read|0x3|{"gtResult":"4d 49 5f 48 54 5f 56 32 "}
2018.01.15 18:42:02 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification
2018.01.15 18:42:02 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification: handle 0x3
2018.01.15 18:42:02 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - Thermo/Hygro Sens Handle0x24
2018.01.15 18:42:02 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - WriteReadings: Readings were written
2018.01.15 18:42:15 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - WriteDeviceName: call function ExecGatttool_Run
2018.01.15 18:42:15 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b <MAC> --char-write-req -a 0x3 -n 4d495f5445535431 2>&1 /dev/null and loop 0
2018.01.15 18:42:20 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.15 18:42:20 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.15 18:42:20 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.fenster|<MAC>|ok|write|0x3|{"gtResult":"no data response"}
2018.01.15 18:42:20 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification
2018.01.15 18:42:20 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification: handle 0x3
2018.01.15 18:42:20 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - Thermo/Hygro Sens Handle0x24
2018.01.15 18:42:20 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - WriteReadings: Readings were written
2018.01.15 18:42:22 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - CallDeviceName: call function ExecGatttool_Run
2018.01.15 18:42:22 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b <MAC> --char-read -a 0x3 2>&1 /dev/null and loop 0
2018.01.15 18:42:22 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,4d 49 5f 54 45 53 54 31
2018.01.15 18:42:22 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,4d 49 5f 54 45 53 54 31
2018.01.15 18:42:22 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.fenster|<MAC>|ok|read|0x3|{"gtResult":"4d 49 5f 54 45 53 54 31 "}
2018.01.15 18:42:22 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification
2018.01.15 18:42:22 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification: handle 0x3
2018.01.15 18:42:22 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - Thermo/Hygro Sens Handle0x24
2018.01.15 18:42:22 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - WriteReadings: Readings were written
Zitat von: CoolTux am 11 Januar 2018, 15:42:45
Das Modul unterstützt seit neustem nun auch den Xiamomi Themometer/Hygrometer mit Display
Zitat von: distel am 15 Januar 2018, 18:51:12
Hallo,
ich hab die Funktion für das Setzen/Lesen des Devicename getestet:
Vorneweg: Es funktioniert.
Auslesen haut einwandfrei hin.
Schreiben eigentlich auch (zumindest landet im Device der richtige String).
Allerdings wird nach dem schreiben ein kryptischer Wert im Device angezeigt. Das wird auch so im Eventlog dargestellt. Vermutung: String wird von dir konvertiert (ASCII=>HEX) und dann der konvertierte String ausgegeben bzw. in das Device geschrieben.Code Auswählen2018-01-15 18:41:34 XiaomiBTLESens xbtle.temp.eg.fenster write devicename data
2018-01-15 18:41:41 XiaomiBTLESens xbtle.temp.eg.fenster devicename: x�ھɇ�
2018-01-15 18:41:41 XiaomiBTLESens xbtle.temp.eg.fenster active
...
2018-01-15 18:41:56 XiaomiBTLESens xbtle.temp.eg.fenster fetch devicename data
2018-01-15 18:42:02 XiaomiBTLESens xbtle.temp.eg.fenster devicename: MI_HT_V2
2018-01-15 18:42:02 XiaomiBTLESens xbtle.temp.eg.fenster active
2018-01-15 18:42:15 XiaomiBTLESens xbtle.temp.eg.fenster write devicename data
...
2018-01-15 18:42:20 XiaomiBTLESens xbtle.temp.eg.fenster devicename: x�ھɇ�
2018-01-15 18:42:20 XiaomiBTLESens xbtle.temp.eg.fenster active
2018-01-15 18:42:22 XiaomiBTLESens xbtle.temp.eg.fenster fetch devicename data
2018-01-15 18:42:22 XiaomiBTLESens xbtle.temp.eg.fenster devicename: MI_TEST1
2018-01-15 18:42:22 XiaomiBTLESens xbtle.temp.eg.fenster active
LogCode Auswählen2018.01.15 18:40:38 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - CallDeviceName: call function ExecGatttool_Run
2018.01.15 18:40:38 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b <MAC> --char-read -a 0x3 2>&1 /dev/null and loop 0
2018.01.15 18:40:44 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,4d 4a 5f 48 54 5f 56 31
2018.01.15 18:40:44 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,4d 4a 5f 48 54 5f 56 31
2018.01.15 18:40:44 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.fenster|<MAC>|ok|read|0x3|{"gtResult":"4d 4a 5f 48 54 5f 56 31 "}
2018.01.15 18:40:44 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification
2018.01.15 18:40:44 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification: handle 0x3
2018.01.15 18:40:44 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - Thermo/Hygro Sens Handle0x24
2018.01.15 18:40:44 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - WriteReadings: Readings were written
2018.01.15 18:41:00 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - WriteDeviceName: call function ExecGatttool_Run
2018.01.15 18:41:00 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b <MAC> --char-write-req -a 0x3 -n 48545f54455354 2>&1 /dev/null and loop 0
2018.01.15 18:41:11 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.15 18:41:11 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.15 18:41:11 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.fenster|4C:65:A8:D0:42:63|ok|write|0x3|{"gtResult":"no data response"}
2018.01.15 18:41:11 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification
2018.01.15 18:41:11 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification: handle 0x3
2018.01.15 18:41:11 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - Thermo/Hygro Sens Handle0x24
2018.01.15 18:41:11 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - WriteReadings: Readings were written
2018.01.15 18:41:34 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - WriteDeviceName: call function ExecGatttool_Run
2018.01.15 18:41:34 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b <MAC> --char-write-req -a 0x3 -n 4d495f48545f5632 2>&1 /dev/null and loop 0
2018.01.15 18:41:41 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.15 18:41:41 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.15 18:41:41 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.fenster|4C:65:A8:D0:42:63|ok|write|0x3|{"gtResult":"no data response"}
2018.01.15 18:41:41 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification
2018.01.15 18:41:41 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification: handle 0x3
2018.01.15 18:41:41 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - Thermo/Hygro Sens Handle0x24
2018.01.15 18:41:41 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - WriteReadings: Readings were written
2018.01.15 18:41:56 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - CallDeviceName: call function ExecGatttool_Run
2018.01.15 18:41:56 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b <MAC> --char-read -a 0x3 2>&1 /dev/null and loop 0
2018.01.15 18:42:02 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,4d 49 5f 48 54 5f 56 32
2018.01.15 18:42:02 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,4d 49 5f 48 54 5f 56 32
2018.01.15 18:42:02 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.fenster|<MAC>|ok|read|0x3|{"gtResult":"4d 49 5f 48 54 5f 56 32 "}
2018.01.15 18:42:02 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification
2018.01.15 18:42:02 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification: handle 0x3
2018.01.15 18:42:02 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - Thermo/Hygro Sens Handle0x24
2018.01.15 18:42:02 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - WriteReadings: Readings were written
2018.01.15 18:42:15 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - WriteDeviceName: call function ExecGatttool_Run
2018.01.15 18:42:15 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b <MAC> --char-write-req -a 0x3 -n 4d495f5445535431 2>&1 /dev/null and loop 0
2018.01.15 18:42:20 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.15 18:42:20 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.15 18:42:20 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.fenster|<MAC>|ok|write|0x3|{"gtResult":"no data response"}
2018.01.15 18:42:20 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification
2018.01.15 18:42:20 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification: handle 0x3
2018.01.15 18:42:20 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - Thermo/Hygro Sens Handle0x24
2018.01.15 18:42:20 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - WriteReadings: Readings were written
2018.01.15 18:42:22 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - CallDeviceName: call function ExecGatttool_Run
2018.01.15 18:42:22 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b <MAC> --char-read -a 0x3 2>&1 /dev/null and loop 0
2018.01.15 18:42:22 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,4d 49 5f 54 45 53 54 31
2018.01.15 18:42:22 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,4d 49 5f 54 45 53 54 31
2018.01.15 18:42:22 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.fenster|<MAC>|ok|read|0x3|{"gtResult":"4d 49 5f 54 45 53 54 31 "}
2018.01.15 18:42:22 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification
2018.01.15 18:42:22 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification: handle 0x3
2018.01.15 18:42:22 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - Thermo/Hygro Sens Handle0x24
2018.01.15 18:42:22 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - WriteReadings: Readings were written
2018.01.16 13:33:35 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - Run CreateParamGatttool with mod: read
2018.01.16 13:33:35 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - Read XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.fenster|<MAC>|read|0x3
2018.01.16 13:33:35 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b <MAC> --char-read -a 0x3 2>&1 /dev/null and loop 0
2018.01.16 13:33:41 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,4d 4a 5f 48 54 5f 56 31
2018.01.16 13:33:41 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,4d 4a 5f 48 54 5f 56 31
2018.01.16 13:33:41 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.fenster|<MAC>|ok|read|0x3|{"gtResult":"4d 4a 5f 48 54 5f 56 31 "}
2018.01.16 13:33:41 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification
2018.01.16 13:33:41 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification: handle 0x3
2018.01.16 13:33:41 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - Thermo/Hygro Sens Handle0x3
2018.01.16 13:33:41 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - WriteReadings: Readings were written
2018.01.16 13:35:51 1: PERL WARNING: Use of uninitialized value $mod in concatenation (.) or string at ./FHEM/74_XiaomiBTLESens.pm line 410.
2018.01.16 13:35:51 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - Run CreateParamGatttool with mod:
2018.01.16 13:35:51 1: PERL WARNING: Use of uninitialized value $mod in string eq at ./FHEM/74_XiaomiBTLESens.pm line 412.
2018.01.16 13:35:51 1: PERL WARNING: Use of uninitialized value $mod in string eq at ./FHEM/74_XiaomiBTLESens.pm line 419.
2018.01.16 13:38:06 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - Run CreateParamGatttool with mod: read
2018.01.16 13:38:06 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - Read XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.fenster|<MAC>|read|0x24
2018.01.16 13:38:06 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b <MAC> --char-read -a 0x24 2>&1 /dev/null and loop 0
2018.01.16 13:38:10 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,30 30 2e 30 30 2e 36 36
2018.01.16 13:38:10 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,30 30 2e 30 30 2e 36 36
2018.01.16 13:38:10 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.fenster|<MAC>|ok|read|0x24|{"gtResult":"30 30 2e 30 30 2e 36 36 "}
2018.01.16 13:38:10 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification
2018.01.16 13:38:10 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification: handle 0x24
2018.01.16 13:38:10 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - Thermo/Hygro Sens Handle0x24
2018.01.16 13:38:10 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - WriteReadings: Readings were written
2018.01.16 13:39:32 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - Run CreateParamGatttool with mod: write
2018.01.16 13:39:32 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.fenster|<MAC>|write|0x10|0100
2018.01.16 13:39:32 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: call gatttool with command timeout 15 gatttool -i hci0 -b <MAC> --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.01.16 13:39:47 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 31 35 2e 33 20 48 3d 35 38 2e 37 00
Notification handle = 0x000e value,54 3d 31 35 2e 33 20 48 3d 35 38 2e 36 00
Notification handle = 0x000e value,54 3d 31 35 2e 33 20 48 3d 35 38 2e 35 00
Notification handle = 0x000e value,54 3d 31 35 2e 32 20 48 3d 35 38 2e 36 00
Notification handle = 0x000e value,54 3d 31 35 2e 33 20 48 3d 35 38 2e 37 00
Notification handle = 0x000e value,54 3d 31 35 2e 33 20 48 3d 35 38 2e 38 00
Notification handle = 0x000e value,54 3d 31 35 2e 33 20 48 3d 35 38 2e 36 00
2018.01.16 13:39:47 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 31 35 2e 33 20 48 3d 35 38 2e 37 00
Notification handle = 0x000e value,54 3d 31 35 2e 33 20 48 3d 35 38 2e 36 00
Notification handle = 0x000e value,54 3d 31 35 2e 33 20 48 3d 35 38 2e 35 00
Notification handle = 0x000e value,54 3d 31 35 2e 32 20 48 3d 35 38 2e 36 00
Notification handle = 0x000e value,54 3d 31 35 2e 33 20 48 3d 35 38 2e 37 00
Notification handle = 0x000e value,54 3d 31 35 2e 33 20 48 3d 35 38 2e 38 00
Notification handle = 0x000e value,54 3d 31 35 2e 33 20 48 3d 35 38 2e 36 00
2018.01.16 13:39:47 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.fenster|<MAC>|ok|write|0x10|{"gtResult":"54 3d 31 35 2e 33 20 48 3d 35 38 2e 37 00 \nNotification handle = 0x000e value"}
2018.01.16 13:39:47 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification
2018.01.16 13:39:47 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification: handle 0x10
2018.01.16 13:39:47 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - Thermo/Hygro Sens Handle0x10
2018.01.16 13:39:47 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - WriteReadings: Readings were written
2018.01.16 14:10:10 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - Run CreateParamGatttool with mod: write
2018.01.16 14:10:10 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.fenster|<MAC>|write|0x3|5445535454455354
2018.01.16 14:10:10 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b <MAC> --char-write-req -a 0x3 -n 5445535454455354 2>&1 /dev/null and loop 0
2018.01.16 14:10:13 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.16 14:10:13 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.16 14:10:13 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.fenster|<MAC>|ok|write|0x3|{"gtResult":"no data response"}
2018.01.16 14:10:13 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification
2018.01.16 14:10:13 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification: handle 0x3
2018.01.16 14:11:08 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - Run CreateParamGatttool with mod: read
2018.01.16 14:11:08 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - Read XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.fenster|<MAC>|read|0x3
2018.01.16 14:11:08 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b <MAC> --char-read -a 0x3 2>&1 /dev/null and loop 0
2018.01.16 14:11:12 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,54 45 53 54 54 45 53 54
2018.01.16 14:11:12 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,54 45 53 54 54 45 53 54
2018.01.16 14:11:12 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.fenster|<MAC>|ok|read|0x3|{"gtResult":"54 45 53 54 54 45 53 54 "}
2018.01.16 14:11:12 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification
2018.01.16 14:11:12 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - ProcessingNotification: handle 0x3
2018.01.16 14:11:12 5: XiaomiBTLESens (xbtle.temp.eg.fenster) - Thermo/Hygro Sens Handle0x3
2018.01.16 14:11:12 4: XiaomiBTLESens (xbtle.temp.eg.fenster) - WriteReadings: Readings were written
define <Device> XiaomiBTLESens <MAC>
2018.01.17 16:01:04 4: XiaomiBTLESens (Pflanze1) - Run CreateParamGatttool with mod: read
2018.01.17 16:01:04 4: XiaomiBTLESens (Pflanze1) - Read XiaomiBTLESens_ExecGatttool_Run Pflanze1|C4:7C:8D:61:93:39|read|0x38
2018.01.17 16:01:04 4: XiaomiBTLESens (Pflanze1) - ExecGatttool_Done: gatttool return string: Pflanze1|C4:7C:8D:61:93:39|error|read|0x38|{"gtResult":"no gatttool binary found. Please check if bluez-package is properly installed"}
2018.01.17 16:01:04 5: XiaomiBTLESens (Pflanze1) - ProcessingErrors
2018.01.17 16:01:04 4: XiaomiBTLESens (Pflanze1) - WriteReadings: Readings were written
Zitat von: yrwyddfa am 17 Januar 2018, 22:33:18
Doch, bei mir läuft es einwandfrei, hat sich auch ohne Probleme erneut einbinden lassen.
@ Oli82: Greifst du via ssh auf die Sensoren zu? Also sind sie an einem entfernten pi installiert?
Zitat von: yrwyddfa am 17 Januar 2018, 22:33:18
@ Oli82: Greifst du via ssh auf die Sensoren zu? Also sind sie an einem entfernten pi installiert?
Zitat von: CoolTux am 16 Januar 2018, 14:16:39
Gut dann fehlt noch ein automatischer devicename read nach dem write.
Zitat2018.01.20 09:24:23 1: PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 680.
2018.01.20 09:24:23 3: eval: {XiaomiBTLESens_ExecGatttool_Done('Sens2|4C:65:A8:D1:13:CD|ok|read|0x18|{"gtResult":"64 "}')}
2018.01.20 09:24:23 1: PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 681.
2018.01.20 09:24:23 3: eval: {XiaomiBTLESens_ExecGatttool_Done('Sens2|4C:65:A8:D1:13:CD|ok|read|0x18|{"gtResult":"64 "}')}
ZitatInternals:
BTMAC 4C:65:A8:D1:13:CD
CFGFN
DEF 4C:65:A8:D1:13:CD
INTERVAL 300
NAME Sens2
NOTIFYDEV global,Sens2
NR 95
NTFY_ORDER 50-Sens2
STATE active
TYPE XiaomiBTLESens
VERSION 2.0.4
loglevel 4
READINGS:
2018-01-20 09:24:23 battery ok
2018-01-20 09:24:23 batteryLevel 100
2018-01-20 09:21:18 firmware 00.00.66
2018-01-20 09:42:11 humidity 34.4
2018-01-20 09:28:44 lastGattError no data response
2018-01-20 09:42:11 state active
2018-01-20 09:42:11 temperature 20.6
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1516436663.25082
updateTimestampCallBattery 2018-01-20 09:24:23
Attributes:
hciDevice hci1
model thermoHygroSens
room Sensoren
Zitat von: stoxx am 20 Januar 2018, 09:51:28
Habe heute meinen Hygrometer bekommen und gleich mal eingebunden.
Im Log erhalte ich sporadisch die Meldung:
Hier ein List vom Device:
vg stoxx
Zitat2018.01.20 11:01:58 3: eval: {XiaomiBTLESens_ExecGatttool_Done('Sens2|4C:65:A8:D1:13:CD|ok|write|0x10|{"gtResult":"no data response"}')}
2018.01.20 11:01:58 1: PERL WARNING: Use of uninitialized value in pack at ./FHEM/74_XiaomiBTLESens.pm line 701.
2018.01.20 11:01:58 3: eval: {XiaomiBTLESens_ExecGatttool_Done('Sens2|4C:65:A8:D1:13:CD|ok|write|0x10|{"gtResult":"no data response"}')}
Zitat von: oli82 am 18 Januar 2018, 09:08:08
Wie CoolTux bereits geschrieben hat, frage ich die Sensoren über einen Pi per SSH ab.
Das mache ich deshalb, da der Pi zu einem näher an den Sensoren ist und zum anderen läuft bei mir auf dem Fhem Server presenced und das beißt sich mit dem gattool.
Zitat von: yrwyddfa am 22 Januar 2018, 06:39:39
Spannend! Behalte ich mir mal im Hinterkopf, Danke für die Anregung!
Nach einigen Tagen kommen bei mir bis auf sporadische Auslesefehler keinerlei Fehler zu Stande. Ne blöde Frage aber habe ich: wenn ich ein get <device> firmware mache tut sich bei mir nichts. Wird die in das reading VERSION geschrieben oder bezieht sich das auf die Version des Moduls?
Ansonsten bau ich jetzt mal den zweiten wieder in Fhem ein und schau irgendwann auch noch mal, dass ich den ssh-Zugriff nachbau - kann aber dauern.
2018.01.24 19:25:31 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: read
2018.01.24 19:25:31 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Read XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|<MAC>|read|0x18
2018.01.24 19:25:31 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b <MAC> --char-read -a 0x18 2>&1 /dev/null and loop 0
2018.01.24 19:26:11 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)
2018.01.24 19:26:11 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b <MAC> --char-read -a 0x18 2>&1 /dev/null and loop 1
2018.01.24 19:26:31 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 48
2018.01.24 19:26:31 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.24 19:26:31 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
2018.01.24 20:41:40 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.24 20:41:40 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|<MAC>|write|0x10|0100
2018.01.24 20:41:40 4: XiaomiBTLESens (xbtle.temp.eg.flur) - stateRequestTimer: Call Request Timer
2018.01.24 20:41:41 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command timeout 15 ssh fhem@radiohub-1.home 'gatttool -i hci0 -b <MAC> --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null' and loop 0
2018.01.24 20:41:52 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.24 20:41:56 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 32 2e 32 00
...
Notification handle = 0x000e value,54 3d 31 39 2e 34 20 48 3d 35 33 2e 37 00
2018.01.24 20:41:56 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 32 2e 32 00
...
Notification handle = 0x000e value,54 3d 31 39 2e 34 20 48 3d 35 33 2e 37 00
2018.01.24 20:41:56 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.01.24 20:41:58 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: another gatttool process is running. waiting...
...
2018.01.24 20:42:38 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.01.24 20:42:40 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.01.24 20:42:40 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 579
2018.01.24 20:42:40 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.24 20:42:40 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
4196 ? Ss 0:00 bash -c gatttool -i hci0 -b <MAC> --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev
4197 ? S 0:00 \_ gatttool -i hci0 -b <MAC> --char-write-req -a 0x10 -n 0100 --listen /dev/null
Zitat von: distel am 24 Januar 2018, 20:51:04
Ich nochmal... hab jetzt nen RPi2 mit BT-Stick als "radiohub" (soll noch mehr Sender/Empfänger bekommen) eingerichtet. Versuche also per ssh abzufragen.
Aus der Konsole per ssh klappt es (also Zertifikate korrekt eingerichtet). Ich bekomme auch sinnige Antworten vom Thermometer.
Für die einfachen Operationen (nur read) klappt es auch in fhem: get devicename bspw. funktioniert.
Bei komplexeren Operationen (z.B. set devicename = write + read) klappt das write, nicht aber das read - timeout. ein nachträgliches get devicename klappt dann aber und liefert den neuen Wert.
Die Abfrage der Sensorwerte klappt allerdings nicht. Obwohl es eigentlich gut aussieht:Code Auswählen2018.01.24 20:41:40 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.24 20:41:40 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|<MAC>|write|0x10|0100
2018.01.24 20:41:40 4: XiaomiBTLESens (xbtle.temp.eg.flur) - stateRequestTimer: Call Request Timer
2018.01.24 20:41:41 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command timeout 15 ssh fhem@radiohub-1.home 'gatttool -i hci0 -b <MAC> --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null' and loop 0
2018.01.24 20:41:52 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.24 20:41:56 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 32 2e 32 00
...
Notification handle = 0x000e value,54 3d 31 39 2e 34 20 48 3d 35 33 2e 37 00
2018.01.24 20:41:56 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 32 2e 32 00
...
Notification handle = 0x000e value,54 3d 31 39 2e 34 20 48 3d 35 33 2e 37 00
2018.01.24 20:41:56 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.01.24 20:41:58 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: another gatttool process is running. waiting...
...
2018.01.24 20:42:38 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.01.24 20:42:40 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.01.24 20:42:40 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 579
2018.01.24 20:42:40 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.24 20:42:40 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
1) der Befehl ssh fhem@radiohub-1.home 'gatttool -i hci0 -b <MAC> --char-write-req -a 0x10 -n 0100 --listen' kommt auch von der Console aus nicht zu einem definierten Ende, sondern läuft weiter
2) Der Aufruf aus fhem hinterlässt einen Zombie Prozess vom gatttool. Alle kommenden sind also aufgrund des bereits laufenden Prozesses zum scheitern verurteilt.
ps axf auf radiohub-1:Code Auswählen4196 ? Ss 0:00 bash -c gatttool -i hci0 -b <MAC> --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev
4197 ? S 0:00 \_ gatttool -i hci0 -b <MAC> --char-write-req -a 0x10 -n 0100 --listen /dev/null
Sachdienliche Hinweise bitte gern an mich :-)
Zitat von: frank_41 am 25 Januar 2018, 21:55:47
moin,
ich habe jetzt auf das neue Modul umgestellt. Irgendwie gibt es jetzt mehr timouts als vorher:
2018.01.25 16:16:03 4: XiaomiBTLESens (zamioculcas) - Run CreateParamGatttool with mod: read
2018.01.25 16:16:04 4: XiaomiBTLESens (zamioculcas) - Read XiaomiBTLESens_ExecGatttool_Run zamioculcas|C4:7C:8D:65:C0:8C|read|0x38
2018.01.25 16:16:04 4: XiaomiBTLESens (zamioculcas) - stateRequestTimer: Call Request Timer
2018.01.25 16:16:04 5: XiaomiBTLESens (zamioculcas) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b C4:7C:8D:65:C0:8C --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.01.25 16:16:27 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 4093
2018.01.25 16:16:44 5: XiaomiBTLESens (zamioculcas) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)
2018.01.25 16:16:44 5: XiaomiBTLESens (zamioculcas) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b C4:7C:8D:65:C0:8C --char-read -a 0x38 2>&1 /dev/null and loop 1
2018.01.25 16:17:04 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 4119
2018.01.25 16:17:04 4: XiaomiBTLESens (zamioculcas) - WriteReadings: Readings were written
2018.01.25 16:17:04 4: XiaomiBTLESens (zamioculcas) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
Ist irgendwas am Timing geändert worden ?
Gruss
Frank
2018.01.25 16:16:44 5: XiaomiBTLESens (zamioculcas) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b C4:7C:8D:65:C0:8C --char-read -a 0x38 2>&1 /dev/null and loop 1
2018.01.25 16:17:04 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 4119
Zitat von: CoolTux am 25 Januar 2018, 09:19:29
Ich habe auf GitHub im Devel branch mal eine debug Version für Dich hingelegt. Bitte diese einmal testen und schauen ob es damit besser geht.
2018.01.26 19:24:09 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.26 19:24:09 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|<MAC>|write|0x10|0100
2018.01.26 19:24:10 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command timeout 5 ssh fhem@radiohub-1.home 'gatttool -i hci0 -b <MAC> --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null' and loop 0
2018.01.26 19:24:14 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result connect error,Transport endpoint is not connected (107)
2018.01.26 19:24:14 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command timeout 5 ssh fhem@radiohub-1.home 'gatttool -i hci0 -b <MAC> --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null' and loop 1
2018.01.26 19:24:19 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result
2018.01.26 19:24:19 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command timeout 5 ssh fhem@radiohub-1.home 'gatttool -i hci0 -b <MAC> --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null' and loop 2
2018.01.26 19:24:20 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result connect,Device or resource busy (16)
2018.01.26 19:24:20 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result connect,Device or resource busy (16)
2018.01.26 19:24:20 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.01.26 19:24:22 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.01.26 19:24:23 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b <MAC> --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.26 19:24:24 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.26 19:24:24 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.26 19:24:24 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|<MAC>|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.26 19:24:24 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.26 19:24:24 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
lastGattError
The BlockingCall Process terminated unexpectedly. Timedout
2018.01.26 19:21:06 4: XiaomiBTLESens (WZ_Pflanze1) - Run CreateParamGatttool with mod: read
2018.01.26 19:21:06 4: XiaomiBTLESens (WZ_Pflanze1) - Read XiaomiBTLESens_ExecGatttool_Run WZ_Pflanze1|C4:7C:8D:63:6D:E9|read|0x38
2018.01.26 19:21:34 5: XiaomiBTLESens (WZ_Pflanze1) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)
2018.01.26 19:21:34 5: XiaomiBTLESens (WZ_Pflanze1) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b C4:7C:8D:63:6D:E9 --char-read -a 0x38 2>&1 /dev/null and loop 1
2018.01.26 19:21:53 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 3521
2018.01.26 19:21:54 4: XiaomiBTLESens (WZ_Pflanze1) - WriteReadings: Readings were written
2018.01.26 19:21:54 4: XiaomiBTLESens (WZ_Pflanze1) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
2018.01.26 19:24:50 4: XiaomiBTLESens (WZ_Pflanze1) - Run CreateParamGatttool with mod: read
2018.01.26 19:24:51 4: XiaomiBTLESens (WZ_Pflanze1) - Read XiaomiBTLESens_ExecGatttool_Run WZ_Pflanze1|C4:7C:8D:63:6D:E9|read|0x38
2018.01.26 19:24:51 4: XiaomiBTLESens (WZ_Pflanze1) - stateRequestTimer: Call Request Timer
2018.01.26 19:24:51 5: XiaomiBTLESens (WZ_Pflanze1) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b C4:7C:8D:63:6D:E9 --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.01.26 19:25:31 5: XiaomiBTLESens (WZ_Pflanze1) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)
2018.01.26 19:25:31 5: XiaomiBTLESens (WZ_Pflanze1) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b C4:7C:8D:63:6D:E9 --char-read -a 0x38 2>&1 /dev/null and loop 1
2018.01.26 19:25:50 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 3798
2018.01.26 19:25:51 4: XiaomiBTLESens (WZ_Pflanze1) - WriteReadings: Readings were written
2018.01.26 19:25:51 4: XiaomiBTLESens (WZ_Pflanze1) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
2018.01.26 19:26:29 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 3921
2018.01.26 19:27:13 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 3965
Zitat von: trinitywhm am 26 Januar 2018, 19:42:17Das müssten aber zwei verschiedene Paar Schuhe sein, da Du den lokalen Bluetooth-Stack abfragst, ich aber auf einem Remote-System via ssh.
Ich habe hier auch vermehrt Fehler nach der Umstellung. Im Device das Reading
2018.01.26 19:54:17 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: read
2018.01.26 19:54:17 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Read XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|<MAC>|read|0x3
2018.01.26 19:54:18 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b <MAC> --char-read -a 0x3 2>&1 /dev/null' and loop 0
2018.01.26 19:54:24 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,45 47 2e 54 65 73 74
2018.01.26 19:54:24 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,45 47 2e 54 65 73 74
2018.01.26 19:54:24 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|<MAC>|ok|read|0x3|{"gtResult":"45 47 2e 54 65 73 74 "}
2018.01.26 19:54:24 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.26 19:54:24 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification: handle 0x3
2018.01.26 19:54:24 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Thermo/Hygro Sens Handle0x3
2018.01.26 19:54:24 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.26 19:54:55 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: read
2018.01.26 19:54:55 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Read XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|<MAC>|read|0x24
2018.01.26 19:54:56 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b <MAC> --char-read -a 0x24 2>&1 /dev/null' and loop 0
2018.01.26 19:55:03 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,30 30 2e 30 30 2e 36 36
2018.01.26 19:55:03 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,30 30 2e 30 30 2e 36 36
2018.01.26 19:55:03 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|<MAC>|ok|read|0x24|{"gtResult":"30 30 2e 30 30 2e 36 36 "}
2018.01.26 19:55:03 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.26 19:55:03 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification: handle 0x24
2018.01.26 19:55:03 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Thermo/Hygro Sens Handle0x24
2018.01.26 19:55:03 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.26 19:55:20 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.26 19:55:20 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|<MAC>|write|0x10|0100
2018.01.26 19:55:21 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command timeout 8 ssh fhem@radiohub-1.home 'gatttool -i hci0 -b <MAC> --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null' and loop 0
2018.01.26 19:55:29 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 31 2e 34 20 48 3d 34 38 2e 37 00
Notification handle = 0x000e value,54 3d 32 31 2e 35 20 48 3d 34 38 2e 36 00
2018.01.26 19:55:29 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 31 2e 34 20 48 3d 34 38 2e 37 00
Notification handle = 0x000e value,54 3d 32 31 2e 35 20 48 3d 34 38 2e 36 00
2018.01.26 19:55:30 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b <MAC> --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.26 19:55:31 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.26 19:55:31 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.26 19:55:31 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|<MAC>|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.26 19:55:31 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.26 19:55:31 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
Zitat von: distel am 26 Januar 2018, 20:04:58
Die Abbrüche scheinen nicht wirklich reproduzierbar im Zusammenhang mit dem (ssh-)timeout zu stehen. Zumindest die reinen leseoperationen geben sich unbeeindruckt (verwenden aber auch kein timeout):
Einfaches read - erfolgreichCode Auswählen2018.01.26 19:54:17 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: read
2018.01.26 19:54:17 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Read XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|<MAC>|read|0x3
2018.01.26 19:54:18 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b <MAC> --char-read -a 0x3 2>&1 /dev/null' and loop 0
2018.01.26 19:54:24 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,45 47 2e 54 65 73 74
2018.01.26 19:54:24 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,45 47 2e 54 65 73 74
2018.01.26 19:54:24 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|<MAC>|ok|read|0x3|{"gtResult":"45 47 2e 54 65 73 74 "}
2018.01.26 19:54:24 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.26 19:54:24 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification: handle 0x3
2018.01.26 19:54:24 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Thermo/Hygro Sens Handle0x3
2018.01.26 19:54:24 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
Nochmal einfaches read - erfolgreichCode Auswählen2018.01.26 19:54:55 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: read
2018.01.26 19:54:55 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Read XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|<MAC>|read|0x24
2018.01.26 19:54:56 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b <MAC> --char-read -a 0x24 2>&1 /dev/null' and loop 0
2018.01.26 19:55:03 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,30 30 2e 30 30 2e 36 36
2018.01.26 19:55:03 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,30 30 2e 30 30 2e 36 36
2018.01.26 19:55:03 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|<MAC>|ok|read|0x24|{"gtResult":"30 30 2e 30 30 2e 36 36 "}
2018.01.26 19:55:03 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.26 19:55:03 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification: handle 0x24
2018.01.26 19:55:03 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Thermo/Hygro Sens Handle0x24
2018.01.26 19:55:03 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
write (get sensordata) - nicht erfolgreich -- obwohl auf 0x000e vernünftige Infos zurückgeliefert werden.Code Auswählen2018.01.26 19:55:20 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.26 19:55:20 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|<MAC>|write|0x10|0100
2018.01.26 19:55:21 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command timeout 8 ssh fhem@radiohub-1.home 'gatttool -i hci0 -b <MAC> --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null' and loop 0
2018.01.26 19:55:29 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 31 2e 34 20 48 3d 34 38 2e 37 00
Notification handle = 0x000e value,54 3d 32 31 2e 35 20 48 3d 34 38 2e 36 00
2018.01.26 19:55:29 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 31 2e 34 20 48 3d 34 38 2e 37 00
Notification handle = 0x000e value,54 3d 32 31 2e 35 20 48 3d 34 38 2e 36 00
2018.01.26 19:55:30 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b <MAC> --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.26 19:55:31 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.26 19:55:31 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.26 19:55:31 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|<MAC>|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.26 19:55:31 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.26 19:55:31 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
Zitat von: CoolTux am 26 Januar 2018, 20:09:32Jein. Bei 1 und 2 ists ok. Bei 3 siehts gut aus, aber da fehlt noch was: Die Verarbeitung und das setzen der Readings. Sprich es erfolgt keine Aktualisierung :-/
Also hier sieht alles super aus. Bei allen drei Beispielen.
Zitat von: distel am 26 Januar 2018, 20:04:58Code Auswählen
2018.01.26 19:55:30 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b <MAC> --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.26 19:55:31 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.26 19:55:31 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.26 19:55:31 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|<MAC>|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.26 19:55:31 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.26 19:55:31 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
Zitat von: CoolTux am 26 Januar 2018, 22:33:22Stimmt, aber das einzige Reading, das aktualisiert wird ist state. Daher hatte ich das "nur" mit dem Lesen von 0x35 in Verbindung gebracht. Hier der Stand grad nach dem get sensordata:
Also zu mindest steht WriteReadings: Readings da.
Internals:
BTMAC <MAC>
DEF <MAC>
INTERVAL 300
NAME xbtle.temp.eg.flur
NOTIFYDEV global,xbtle.temp.eg.flur
NR 314
NTFY_ORDER 50-xbtle.temp.eg.flur
STATE T: 21.5 °C / H: 48.5 %
TYPE XiaomiBTLESens
VERSION 2.0.6debug
loglevel 4
READINGS:
2018-01-26 15:37:33 battery ok
2018-01-26 15:37:33 batteryLevel 96
2018-01-26 19:54:24 devicename EG.Test
2018-01-26 19:55:03 firmware 00.00.66
2018-01-26 19:44:44 humidity 48.5
2018-01-26 22:36:48 lastGattError The BlockingCall Process terminated unexpectedly. Timedout
2018-01-26 22:40:03 state active
2018-01-26 19:44:44 temperature 21.5
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1516977453.14894
updateTimestampCallBattery 2018-01-26 15:37:33
Attributes:
alias Temperatur EG.Flur
comment fhem@radiohub-1.home
group Temperatur
icon temp_temperature
interval 300
model thermoHygroSens
room Sensoren
sshHost fhem@radiohub-1.home
stateFormat {"T: " . ReadingsVal($name,"temperature",0) . " °C / H: " . ReadingsVal($name,"humidity",0) . " %"}
verbose 5
Zitat von: frank_41 am 27 Januar 2018, 00:47:52
Hm, ich bin's noch mal.
Also inzwischen hat fhem zu den meisten Flowersense Sensoren mal Kontakt gekriegt.
Der Abstand zum Raspi ist wohl an der Kante des Empfangs.
Das würde mich nicht stören.
Allerdings wird das logfile mit den timeout Meldungen vollgemüllt :
Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process xxxxx
Kann man diese Meldungen abstellen ??
Vielen Dank schonmal
Gruß
Frank
Zitat von: MadMax-FHEM am 27 Januar 2018, 07:59:23
Einbindung per ssh ist doch genau das!?
Zitat von: MadMax-FHEM am 27 Januar 2018, 08:20:12Mein Fehler ::)
Warum blockierend?
Zitat von: CoolTux am 27 Januar 2018, 11:57:31
neue Version im Develzweig zum testen.
Distel bitte teste die einmal.
2018.01.27 12:25:12 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command timeout 10 ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null' and loop 0
2018.01.27 12:25:21 1: NOTE: WEB is probed by a search engine
2018.01.27 12:25:22 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 37 00
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 38 00
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 37 00
2018.01.27 12:25:22 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 37 00
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 38 00
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 37 00
2018.01.27 12:25:23 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.27 12:25:24 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 12:25:24 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 12:25:24 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.27 12:25:24 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.27 12:25:24 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 12:25:24 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 12:25:24 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 12:25:25 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command timeout 10 ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null' and loop 0
2018.01.27 12:25:26 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 12:25:26 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 12:25:26 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 12:25:26 4: XiaomiBTLESens (xbtle.temp.eg.flur) - stateRequestTimer: Call Request Timer
2018.01.27 12:25:35 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 37 00
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 38 00
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 37 00
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 36 00
2018.01.27 12:25:35 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 37 00
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 38 00
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 37 00
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 36 00
2018.01.27 12:25:36 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.27 12:25:42 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 12:25:42 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 12:25:42 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.27 12:25:42 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.27 12:25:42 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 12:25:42 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 12:25:42 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 12:25:44 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command timeout 10 ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null' and loop 0
2018.01.27 12:25:54 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 38 00
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 37 00
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 39 00
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 37 00
Notification handle = 0x000e value,54 3d 32 31 2e 37 20 48 3d 34 36 2e 37 00
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 39 00
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 38 00
2018.01.27 12:25:54 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 38 00
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 37 00
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 39 00
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 37 00
Notification handle = 0x000e value,54 3d 32 31 2e 37 20 48 3d 34 36 2e 37 00
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 39 00
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 38 00
2018.01.27 12:25:54 3: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.01.27 12:25:56 3: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.01.27 12:25:57 3: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.01.27 12:32:36 3: XiaomiBTLESens (xbtle.temp.eg.flur) - enabled
2018.01.27 12:32:36 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 12:32:36 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 12:32:36 4: XiaomiBTLESens (xbtle.temp.eg.flur) - stateRequestTimer: Call Request Timer
2018.01.27 12:32:37 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command timeout 10 ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null' and loop 0
2018.01.27 12:32:47 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 37 00
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 38 00
Notification handle = 0x000e value,54 3d 32 31 2e 39 20 48 3d 34 36 2e 38 00
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 36 00
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 37 00
2018.01.27 12:32:47 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 37 00
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 38 00
Notification handle = 0x000e value,54 3d 32 31 2e 39 20 48 3d 34 36 2e 38 00
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 36 00
Notification handle = 0x000e value,54 3d 32 31 2e 38 20 48 3d 34 36 2e 37 00
2018.01.27 12:32:47 3: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.01.27 12:32:49 3: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.01.27 12:32:50 3: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: another gatttool process is running. waiting...
Zitat von: CoolTux am 27 Januar 2018, 12:42:49der Prozess bleibt wirklich stehen. Ich probier mal deine neue Version...
Aber immer hin bekommt er den noch laufenden Prozess mit. Geht der Prozess denn nach einer Weile weg oder bleibt er echt als Zombie hängen?
Zitat von: CoolTux am 27 Januar 2018, 12:47:08
Bitte noch einmal eine neue Version testen.
2018.01.27 14:20:24 3: XiaomiBTLESens (xbtle.temp.eg.flur) - enabled
2018.01.27 14:20:24 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: read
2018.01.27 14:20:24 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Read XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|read|0x18
2018.01.27 14:20:24 4: XiaomiBTLESens (xbtle.temp.eg.flur) - stateRequestTimer: Call Request Timer
2018.01.27 14:20:26 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x18 2>&1 /dev/null' and loop 0
2018.01.27 14:20:30 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,60
2018.01.27 14:20:30 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,60
2018.01.27 14:20:30 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x18|{"gtResult":"60 "}
2018.01.27 14:20:30 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.27 14:20:30 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification: handle 0x18
2018.01.27 14:20:30 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Thermo/Hygro Sens Handle0x18
2018.01.27 14:20:30 1: PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 682.
2018.01.27 14:20:30 3: eval: {XiaomiBTLESens_ExecGatttool_Done('xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x18|{"gtResult":"60 "}')}
2018.01.27 14:20:30 1: PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 683.
2018.01.27 14:20:30 3: eval: {XiaomiBTLESens_ExecGatttool_Done('xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x18|{"gtResult":"60 "}')}
2018.01.27 14:20:30 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 14:20:30 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 14:20:30 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 14:20:31 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 2>&1 /dev/null' and loop 0
2018.01.27 14:20:32 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.27 14:20:32 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.27 14:20:33 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.27 14:20:34 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:20:34 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:20:34 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.27 14:20:34 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.27 14:20:34 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 14:20:34 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 14:20:34 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 14:20:35 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 2>&1 /dev/null' and loop 0
2018.01.27 14:20:36 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.27 14:20:36 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.27 14:20:37 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.27 14:20:41 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:20:41 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:20:41 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.27 14:20:41 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.27 14:20:41 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 14:20:41 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 14:20:41 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 14:20:42 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 2>&1 /dev/null' and loop 0
2018.01.27 14:20:42 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.27 14:20:42 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.27 14:20:44 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.27 14:20:44 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:20:44 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:20:44 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.27 14:20:44 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.27 14:20:44 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 14:20:44 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 14:20:44 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 14:20:45 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 2>&1 /dev/null' and loop 0
2018.01.27 14:20:46 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.27 14:20:46 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.27 14:20:47 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.27 14:20:53 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result connect error,Function not implemented (38)
2018.01.27 14:20:53 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 1
2018.01.27 14:21:00 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:21:00 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:21:00 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.27 14:21:00 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.27 14:21:00 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 14:21:00 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 14:21:00 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 14:21:01 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 2>&1 /dev/null' and loop 0
2018.01.27 14:21:02 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.27 14:21:02 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.27 14:21:03 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.27 14:21:04 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:21:04 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:21:04 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.27 14:21:04 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.27 14:21:04 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 14:21:04 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 14:21:04 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 14:21:05 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 2>&1 /dev/null' and loop 0
2018.01.27 14:21:05 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.27 14:21:05 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.27 14:21:07 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.27 14:21:12 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:21:12 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:21:12 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.27 14:21:12 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.27 14:21:12 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 14:21:12 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 14:21:12 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 14:21:13 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 2>&1 /dev/null' and loop 0
2018.01.27 14:21:14 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.27 14:21:14 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.27 14:21:15 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.27 14:21:16 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:21:16 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:21:16 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.27 14:21:16 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.27 14:21:16 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 14:21:16 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 14:21:16 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 14:21:17 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 2>&1 /dev/null' and loop 0
2018.01.27 14:21:18 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic Write Request failed,Request attribute has encountered an unlikely error
2018.01.27 14:21:18 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic Write Request failed,Request attribute has encountered an unlikely error
2018.01.27 14:21:19 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.27 14:21:24 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:21:24 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:21:24 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.27 14:21:24 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.27 14:21:24 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 14:21:24 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 14:21:24 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 14:21:26 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 2>&1 /dev/null' and loop 0
2018.01.27 14:21:26 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.27 14:21:26 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.27 14:21:27 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.27 14:21:28 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:21:28 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:21:28 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.27 14:21:28 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.27 14:21:28 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 14:21:28 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 14:21:28 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 14:21:29 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 2>&1 /dev/null' and loop 0
2018.01.27 14:21:35 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.27 14:21:35 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.27 14:21:36 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.27 14:21:36 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:21:36 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:21:36 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.27 14:21:36 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.27 14:21:36 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 14:21:36 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 14:21:36 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 14:21:38 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 2>&1 /dev/null' and loop 0
2018.01.27 14:21:38 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.27 14:21:38 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.27 14:21:39 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.27 14:21:40 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor read failed,Request attribute has encountered an unlikely error
2018.01.27 14:21:40 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor read failed,Request attribute has encountered an unlikely error
2018.01.27 14:21:40 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|error|read|0x35|{"gtResult":"Request attribute has encountered an unlikely error"}
2018.01.27 14:21:40 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingErrors
2018.01.27 14:21:40 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 14:21:40 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 14:21:40 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 14:21:41 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 2>&1 /dev/null' and loop 0
2018.01.27 14:21:49 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.27 14:21:49 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.27 14:21:50 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.27 14:21:51 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:21:51 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:21:51 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.27 14:21:51 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.27 14:21:51 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 14:21:51 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 14:21:51 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 14:21:52 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 2>&1 /dev/null' and loop 0
2018.01.27 14:21:52 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.27 14:21:52 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.27 14:21:53 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.27 14:21:54 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor read failed,Request attribute has encountered an unlikely error
2018.01.27 14:21:54 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor read failed,Request attribute has encountered an unlikely error
2018.01.27 14:21:54 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|error|read|0x35|{"gtResult":"Request attribute has encountered an unlikely error"}
2018.01.27 14:21:54 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingErrors
2018.01.27 14:21:54 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 14:21:54 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 14:21:54 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 14:21:55 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 2>&1 /dev/null' and loop 0
2018.01.27 14:22:01 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result connect error,Connection timed out (110)
2018.01.27 14:22:01 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 2>&1 /dev/null' and loop 1
2018.01.27 14:22:10 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.27 14:22:10 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.27 14:22:11 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.27 14:22:11 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:22:11 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:22:11 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.27 14:22:11 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.27 14:22:11 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 14:22:11 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 14:22:11 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 14:22:13 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 2>&1 /dev/null' and loop 0
2018.01.27 14:22:13 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.27 14:22:13 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.27 14:22:14 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.27 14:22:15 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:22:15 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:22:15 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.27 14:22:15 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.27 14:22:15 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 14:22:15 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 14:22:15 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 14:22:16 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 2>&1 /dev/null' and loop 0
2018.01.27 14:22:20 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.27 14:22:20 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.27 14:22:21 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.27 14:22:22 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:22:22 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:22:22 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.27 14:22:22 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.27 14:22:22 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 14:22:22 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 14:22:22 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 14:22:23 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 2>&1 /dev/null' and loop 0
2018.01.27 14:22:24 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.27 14:22:24 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.27 14:22:25 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.27 14:22:29 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result connect error,Connection timed out (110)
2018.01.27 14:22:29 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 1
2018.01.27 14:22:36 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:22:36 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:22:36 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.27 14:22:36 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.27 14:22:36 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 14:22:36 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 14:22:36 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 14:22:37 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 2>&1 /dev/null' and loop 0
2018.01.27 14:22:38 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.27 14:22:38 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.27 14:22:39 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.27 14:22:39 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:22:39 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:22:39 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.27 14:22:39 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.27 14:22:39 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 14:22:39 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 14:22:39 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 14:22:41 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 2>&1 /dev/null' and loop 0
2018.01.27 14:22:41 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.27 14:22:41 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.27 14:22:42 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.27 14:22:46 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:22:46 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:22:46 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.27 14:22:46 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.27 14:22:46 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 14:22:46 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 14:22:46 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 14:22:47 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 2>&1 /dev/null' and loop 0
2018.01.27 14:22:48 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.27 14:22:48 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.27 14:22:49 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.27 14:22:50 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:22:50 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:22:50 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.27 14:22:50 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.27 14:22:50 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 14:22:50 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 14:22:50 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 14:22:51 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 2>&1 /dev/null' and loop 0
2018.01.27 14:22:51 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.27 14:22:51 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.27 14:22:52 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.27 14:22:56 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:22:56 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:22:56 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.27 14:22:56 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.27 14:22:56 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 14:22:56 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 14:22:56 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 14:22:57 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 2>&1 /dev/null' and loop 0
2018.01.27 14:22:58 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.27 14:22:58 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.27 14:22:59 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.27 14:23:00 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:23:00 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:23:00 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.27 14:23:00 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.27 14:23:00 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 14:23:00 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 14:23:00 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 14:23:01 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 2>&1 /dev/null' and loop 0
2018.01.27 14:23:02 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.27 14:23:02 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.27 14:23:03 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.27 14:23:09 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:23:09 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:23:09 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.27 14:23:09 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.27 14:23:09 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 14:23:09 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 14:23:09 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 14:23:10 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 2>&1 /dev/null' and loop 0
2018.01.27 14:23:10 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.27 14:23:10 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.27 14:23:12 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.27 14:23:12 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:23:12 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:23:12 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.27 14:23:12 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.27 14:23:12 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 14:23:12 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 14:23:12 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 14:23:13 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 2>&1 /dev/null' and loop 0
2018.01.27 14:23:14 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic Write Request failed,Request attribute has encountered an unlikely error
2018.01.27 14:23:14 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic Write Request failed,Request attribute has encountered an unlikely error
2018.01.27 14:23:15 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.27 14:23:17 3: XiaomiBTLESens (xbtle.temp.eg.flur) - disabled
2018.01.27 14:23:19 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:23:19 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 14:23:19 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.27 14:23:19 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.27 14:23:19 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
Zitat von: CoolTux am 27 Januar 2018, 15:29:58
bitte noch mal testen, habe noch ein paar Optionen an das timeout gebunden
2018.01.27 19:59:18 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 19:59:18 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 19:59:19 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command timeout -s 15 -k 15 5 ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null' and loop 0
2018.01.27 19:59:24 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 32 2e 33 20 48 3d 34 31 2e 34 00
Notification handle = 0x000e value,54 3d 32 32 2e 33 20 48 3d 34 31 2e 33 00
Notification handle = 0x000e value,54 3d 32 32 2e 33 20 48 3d 34 31 2e 32 00
Notification handle = 0x000e value,54 3d 32 32 2e 32 20 48 3d 34 31 2e 33 00
Notification handle = 0x000e value,54 3d 32 32 2e 33 20 48 3d 34 31 2e 34 00
Notification handle = 0x000e value,54 3d 32 32 2e 33 20 48 3d 34 31 2e 33 00
Notification handle = 0x000e value,54 3d 32 32 2e 33 20 48 3d 34 31 2e 32 00
2018.01.27 19:59:24 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 32 2e 33 20 48 3d 34 31 2e 34 00
Notification handle = 0x000e value,54 3d 32 32 2e 33 20 48 3d 34 31 2e 33 00
Notification handle = 0x000e value,54 3d 32 32 2e 33 20 48 3d 34 31 2e 32 00
Notification handle = 0x000e value,54 3d 32 32 2e 32 20 48 3d 34 31 2e 33 00
Notification handle = 0x000e value,54 3d 32 32 2e 33 20 48 3d 34 31 2e 34 00
Notification handle = 0x000e value,54 3d 32 32 2e 33 20 48 3d 34 31 2e 33 00
Notification handle = 0x000e value,54 3d 32 32 2e 33 20 48 3d 34 31 2e 32 00
2018.01.27 19:59:24 3: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: another gatttool process is running. waiting...
[...]
2018.01.27 20:00:47 3: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.01.27 20:00:48 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 1861
2018.01.27 20:00:48 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 20:00:48 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 20:00:48 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 20:00:48 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
2018.01.27 20:00:48 3: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: another gatttool process is running. waiting...
[...]
2018.01.27 20:01:50 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command timeout -s 15 -k 15 5 ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null' and loop 0
2018.01.27 20:01:55 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.01.27 20:01:55 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.01.27 20:01:56 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.27 20:01:57 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 20:01:57 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 20:01:57 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.27 20:01:57 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.27 20:01:57 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 20:01:57 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 20:01:57 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 20:01:58 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command timeout -s 15 -k 15 5 ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null' and loop 0
2018.01.27 20:02:03 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 32 2e 33 20 48 3d 34 31 2e 33 00
2018.01.27 20:02:03 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 32 2e 33 20 48 3d 34 31 2e 33 00
2018.01.27 20:02:03 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|write|0x10|{"gtResult":"54 3d 32 32 2e 33 20 48 3d 34 31 2e 33 00 "}
2018.01.27 20:02:03 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.27 20:02:03 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification: handle 0x10
2018.01.27 20:02:03 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Thermo/Hygro Sens Handle0x10
2018.01.27 20:02:03 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 20:02:32 3: XiaomiBTLESens (xbtle.temp.eg.flur) - disabled
Zitat von: CoolTux am 27 Januar 2018, 20:57:27
Magst bitte noch mal testen.
2018.01.27 21:03:17 3: XiaomiBTLESens (xbtle.temp.eg.flur) - enabled
2018.01.27 21:03:17 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: read
2018.01.27 21:03:17 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Read XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|read|0x18
2018.01.27 21:03:17 4: XiaomiBTLESens (xbtle.temp.eg.flur) - stateRequestTimer: Call Request Timer
2018.01.27 21:03:18 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x18 2>&1 /dev/null' and loop 0
2018.01.27 21:03:21 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,60
2018.01.27 21:03:21 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,60
2018.01.27 21:03:21 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x18|{"gtResult":"60 "}
2018.01.27 21:03:21 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.27 21:03:21 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification: handle 0x18
2018.01.27 21:03:21 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Thermo/Hygro Sens Handle0x18
2018.01.27 21:03:21 1: PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 682.
2018.01.27 21:03:21 3: eval: {XiaomiBTLESens_ExecGatttool_Done('xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x18|{"gtResult":"60 "}')}
2018.01.27 21:03:21 1: PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 683.
2018.01.27 21:03:21 3: eval: {XiaomiBTLESens_ExecGatttool_Done('xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x18|{"gtResult":"60 "}')}
2018.01.27 21:03:21 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.27 21:03:21 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.27 21:03:21 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.27 21:03:22 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command timeout -s 9 10 ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null' and loop 0
Killed
2018.01.27 21:03:32 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 32 2e 31 20 48 3d 34 32 2e 32 00
Notification handle = 0x000e value,54 3d 32 32 2e 31 20 48 3d 34 32 2e 31 00
Notification handle = 0x000e value,54 3d 32 32 2e 31 20 48 3d 34 32 2e 33 00
Notification handle = 0x000e value,54 3d 32 32 2e 32 20 48 3d 34 32 2e 33 00
Notification handle = 0x000e value,54 3d 32 32 2e 32 20 48 3d 34 32 2e 32 00
2018.01.27 21:03:32 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 32 2e 31 20 48 3d 34 32 2e 32 00
Notification handle = 0x000e value,54 3d 32 32 2e 31 20 48 3d 34 32 2e 31 00
Notification handle = 0x000e value,54 3d 32 32 2e 31 20 48 3d 34 32 2e 33 00
Notification handle = 0x000e value,54 3d 32 32 2e 32 20 48 3d 34 32 2e 33 00
Notification handle = 0x000e value,54 3d 32 32 2e 32 20 48 3d 34 32 2e 32 00
2018.01.27 21:03:33 3: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: another gatttool process is running. waiting...
[...]
2018.01.27 21:04:16 3: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: another gatttool process is running. waiting...
==> Prozess auf Remote-system abgeschossen
2018.01.27 21:04:18 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.27 21:04:22 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 21:04:22 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.27 21:04:22 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.27 21:04:22 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.27 21:04:22 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
Zitat von: CoolTux am 27 Januar 2018, 21:23:43Da mach ich mit. Werde testen, aber nicht mehr heute... Muss die Depression runterspülen. Ich danke dir jedenfalls für deine Geduld und schnelle Reaktion. Ich hab die Hoffnung noch nicht komplett an den Nagel gehängt - nur für heute Abend ;-)
Dann bin ich erstmal Ratlos
Zitat von: CoolTux am 27 Januar 2018, 21:53:13
So Du kannst dann mal bitte noch einmal testen. Danke Dir
2018.01.28 10:40:45 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.28 10:40:45 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.28 10:40:47 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'timeout 15 gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null' and loop 0
2018.01.28 10:40:48 3: XiaomiBTLESens (xbtle.temp.eg.flur) - disabled
2018.01.28 10:41:02 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 32 2e 30 20 48 3d 34 37 2e 31 00
Notification handle = 0x000e value,54 3d 32 31 2e 39 20 48 3d 34 37 2e 33 00
Notification handle = 0x000e value,54 3d 32 32 2e 30 20 48 3d 34 37 2e 31 00
Notification handle = 0x000e value,54 3d 32 32 2e 30 20 48 3d 34 37 2e 32 00
Notification handle = 0x000e value,54 3d 32 32 2e 30 20 48 3d 34 37 2e 30 00
Notification handle = 0x000e value,54 3d 32 31 2e 39 20 48 3d 34 37 2e 32 00
Notification handle = 0x000e value,54 3d 32 32 2e 30 20 48 3d 34 37 2e 32 00
Notification handle = 0x000e value,54 3d 32 31 2e 39 20 48 3d 34 37 2e 32 00
2018.01.28 10:41:02 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 32 2e 30 20 48 3d 34 37 2e 31 00
Notification handle = 0x000e value,54 3d 32 31 2e 39 20 48 3d 34 37 2e 33 00
Notification handle = 0x000e value,54 3d 32 32 2e 30 20 48 3d 34 37 2e 31 00
Notification handle = 0x000e value,54 3d 32 32 2e 30 20 48 3d 34 37 2e 32 00
Notification handle = 0x000e value,54 3d 32 32 2e 30 20 48 3d 34 37 2e 30 00
Notification handle = 0x000e value,54 3d 32 31 2e 39 20 48 3d 34 37 2e 32 00
Notification handle = 0x000e value,54 3d 32 32 2e 30 20 48 3d 34 37 2e 32 00
Notification handle = 0x000e value,54 3d 32 31 2e 39 20 48 3d 34 37 2e 32 00
2018.01.28 10:41:03 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.28 10:41:10 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,08 36 00 10 00
2018.01.28 10:41:10 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,08 36 00 10 00
2018.01.28 10:41:10 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|read|0x35|{"gtResult":"08 36 00 10 00 "}
2018.01.28 10:41:10 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.28 10:41:10 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.29 15:30:13 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
2018.01.29 15:30:13 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Run CreateParamGatttool with mod: write
2018.01.29 15:30:13 5: XiaomiBTLESens (xbtle.temp.eg.flur) - Write XiaomiBTLESens_ExecGatttool_Run xbtle.temp.eg.flur|4C:65:A8:D0:42:63|write|0x10|0100
2018.01.29 15:30:14 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'timeout 15 gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null' and loop 0
2018.01.29 15:30:29 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 31 2e 39 20 48 3d 34 38 2e 31 00
2018.01.29 15:30:29 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 31 2e 39 20 48 3d 34 38 2e 31 00
2018.01.29 15:30:29 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|write|0x10|{"gtResult":"54 3d 32 31 2e 39 20 48 3d 34 38 2e 31 00 "}
2018.01.29 15:30:29 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification
2018.01.29 15:30:29 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ProcessingNotification: handle 0x10
2018.01.29 15:30:29 4: XiaomiBTLESens (xbtle.temp.eg.flur) - Thermo/Hygro Sens Handle0x10
2018.01.29 15:30:29 4: XiaomiBTLESens (xbtle.temp.eg.flur) - WriteReadings: Readings were written
Zitat von: trinitywhm am 26 Januar 2018, 19:42:17
Ich habe hier auch vermehrt Fehler nach der Umstellung. Im Device das ReadingCode AuswählenlastGattError
The BlockingCall Process terminated unexpectedly. Timedout
Im Log mit verbose 5 nach einem "get sensorData"Code Auswählen2018.01.26 19:21:06 4: XiaomiBTLESens (WZ_Pflanze1) - Run CreateParamGatttool with mod: read
2018.01.26 19:21:06 4: XiaomiBTLESens (WZ_Pflanze1) - Read XiaomiBTLESens_ExecGatttool_Run WZ_Pflanze1|C4:7C:8D:63:6D:E9|read|0x38
2018.01.26 19:21:34 5: XiaomiBTLESens (WZ_Pflanze1) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)
2018.01.26 19:21:34 5: XiaomiBTLESens (WZ_Pflanze1) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b C4:7C:8D:63:6D:E9 --char-read -a 0x38 2>&1 /dev/null and loop 1
2018.01.26 19:21:53 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 3521
2018.01.26 19:21:54 4: XiaomiBTLESens (WZ_Pflanze1) - WriteReadings: Readings were written
2018.01.26 19:21:54 4: XiaomiBTLESens (WZ_Pflanze1) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
2018.01.26 19:24:50 4: XiaomiBTLESens (WZ_Pflanze1) - Run CreateParamGatttool with mod: read
2018.01.26 19:24:51 4: XiaomiBTLESens (WZ_Pflanze1) - Read XiaomiBTLESens_ExecGatttool_Run WZ_Pflanze1|C4:7C:8D:63:6D:E9|read|0x38
2018.01.26 19:24:51 4: XiaomiBTLESens (WZ_Pflanze1) - stateRequestTimer: Call Request Timer
2018.01.26 19:24:51 5: XiaomiBTLESens (WZ_Pflanze1) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b C4:7C:8D:63:6D:E9 --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.01.26 19:25:31 5: XiaomiBTLESens (WZ_Pflanze1) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)
2018.01.26 19:25:31 5: XiaomiBTLESens (WZ_Pflanze1) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b C4:7C:8D:63:6D:E9 --char-read -a 0x38 2>&1 /dev/null and loop 1
2018.01.26 19:25:50 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 3798
2018.01.26 19:25:51 4: XiaomiBTLESens (WZ_Pflanze1) - WriteReadings: Readings were written
2018.01.26 19:25:51 4: XiaomiBTLESens (WZ_Pflanze1) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
2018.01.26 19:26:29 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 3921
2018.01.26 19:27:13 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 3965
Und diese letzte Timeout-Meldung zieht sich schon durch den ganzen Tag, mal sporadisch, mal im Abstand von ein bis zwei Minuten.
Internals:
BTMAC C4:7C:8D:65:B8:76
DEF C4:7C:8D:65:B8:76
INTERVAL 300
NAME BAD_Pflanze5
NOTIFYDEV global,BAD_Pflanze5
NR 337
NTFY_ORDER 50-BAD_Pflanze5
STATE disabled
TYPE XiaomiBTLESens
VERSION 2.0.5
loglevel 4
READINGS:
2018-01-26 10:35:15 battery ok
2018-01-26 10:35:15 batteryLevel 99
2018-01-26 14:14:51 fertility 587
2018-01-26 10:35:15 firmware 3.1.8
2018-01-28 09:04:16 lastGattError The BlockingCall Process terminated unexpectedly. Timedout
2018-01-26 14:14:51 lux 55
2018-01-26 14:14:51 moisture 31
2018-01-28 11:51:36 state disabled
2018-01-26 14:14:51 temperature 20.7
2018-01-28 09:04:21 uistate ok
helper:
CallBattery 0
CallSensDataCounter 0
Attributes:
DbLogExclude .*
DbLogInclude state,battery,batteryLevel,temperature,moisture,fertility,lux
alias Efeu
disable 1
event-min-interval state:3600,battery:3600,batteryLevel:3600,temperature:600,moisture:600,fertility:600,lux:300
event-on-change-reading state
event-on-update-reading .*
icon hue_room_garden
maxFertility 2000
maxLux 3500
maxMoisture 60
maxTemp 32
minFertility 350
minLux 1400
minMoisture 15
minTemp 10
model flowerSens
room 70_Bad
stateFormat {"Feuchte: ".AttrVal($name,"minMoisture","")." / ".ReadingsVal($name,"moisture","")." / ".AttrVal($name,"maxMoisture","")."</br>".
"Dünger: ".AttrVal($name,"minFertility","")." / ".ReadingsVal($name,"fertility","")." / ".AttrVal($name,"maxFertility","")."</br>".
"Temperatur: ".AttrVal($name,"minTemp","")." / ".ReadingsVal($name,"temperature","")." / ".AttrVal($name,"maxTemp","")."</br>"}
userReadings uistate {my $moist = ReadingsVal($name, "moisture",0);; my $minmoist = AttrVal($name,"minMoisture",10);; my $fert = ReadingsVal($name, "fertility",0);; my $minfert = AttrVal($name,"minFertility",50);; if ($moist < $minmoist && $fert < $minfert) {return "durstig+hungrig"} elsif ($moist < $minmoist) {return "durstig"} elsif ($fert < $minfert) {return "hungrig"} else {return "ok"}}
verbose 0
2018.01.30 08:17:19 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 25362
2018.01.30 08:20:13 4: XiaomiBTLESens (BAD_Pflanze5) - Run CreateParamGatttool with mod: read
2018.01.30 08:20:13 4: XiaomiBTLESens (BAD_Pflanze5) - Read XiaomiBTLESens_ExecGatttool_Run BAD_Pflanze5|C4:7C:8D:65:B8:76|read|0x38
2018.01.30 08:20:14 5: XiaomiBTLESens (BAD_Pflanze5) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b C4:7C:8D:65:B8:76 --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.01.30 08:20:54 5: XiaomiBTLESens (BAD_Pflanze5) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)
2018.01.30 08:20:54 5: XiaomiBTLESens (BAD_Pflanze5) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b C4:7C:8D:65:B8:76 --char-read -a 0x38 2>&1 /dev/null and loop 1
2018.01.30 08:21:13 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 25599
2018.01.30 08:21:14 4: XiaomiBTLESens (BAD_Pflanze5) - WriteReadings: Readings were written
2018.01.30 08:21:14 4: XiaomiBTLESens (BAD_Pflanze5) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
2018.01.30 08:20:14 5: XiaomiBTLESens (BAD_Pflanze5) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b C4:7C:8D:65:B8:76 --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.01.30 08:20:54 5: XiaomiBTLESens (BAD_Pflanze5) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)
2018.01.30 09:34:06 4: XiaomiFlowerSens (BAD_Pflanze55) - CallBatteryFirmware: call function ExecGatttool_Run
2018.01.30 09:34:06 5: XiaomiFlowerSens (BAD_Pflanze55) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b C4:7C:8D:65:B8:76 --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.01.30 09:34:47 5: XiaomiFlowerSens (BAD_Pflanze55) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)
2018.01.30 09:34:47 5: XiaomiFlowerSens (BAD_Pflanze55) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b C4:7C:8D:65:B8:76 --char-read -a 0x38 2>&1 /dev/null and loop 1
2018.01.30 09:35:06 1: Timeout for XiaomiFlowerSens_ExecGatttool_Run reached, terminated process 30431
2018.01.30 09:35:06 4: XiaomiFlowerSens (BAD_Pflanze55) - WriteReadings: Readings were written
2018.01.30 09:35:06 4: XiaomiFlowerSens (BAD_Pflanze55) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
Zitat von: trinitywhm am 30 Januar 2018, 11:50:42
Das hatte ich auch versucht, aber den Aufruf gibt es wohl nicht. Hab Debian jessie.
Zitat von: CoolTux am 30 Januar 2018, 13:29:17
bluetoothctl --version
Zitat von: CoolTux am 30 Januar 2018, 13:29:17Mein RasPi (der remote Rechner) hat 5.43 der NUC 5.37.
bluetoothctl --version
Zitat von: CoolTux am 30 Januar 2018, 19:28:215.43 ist bei mir ein RasPi 2 mit Rasbian Stretch
Ich habe 5.43
Zitat von: trinitywhm am 29 Januar 2018, 20:58:56
Auch wenn das zwei verschiedene Probleme sein mögen, habe ich dennoch immernoch o.g. Meldungen im Log. Auch mit verbose 0 auf allen Pflanzensensoren kommen die Timeout-Meldungen im Log. Habe die Pflanzensensoren nun alle disabled.
@CoolTux: Ist denn hier eine Lösung in Sicht, oder soll ich zunächst wieder auf das alte Modul zurückgehen?
Zitat von: CoolTux am 31 Januar 2018, 08:56:20Dann schaul ich mal am Abend und zieh die aktuelle devel.zip drauf. Vielleicht ist ja schon alles gut :)
Hab ich auf dem Schirm. Glaube habe auch schon was gemacht.
Zitat von: distel am 31 Januar 2018, 12:36:30
Dann schaul ich mal am Abend und zieh die aktuelle devel.zip drauf. Vielleicht ist ja schon alles gut :)
Zitat von: CoolTux am 31 Januar 2018, 12:39:29So, hab die aktuelle devel5 nochmal gezogen und probiert. Es scheint wirklich daran zu liegen, dass die Abfragen auf das gelieferte Ergebnis nicht funktionieren, wenn mehr als eine "Antwortzeile" kommt.
Sei mal so nett. Mich interessiert gerade ob das vom SSH kommt oder generell so nicht ganz sauber läuft.
Danke Dir.
2018.01.31 20:30:12 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'timeout 15 gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null' and loop 0
2018.01.31 20:30:27 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 31 2e 39 20 48 3d 34 36 2e 36 00
2018.01.31 20:30:27 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 31 2e 39 20 48 3d 34 36 2e 36 00
2018.01.31 20:30:27 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|write|0x10|{"gtResult":"54 3d 32 31 2e 39 20 48 3d 34 36 2e 36 00 "}
2018.01.31 20:33:38 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'timeout 15 gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null' and loop 0
2018.01.31 20:33:54 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 31 2e 39 20 48 3d 34 36 2e 37 00
...
Notification handle = 0x000e value,54 3d 32 31 2e 39 20 48 3d 34 36 2e 35 00
2018.01.31 20:33:54 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 31 2e 39 20 48 3d 34 36 2e 37 00
...
Notification handle = 0x000e value,54 3d 32 31 2e 39 20 48 3d 34 36 2e 35 00
2018.01.31 20:33:55 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
2018.01.31 20:44:34 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 31 2e 39 20 48 3d 34 36 2e 36 00
Notification handle = 0x000e value,54 3d 32 31 2e 39 20 48 3d 34 36 2e 35 00
2018.01.31 20:44:34 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 31 2e 39 20 48 3d 34 36 2e 36 00
Notification handle = 0x000e value,54 3d 32 31 2e 39 20 48 3d 34 36 2e 35 00
2018.01.31 20:44:34 5: XiaomiBTLESens (xbtle.temp.eg.flur) - gtResult[1]: 54 3d 32 31 2e 39 20 48 3d 34 36 2e 36 00
Notification handle = 0x000e value
2018.01.31 20:44:34 5: XiaomiBTLESens (xbtle.temp.eg.flur) - json_notification: {"gtResult":"54 3d 32 31 2e 39 20 48 3d 34 36 2e 36 00 \nNotification handle = 0x000e value"}
2018.01.31 20:44:36 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatt
Zitat von: distel am 31 Januar 2018, 21:04:05
So, hab die aktuelle devel5 nochmal gezogen und probiert. Es scheint wirklich daran zu liegen, dass die Abfragen auf das gelieferte Ergebnis nicht funktionieren, wenn mehr als eine "Antwortzeile" kommt.
Mit dieser Rückgabe klappt es:Code Auswählen2018.01.31 20:30:12 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'timeout 15 gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null' and loop 0
2018.01.31 20:30:27 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 31 2e 39 20 48 3d 34 36 2e 36 00
2018.01.31 20:30:27 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 31 2e 39 20 48 3d 34 36 2e 36 00
2018.01.31 20:30:27 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Done: gatttool return string: xbtle.temp.eg.flur|4C:65:A8:D0:42:63|ok|write|0x10|{"gtResult":"54 3d 32 31 2e 39 20 48 3d 34 36 2e 36 00 "}
Sekunden später klappt es nicht:Code Auswählen2018.01.31 20:33:38 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'timeout 15 gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null' and loop 0
2018.01.31 20:33:54 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 31 2e 39 20 48 3d 34 36 2e 37 00
...
Notification handle = 0x000e value,54 3d 32 31 2e 39 20 48 3d 34 36 2e 35 00
2018.01.31 20:33:54 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 31 2e 39 20 48 3d 34 36 2e 37 00
...
Notification handle = 0x000e value,54 3d 32 31 2e 39 20 48 3d 34 36 2e 35 00
2018.01.31 20:33:55 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatttool -i hci0 -b 4C:65:A8:D0:42:63 --char-read -a 0x35 2>&1 /dev/null' and loop 0
Das Thermometer hat halt die "Angewohnheit", seine Messwerte bis ca. 10x rauszuposaunen. :-/
Hab in Deinen Code geschaut, und bin irgendwo in der Ecke Zeile 490 hängen geblieben. Leider habe ich keine Ahnung vom Array/String-Handling in Perl, daher kann ich nicht beurteilen, was im jeweiligen Falle in $gtResult[1] drin ist. Daher hab ich zwei Log3 Aufrufe eingefügt:Code Auswählen2018.01.31 20:44:34 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 31 2e 39 20 48 3d 34 36 2e 36 00
Notification handle = 0x000e value,54 3d 32 31 2e 39 20 48 3d 34 36 2e 35 00
2018.01.31 20:44:34 4: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 31 2e 39 20 48 3d 34 36 2e 36 00
Notification handle = 0x000e value,54 3d 32 31 2e 39 20 48 3d 34 36 2e 35 00
2018.01.31 20:44:34 5: XiaomiBTLESens (xbtle.temp.eg.flur) - gtResult[1]: 54 3d 32 31 2e 39 20 48 3d 34 36 2e 36 00
Notification handle = 0x000e value
2018.01.31 20:44:34 5: XiaomiBTLESens (xbtle.temp.eg.flur) - json_notification: {"gtResult":"54 3d 32 31 2e 39 20 48 3d 34 36 2e 36 00 \nNotification handle = 0x000e value"}
2018.01.31 20:44:36 5: XiaomiBTLESens (xbtle.temp.eg.flur) - ExecGatttool_Run: call gatttool with command ssh fhem@radiohub-1.home 'gatt
Knackpunkt dürfte sein, dass im Element [1] nicht nut der "Response"-Teil "54 3d 32 31 2e 39 20 48 3d 34 36 2e 36 00" sondern nach einem Umbruch o.ä. auch noch der Führungstext der nächsten Zeile "Notification handle = 0x000e value" drin ist.
Die folgende RegEx "if($gtResult[1] =~ /^([0-9a-f]{2}(\s?))*$/) {" refrenziert aber auf das Ende des Strings, dass erst nach dem zweiten Teil (Führungstext) erreicht ist. Somit scheint mir klar, warum es funktioniert, wenn nur genau eine Antwortzeile zurückkommt.
Das Zeichen, das für den Umbruch sorgt ist ein "0A" in Hex - also klassischer LineFeed. den müsstest Du noch irgendwie ausfiltern/ersetzen, so dass die Antwort tatsächlich "frei" steht. Ich habe eine Ausgabe vom gatttool angehängt, da dort auch noch ein Leerzeichen vor dem 0A steht. Dann kannst Du dagegen prüfen.
Gruß
Dirk
Zitat von: CoolTux am 01 Februar 2018, 13:57:19
Ich bilde mir ein jetzt habe ich es. Kannst Du bitte einmal die neuste Develversion Dir holen.
Characteristic value was written successfully\n
Notification handle = 0x000e value: 54 3d 32 31 2e 39 20 48 3d 34 36 2e 35 00\n
Notification handle = 0x000e value: 54 3d 32 31 2e 39 20 48 3d 34 36 2e 36 00\n
Notification handle = 0x000e value: 54 3d 32 31 2e 39 20 48 3d 34 36 2e 35 00\n
Index 0 | Characteristic value was written successfully\n Notification handle = 0x000e value |
Index 1 | 54 3d 32 31 2e 39 20 48 3d 34 36 2e 35 00\n Notification handle = 0x000e value |
Index 2 | 54 3d 32 31 2e 39 20 48 3d 34 36 2e 36 00\n Notification handle = 0x000e value |
Index 3 | 54 3d 32 31 2e 39 20 48 3d 34 36 2e 35 00\n |
Characteristic value was written successfully: Notification handle = 0x000e value: 54 3d 32 31 2e 39 20 48 3d 34 36 2e 35 00: Notification handle = 0x000e value: 54 3d 32 31 2e 39 20 48 3d 34 36 2e 36 00: Notification handle = 0x000e value: 54 3d 32 31 2e 39 20 48 3d 34 36 2e 35 00:
Index 0 | Characteristic value was written successfully |
Index 1 | Notification handle = 0x000e value |
Index 2 | 54 3d 32 31 2e 39 20 48 3d 34 36 2e 35 00 |
Index 3 | Notification handle = 0x000e value |
Index 4 | 54 3d 32 31 2e 39 20 48 3d 34 36 2e 36 00 |
Index 5 | Notification handle = 0x000e value |
Index 6 | 54 3d 32 31 2e 39 20 48 3d 34 36 2e 35 00 |
Index 7 |
Zitat von: CoolTux am 02 Februar 2018, 06:15:44Eine mögliche Option wäre (für das Thermometer) auch noch statt auf einen fixen Index auf das letzte Element zuzugreifen. Ich weiß aber nicht, ob Perl einfach ein MaxIndex(Array) bereitstellt...
Vielen Dank für Deine ausführliche Erklärung. Ich werde mal schauen das ich mir das die Tage anschaue. Denke ich habe da schon eine Idee.
Zitat von: distel am 02 Februar 2018, 15:11:47
Eine mögliche Option wäre (für das Thermometer) auch noch statt auf einen fixen Index auf das letzte Element zuzugreifen. Ich weiß aber nicht, ob Perl einfach ein MaxIndex(Array) bereitstellt...
Zitat von: CoolTux am 02 Februar 2018, 19:04:54Oh, hier in NRW nicht - sorry! Aber: ich bin (nicht mehr ganz) jung, ich kann (trotzdem) warten :-)
Sind ja Ferien und ich hab Urlaub.
Zitat von: CoolTux am 05 Februar 2018, 09:08:17Hi, hab erst vorsichtig, dann etwas mutiger getestet... Läuft! Daumen hoch!
Bitte noch mal vorsichtig testen.
2018.02.06 18:58:15 4: XiaomiBTLESens (Pflanzen) - Run CreateParamGatttool with mod: read
2018.02.06 18:58:15 4: XiaomiBTLESens (Pflanzen) - Read XiaomiBTLESens_ExecGatttool_Run Pflanzen|C4:7C:8D:65:D4:09|read|0x38
2018.02.06 18:58:40 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 3723
2018.02.06 18:58:40 4: XiaomiBTLESens (Pflanzen) - WriteReadings: Readings were written
2018.02.06 18:58:40 4: XiaomiBTLESens (Pflanzen) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
2018.02.06 18:59:56 4: XiaomiBTLESens (Pflanzen) - Run CreateParamGatttool with mod: read
2018.02.06 18:59:56 4: XiaomiBTLESens (Pflanzen) - Read XiaomiBTLESens_ExecGatttool_Run Pflanzen|C4:7C:8D:65:D4:09|read|0x38
2018.02.06 18:59:56 5: XiaomiBTLESens (Pflanzen) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b C4:7C:8D:65:D4:09 --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.02.06 19:00:37 5: XiaomiBTLESens (Pflanzen) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)
2018.02.06 19:00:37 5: XiaomiBTLESens (Pflanzen) - ExecGatttool_Run: call gatttool with command gatttool -i hci0 -b C4:7C:8D:65:D4:09 --char-read -a 0x38 2>&1 /dev/null and loop 1
2018.02.06 19:00:56 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 3967
2018.02.06 19:00:56 4: XiaomiBTLESens (Pflanzen) - WriteReadings: Readings were written
2018.02.06 19:00:56 4: XiaomiBTLESens (Pflanzen) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
Internals:
BTMAC C4:7C:8D:65:D4:09
DEF C4:7C:8D:65:D4:09
INTERVAL 300
NAME Pflanzen
NOTIFYDEV global,Pflanzen
NR 412
NTFY_ORDER 50-Pflanzen
STATE error
TYPE XiaomiBTLESens
VERSION 2.0.5
loglevel 4
READINGS:
2018-02-06 21:03:51 battery ok
2018-02-06 21:03:51 batteryLevel 99
2018-02-06 21:36:18 fertility 59
2018-02-06 21:03:51 firmware 3.1.8
2018-02-06 22:02:26 lastGattError The BlockingCall Process terminated unexpectedly. Timedout
2018-02-06 21:36:18 lux 43
2018-02-06 21:36:18 moisture 25
2018-02-06 22:02:26 state error
2018-02-06 21:36:18 temperature 19.6
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1517947431.6527
updateTimestampCallBattery 2018-02-06 21:03:51
Attributes:
model flowerSens
room XiaomiBTLESens
verbose 5
Zitat von: distel am 05 Februar 2018, 20:38:04Sorry, wenn ich hier rein grätsche, aber ich hätte nen Einwand ;-)
Also wenn es seitens der Flower-Sensor-Fraktion keine Einwände gibt :)
Zitat von: oko am 07 Februar 2018, 08:03:52Du sprichst wie ich von 74_XiaomiBTLESensor in der Version 2.0.6debug10?
Sorry, wenn ich hier rein grätsche, aber ich hätte nen Einwand ;-)
Zitat von: CoolTux am 07 Februar 2018, 09:55:34Hab 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.
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.
Zitat von: distel am 07 Februar 2018, 10:28:09Ähm, jetzt wo du es erwähnst...
Du sprichst wie ich von 74_XiaomiBTLESensor in der Version 2.0.6debug10?
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??
Zitat von: CoolTux am 08 Februar 2018, 17:03:01Wunderbar. Habe die neue Version schon eingespielt und die Minus Grade werden jetzt auch angezeigt. Vielen Dank
Ok ich habe es gefixt und die aktuelle Version ist nun im Master Branch und wird auch morgen früh per SVN verteilt.
fhem> l zoldertem
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.8
loglevel 4
READINGS:
2018-02-10 11:07:04 battery ok
2018-02-10 11:07:04 batteryLevel 100
2018-02-09 08:59:59 firmware 00.00.66
2018-02-10 11:07:09 humidity 2.7
2018-02-10 11:04:47 lastGattError no data response
2018-02-10 11:07:09 state active
2018-02-10 11:07:09 temperature 5.7
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1518257224.41969
updateTimestampCallBattery 2018-02-10 11:07:04
Attributes:
interval 300
model thermoHygroSens
room XiaomiBTLESens
2018.02.10 11:06:58 4: XiaomiBTLESens (zoldertem) - Run CreateParamGatttool with mod: read
2018.02.10 11:06:58 4: BlockingCall (XiaomiBTLESens_ExecGatttool_Run): created child (2842), uses telnetPort to connect back
2018.02.10 11:06:58 5: Starting notify loop for zoldertem, 1 event(s), first is read sensor data
2018.02.10 11:06:58 5: End notify loop for zoldertem
2018.02.10 11:06:58 5: XiaomiBTLESens (zoldertem) - Read XiaomiBTLESens_ExecGatttool_Run zoldertem|4C:65:A8:D1:7D:DC|read|0x18
2018.02.10 11:06:58 4: XiaomiBTLESens (zoldertem) - stateRequestTimer: Call Request Timer
2018.02.10 11:06:58 5: End notify loop for global
2018.02.10 11:06:58 0: Featurelevel: 5.8
2018.02.10 11:06:58 0: Server started with 11 defined entities (fhem.pl:16107/2018-02-07 perl:5.024001 os:linux user:fhem pid:2835)
2018.02.10 11:06:58 4: Connection accepted from telnetPort_127.0.0.1_41396
2018.02.10 11:06:58 5: Cmd: >{BlockingRegisterTelnet($cl,1)}<
2018.02.10 11:06:58 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.10 11:06:59 4: Connection accepted from WEB_192.168.180.35_65058
2018.02.10 11:06:59 4: Connection accepted from WEB_192.168.180.35_65061
2018.02.10 11:07:00 4: WEB_192.168.180.35_65058 GET /; BUFLEN:0
2018.02.10 11:07:00 4: WEB: redirecting / to /fhem
2018.02.10 11:07:00 4: Connection accepted from WEB_192.168.180.35_65062
2018.02.10 11:07:00 4: WEB_192.168.180.35_65061 GET /fhem/pgm2/jquery.min.js; BUFLEN:0
2018.02.10 11:07:00 4: Connection accepted from WEB_192.168.180.35_65063
2018.02.10 11:07:00 4: WEB_192.168.180.35_65058 GET /fhem/pgm2/defaultCommon.css; BUFLEN:0
2018.02.10 11:07:00 4: WEB_192.168.180.35_65058 => 304 Not Modified
2018.02.10 11:07:00 4: WEB_192.168.180.35_65062 GET /fhem/images/default/icoEverything.png; BUFLEN:0
2018.02.10 11:07:00 4: WEB_192.168.180.35_65061 GET /fhem/images/default/fhemicon.png; BUFLEN:0
2018.02.10 11:07:00 4: WEB_192.168.180.35_65061 => 304 Not Modified
2018.02.10 11:07:00 4: WEB_192.168.180.35_65063 GET /fhem/pgm2/dashboard_style.css; BUFLEN:0
2018.02.10 11:07:00 4: Connection accepted from WEB_192.168.180.35_65064
2018.02.10 11:07:00 4: WEB_192.168.180.35_65058 GET /fhem/pgm2/fhemweb.js; BUFLEN:0
2018.02.10 11:07:00 4: WEB_192.168.180.35_65058 => 304 Not Modified
2018.02.10 11:07:00 4: Connection accepted from WEB_192.168.180.35_65065
2018.02.10 11:07:00 4: WEB_192.168.180.35_65064 GET /fhem/pgm2/jquery-ui.min.css; BUFLEN:0
2018.02.10 11:07:00 4: WEB_192.168.180.35_65064 => 304 Not Modified
2018.02.10 11:07:00 4: WEB_192.168.180.35_65062 GET /fhem; BUFLEN:0
2018.02.10 11:07:00 4: WEB: /fhem / RL:1388 / text/html; charset=UTF-8 / Content-Encoding: gzip
/
2018.02.10 11:07:00 4: WEB_192.168.180.35_65065 GET /fhem/pgm2/jquery-ui.min.js; BUFLEN:0
2018.02.10 11:07:00 4: WEB_192.168.180.35_65065 => 304 Not Modified
2018.02.10 11:07:00 4: WEB_192.168.180.35_65058 GET /fhem/pgm2/style.css?v=1518257209; BUFLEN:0
2018.02.10 11:07:00 4: WEB_192.168.180.35_65058 GET /fhem?XHR=1&inform=type=status;filter=;since=1518257219;fmt=JSON&fw_id=27×tamp=1518257220830; BUFLEN:0
2018.02.10 11:07:02 4: Connection closed for WEB_192.168.180.35_65058: EOF
2018.02.10 11:07:02 4: WEB_192.168.180.35_65061 GET /fhem?room=XiaomiBTLESens; BUFLEN:0
2018.02.10 11:07:02 4: WEB: /fhem?room=XiaomiBTLESens / RL:1403 / text/html; charset=UTF-8 / Content-Encoding: gzip
/
2018.02.10 11:07:04 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,64
2018.02.10 11:07:04 4: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,64
2018.02.10 11:07:04 5: Cmd: >{BlockingStart('1')}<
2018.02.10 11:07:04 5: Cmd: >{XiaomiBTLESens_ExecGatttool_Done('zoldertem|4C:65:A8:D1:7D:DC|ok|read|0x18|{"gtResult":"64 "}')}<
2018.02.10 11:07:04 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Done: gatttool return string: zoldertem|4C:65:A8:D1:7D:DC|ok|read|0x18|{"gtResult":"64 "}
2018.02.10 11:07:04 4: XiaomiBTLESens (zoldertem) - ProcessingNotification
2018.02.10 11:07:04 4: XiaomiBTLESens (zoldertem) - ProcessingNotification: handle 0x18
2018.02.10 11:07:04 4: XiaomiBTLESens (zoldertem) - Thermo/Hygro Sens Handle0x18
2018.02.10 11:07:04 1: PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 691.
2018.02.10 11:07:04 3: eval: {XiaomiBTLESens_ExecGatttool_Done('zoldertem|4C:65:A8:D1:7D:DC|ok|read|0x18|{"gtResult":"64 "}')}
2018.02.10 11:07:04 1: PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 692.
2018.02.10 11:07:04 3: eval: {XiaomiBTLESens_ExecGatttool_Done('zoldertem|4C:65:A8:D1:7D:DC|ok|read|0x18|{"gtResult":"64 "}')}
2018.02.10 11:07:04 5: Starting notify loop for zoldertem, 3 event(s), first is battery: ok
2018.02.10 11:07:04 5: createNotifyHash
2018.02.10 11:07:04 5: End notify loop for zoldertem
2018.02.10 11:07:04 4: XiaomiBTLESens (zoldertem) - WriteReadings: Readings were written
2018.02.10 11:07:04 4: XiaomiBTLESens (zoldertem) - Run CreateParamGatttool with mod: write
2018.02.10 11:07:04 4: BlockingCall (XiaomiBTLESens_ExecGatttool_Run): created child (2852), uses telnetPort to connect back
2018.02.10 11:07:04 5: Starting notify loop for zoldertem, 1 event(s), first is write sensor data
2018.02.10 11:07:04 5: End notify loop for zoldertem
2018.02.10 11:07:04 5: XiaomiBTLESens (zoldertem) - Write XiaomiBTLESens_ExecGatttool_Run zoldertem|4C:65:A8:D1:7D:DC|write|0x10|0100
2018.02.10 11:07:04 4: Connection accepted from telnetPort_127.0.0.1_41398
2018.02.10 11:07:04 5: Cmd: >{BlockingRegisterTelnet($cl,2)}<
2018.02.10 11:07:04 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: call gatttool with command 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
2018.02.10 11:07:05 4: WEB_192.168.180.35_65061 GET /fhem?XHR=1&inform=type=status;filter=room=XiaomiBTLESens;since=1518257221;fmt=JSON&fw_id=26×tamp=1518257225135; BUFLEN:0
2018.02.10 11:07:09 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 35 2e 37 20 48 3d 38 32 2e 37 00
Notification handle = 0x000e value,54 3d 35 2e 35 20 48 3d 38 34 2e 30 00
Notification handle = 0x000e value,54 3d 35 2e 38 20 48 3d 38 33 2e 30 00
Notification handle = 0x000e value,54 3d 35 2e 36 20 48 3d 38 34 2e 30 00
Notification handle = 0x000e value,54 3d 35 2e 37 20 48 3d 38 32 2e 37 00
Notification handle = 0x000e value,54 3d 35 2e 35 20 48 3d 38 34 2e 31 00
Notification handle = 0x000e value,54 3d 35 2e 37 20 48 3d 38 32 2e 39 00
Notification handle = 0x000e value,54 3d 35 2e 35 20 48 3d 38 34 2e 30 00
Notification handle = 0x000e value,54 3d 35 2e 37 20 48 3d 38 32 2e 38 00
Notification handle = 0x000e value,54 3d 35 2e 35 20 48 3d 38 34 2e 30 00
2018.02.10 11:07:09 4: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 35 2e 37 20 48 3d 38 32 2e 37 00 ,54 3d 35 2e 35 20 48 3d 38 34 2e 30 00
Notification handle = 0x000e value,54 3d 35 2e 38 20 48 3d 38 33 2e 30 00
Notification handle = 0x000e value,54 3d 35 2e 36 20 48 3d 38 34 2e 30 00
Notification handle = 0x000e value,54 3d 35 2e 37 20 48 3d 38 32 2e 37 00
Notification handle = 0x000e value,54 3d 35 2e 35 20 48 3d 38 34 2e 31 00
Notification handle = 0x000e value,54 3d 35 2e 37 20 48 3d 38 32 2e 39 00
Notification handle = 0x000e value,54 3d 35 2e 35 20 48 3d 38 34 2e 30 00
Notification handle = 0x000e value,54 3d 35 2e 37 20 48 3d 38 32 2e 38 00
Notification handle = 0x000e value,54 3d 35 2e 35 20 48 3d 38 34 2e 30 00
2018.02.10 11:07:09 5: Cmd: >{BlockingStart('2')}<
2018.02.10 11:07:09 5: Cmd: >{XiaomiBTLESens_ExecGatttool_Done('zoldertem|4C:65:A8:D1:7D:DC|ok|write|0x10|{"gtResult":"54 3d 35 2e 37 20 48 3d 38 32 2e 37 00 "}')}<
2018.02.10 11:07:09 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Done: gatttool return string: zoldertem|4C:65:A8:D1:7D:DC|ok|write|0x10|{"gtResult":"54 3d 35 2e 37 20 48 3d 38 32 2e 37 00 "}
2018.02.10 11:07:09 4: XiaomiBTLESens (zoldertem) - ProcessingNotification
2018.02.10 11:07:09 4: XiaomiBTLESens (zoldertem) - ProcessingNotification: handle 0x10
2018.02.10 11:07:09 4: XiaomiBTLESens (zoldertem) - Thermo/Hygro Sens Handle0x10
2018.02.10 11:07:09 5: Starting notify loop for zoldertem, 3 event(s), first is humidity: 2.7\000
2018.02.10 11:07:09 5: createNotifyHash
2018.02.10 11:07:09 5: End notify loop for zoldertem
fhem> l zoldertem
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.8pri1
loglevel 4
READINGS:
2018-02-10 18:51:41 battery ok
2018-02-10 18:51:41 batteryLevel 100
2018-02-09 08:59:59 firmware 00.00.66
2018-02-10 18:51:46 humidity 8.9
2018-02-10 13:13:46 lastGattError no data response
2018-02-10 18:51:46 state active
2018-02-10 18:51:46 temperature 6.9
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1518285101.49253
updateTimestampCallBattery 2018-02-10 18:51:41
Attributes:
interval 300
model thermoHygroSens
room XiaomiBTLESens
2018.02.10 18:47:54 5: Cmd: >get zoldertem sensorData<
2018.02.10 18:47:54 4: XiaomiBTLESens (zoldertem) - Run CreateParamGatttool with mod: write
2018.02.10 18:47:54 4: BlockingCall (XiaomiBTLESens_ExecGatttool_Run): created child (1290), uses telnetPort to connect back
2018.02.10 18:47:54 5: Starting notify loop for zoldertem, 1 event(s), first is write sensor data
2018.02.10 18:47:54 5: createNotifyHash
2018.02.10 18:47:54 5: End notify loop for zoldertem
2018.02.10 18:47:54 5: XiaomiBTLESens (zoldertem) - Write XiaomiBTLESens_ExecGatttool_Run zoldertem|4C:65:A8:D1:7D:DC|write|0x10|0100
2018.02.10 18:47:54 4: WEB: /fhem?detail=zoldertem&dev.getzoldertem=zoldertem&cmd.getzoldertem=get&arg.getzoldertem=sensorData&val.getzoldertem=&XHR=1&addLinks=1&fwcsrf=csrf_204325950458568&fw_id=50 / RL:20 / text/plain; charset=UTF-8 / Content-Encoding: gzip
/
2018.02.10 18:47:54 4: Connection accepted from telnetPort_127.0.0.1_36184
2018.02.10 18:47:54 5: Cmd: >{BlockingRegisterTelnet($cl,4)}<
2018.02.10 18:47:54 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: call gatttool with command - 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
2018.02.10 18:47:59 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: gatttool loop result
2018.02.10 18:47:59 1: PERL WARNING: Use of uninitialized value in split at ./FHEM/74_XiaomiBTLESens.pm line 485.
2018.02.10 18:47:59 1: PERL WARNING: Use of uninitialized value $gtResult[1] in substitution (s///) at ./FHEM/74_XiaomiBTLESens.pm line 486.
2018.02.10 18:47:59 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: call gatttool with command - 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
2018.02.10 18:48:04 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 36 2e 39 20 48 3d 37 38 2e 39 00
Notification handle = 0x000e value,54 3d 36 2e 39 20 48 3d 37 38 2e 38 00
Notification handle = 0x000e value,54 3d 36 2e 38 20 48 3d 37 38 2e 33 00
Notification handle = 0x000e value,54 3d 36 2e 38 20 48 3d 37 38 2e 37 00
Notification handle = 0x000e value,54 3d 36 2e 38 20 48 3d 37 38 2e 35 00
Notification handle = 0x000e value,54 3d 36 2e 38 20 48 3d 37 38 2e 38 00
2018.02.10 18:48:04 4: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 36 2e 39 20 48 3d 37 38 2e 39 00 ,54 3d 36 2e 39 20 48 3d 37 38 2e 38 00
Notification handle = 0x000e value,54 3d 36 2e 38 20 48 3d 37 38 2e 33 00
Notification handle = 0x000e value,54 3d 36 2e 38 20 48 3d 37 38 2e 37 00
Notification handle = 0x000e value,54 3d 36 2e 38 20 48 3d 37 38 2e 35 00
Notification handle = 0x000e value,54 3d 36 2e 38 20 48 3d 37 38 2e 38 00
2018.02.10 18:48:04 5: Cmd: >{BlockingStart('4')}<
2018.02.10 18:48:04 5: Cmd: >{XiaomiBTLESens_ExecGatttool_Done('zoldertem|4C:65:A8:D1:7D:DC|ok|write|0x10|{"gtResult":"54 3d 36 2e 39 20 48 3d 37 38 2e 39 00 "}')}<
2018.02.10 18:48:04 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Done: gatttool return string: zoldertem|4C:65:A8:D1:7D:DC|ok|write|0x10|{"gtResult":"54 3d 36 2e 39 20 48 3d 37 38 2e 39 00 "}
2018.02.10 18:48:04 4: XiaomiBTLESens (zoldertem) - ProcessingNotification
2018.02.10 18:48:04 4: XiaomiBTLESens (zoldertem) - ProcessingNotification: handle 0x10
2018.02.10 18:48:04 4: XiaomiBTLESens (zoldertem) - Thermo/Hygro Sens Handle0x10
2018.02.10 18:48:04 5: Starting notify loop for zoldertem, 3 event(s), first is humidity: 8.9\000
2018.02.10 18:48:04 5: End notify loop for zoldertem
2018.02.10 18:48:04 4: XiaomiBTLESens (zoldertem) - WriteReadings: Readings were written
2018-02-10_21:32:55 zoldertem write sensor data
2018-02-10_21:33:00 zoldertem temperature: ھɇ
2018-02-10_21:33:00 zoldertem humidity:
2018-02-10_21:33:00 zoldertem active
2018-02-10_21:34:45 zoldertem read sensor data
2018-02-10_21:34:49 zoldertem batteryLevel: 100
2018-02-10_21:34:49 zoldertem battery: ok
2018-02-10_21:34:49 zoldertem active
2018-02-10_21:34:49 zoldertem write sensor data
2018-02-10_21:34:54 zoldertem humidity: 79.8
2018-02-10_21:34:54 zoldertem temperature: 6.5
2018-02-10_21:34:54 zoldertem active
2018-02-10_21:38:03 zoldertem write sensor data
2018.02.10 21:46:09 4: XiaomiBTLESens (zoldertem) - Run CreateParamGatttool with mod: write
2018.02.10 21:46:09 4: BlockingCall (XiaomiBTLESens_ExecGatttool_Run): created child (2658), uses telnetPort to connect back
2018.02.10 21:46:09 5: Starting notify loop for zoldertem, 1 event(s), first is write sensor data
2018.02.10 21:46:09 5: End notify loop for zoldertem
2018.02.10 21:46:09 5: XiaomiBTLESens (zoldertem) - Write XiaomiBTLESens_ExecGatttool_Run zoldertem|4C:65:A8:D1:7D:DC|write|0x10|0100
2018.02.10 21:46:09 4: XiaomiBTLESens (zoldertem) - stateRequestTimer: Call Request Timer
2018.02.10 21:46:09 4: Connection accepted from telnetPort_127.0.0.1_36268
2018.02.10 21:46:09 5: Cmd: >{BlockingRegisterTelnet($cl,6)}<
2018.02.10 21:46:09 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: call gatttool with command: 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
2018.02.10 21:46:14 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: gatttool loop result
2018.02.10 21:46:14 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: call gatttool with command: 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
2018.02.10 21:46:14 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: gatttool loop result connect error,Transport endpoint is not connected (107)
2018.02.10 21:46:14 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: call gatttool with command: 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
2018.02.10 21:46:19 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.02.10 21:46:19 4: XiaomiBTLESens (zoldertem) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.02.10 21:46:19 5: Cmd: >{BlockingStart('6')}<
2018.02.10 21:46:19 5: Cmd: >{XiaomiBTLESens_ExecGatttool_Done('zoldertem|4C:65:A8:D1:7D:DC|ok|write|0x10|{"gtResult":"no data response"}')}<
2018.02.10 21:46:19 5: XiaomiBTLESens (zoldertem) - ExecGatttool_Done: gatttool return string: zoldertem|4C:65:A8:D1:7D:DC|ok|write|0x10|{"gtResult":"no data response"}
2018.02.10 21:46:19 4: XiaomiBTLESens (zoldertem) - ProcessingNotification
2018.02.10 21:46:19 4: XiaomiBTLESens (zoldertem) - ProcessingNotification: handle 0x10
2018.02.10 21:46:19 4: XiaomiBTLESens (zoldertem) - Thermo/Hygro Sens Handle0x10
2018.02.10 21:46:19 1: PERL WARNING: substr outside of string at ./FHEM/74_XiaomiBTLESens.pm line 718.
2018.02.10 21:46:19 3: eval: {XiaomiBTLESens_ExecGatttool_Done('zoldertem|4C:65:A8:D1:7D:DC|ok|write|0x10|{"gtResult":"no data response"}')}
2018.02.10 21:46:19 1: PERL WARNING: Use of uninitialized value in pack at ./FHEM/74_XiaomiBTLESens.pm line 718.
2018.02.10 21:46:19 3: eval: {XiaomiBTLESens_ExecGatttool_Done('zoldertem|4C:65:A8:D1:7D:DC|ok|write|0x10|{"gtResult":"no data response"}')}
2018.02.10 21:46:19 5: Starting notify loop for zoldertem, 3 event(s), first is temperature: ھɇ
2018.02.10 21:46:19 5: End notify loop for zoldertem
2018.02.10 21:46:19 4: XiaomiBTLESens (zoldertem) - WriteReadings: Readings were written
2018-02-11 16:27:35 XiaomiBTLESens XiaomiTemp write sensor data
2018-02-11 16:27:45 XiaomiBTLESens XiaomiTemp temperature: 23.4
2018-02-11 16:27:45 XiaomiBTLESens XiaomiTemp humidity: 42.4
2018-02-11 16:27:45 XiaomiBTLESens XiaomiTemp active
2018-02-11 16:30:54 XiaomiBTLESens XiaomiTemp write sensor data
2018-02-11 16:31:00 XiaomiBTLESens XiaomiTemp temperature: 큌
2018-02-11 16:31:00 XiaomiBTLESens XiaomiTemp humidity: 9
2018-02-11 16:31:00 XiaomiBTLESens XiaomiTemp active
018-02-11 16:32:32 XiaomiBTLESens XiaomiTemp write sensor data
2018-02-11 16:32:37 XiaomiBTLESens XiaomiTemp humidity:
2018-02-11 16:32:37 XiaomiBTLESens XiaomiTemp temperature: ھɇ
2018-02-11 16:32:37 XiaomiBTLESens XiaomiTemp active
Internals
BTMAC
xxxxxxxxx
CFGFN
DEF
xxxxxxxxx
INTERVAL
300
NAME
XiaomiTemp
NOTIFYDEV
global,XiaomiTemp
NR
256
NTFY_ORDER
50-XiaomiTemp
STATE
active
TYPE
XiaomiBTLESens
VERSION
2.0.8
loglevel
4
Readings
battery
ok
2018-02-11 16:04:33
batteryLevel
100
2018-02-11 16:04:33
devicename
MJ_HT_V1
2018-02-11 16:11:53
firmware
00.00.66
2018-02-11 16:00:00
humidity
9
2018-02-11 16:31:00
lastGattError
No route to host (113)
2018-02-11 16:12:09
state
active
2018-02-11 16:31:00
temperature
큌
2018-02-11 16:31:00
Zitat von: trinitywhm am 30 Januar 2018, 21:27:00Ich bin mittlerweile auf Stretch.
Die Antwort habe ich befürchtet. Aber ich weiß dass das der nächste sinnvolle Schritt ist.
Wir allerdings adhoc jetzt nix, melde mich wenn ich damit durch bin und ob es was gebracht hat.
Danke bis hierhin.
2018.02.20 18:10:54 5 : XiaomiBTLESens (MiTempD) - ExecGatttool_Done: gatttool return string: MiTempD|88:C6:26:8E:74:E2|ok|write|0x10|{"gtResult":"Attribute can't be written"}
2018.02.20 18:10:54 4 : XiaomiBTLESens (MiTempD) - ProcessingNotification
2018.02.20 18:10:54 4 : XiaomiBTLESens (MiTempD) - ProcessingNotification: handle 0x10
2018.02.20 18:10:54 4 : XiaomiBTLESens (MiTempD) - Thermo/Hygro Sens Handle0x10
2018-02-20 18:10:54 XiaomiBTLESens MiTempD lastGattError: charWrite faild
2018-02-20 18:10:54 XiaomiBTLESens MiTempD error
2018.02.20 18:10:54 4 : XiaomiBTLESens (MiTempD) - WriteReadings: Readings were written
2018.02.20 18:10:54 4 : XiaomiBTLESens (MiTempD) - Run CreateParamGatttool with mod: write
2018-02-20 18:10:54 XiaomiBTLESens MiTempD write sensor data
2018.02.20 18:10:54 5 : XiaomiBTLESens (MiTempD) - Write XiaomiBTLESens_ExecGatttool_Run MiTempD|88:C6:26:8E:74:E2|write|0x10|0100
2018-02-20 18:10:54 XiaomiBTLESens MiTempD active
2018.02.20 18:10:54 4 : XiaomiBTLESens (MiTempD) - WriteReadings: Readings were written
2018.02.20 18:10:54 4 : XiaomiBTLESens (MiTempD) - Run CreateParamGatttool with mod: write
2018-02-20 18:10:54 XiaomiBTLESens MiTempD write sensor data
2018.02.20 18:10:54 5 : XiaomiBTLESens (MiTempD) - Write XiaomiBTLESens_ExecGatttool_Run MiTempD|88:C6:26:8E:74:E2|write|0x10|0100
2018.02.20 18:11:04 5 : XiaomiBTLESens (MiTempD) - ExecGatttool_Done: gatttool return string: MiTempD|88:C6:26:8E:74:E2|ok|write|0x10|{"gtResult":"Attribute can't be written"}
2018.02.20 18:11:04 4 : XiaomiBTLESens (MiTempD) - ProcessingNotification
2018.02.20 18:11:04 4 : XiaomiBTLESens (MiTempD) - ProcessingNotification: handle 0x10
2018.02.20 18:11:04 4 : XiaomiBTLESens (MiTempD) - Thermo/Hygro Sens Handle0x10
2018-02-20 18:11:04 XiaomiBTLESens MiTempD lastGattError: charWrite faild
2018-02-20 18:11:04 XiaomiBTLESens MiTempD error
2018.02.20 18:11:04 4 : XiaomiBTLESens (MiTempD) - WriteReadings: Readings were written
2018.02.20 18:11:04 4 : XiaomiBTLESens (MiTempD) - Run CreateParamGatttool with mod: write
2018-02-20 18:11:04 XiaomiBTLESens MiTempD write sensor data
2018.02.20 18:11:04 5 : XiaomiBTLESens (MiTempD) - Write XiaomiBTLESens_ExecGatttool_Run MiTempD|88:C6:26:8E:74:E2|write|0x10|0100
2018-02-20 18:11:04 XiaomiBTLESens MiTempD active
2018.02.20 18:11:04 4 : XiaomiBTLESens (MiTempD) - WriteReadings: Readings were written
2018.02.20 18:11:04 4 : XiaomiBTLESens (MiTempD) - Run CreateParamGatttool with mod: write
2018-02-20 18:11:04 XiaomiBTLESens MiTempD write sensor data
2018.02.20 18:11:04 5 : XiaomiBTLESens (MiTempD) - Write XiaomiBTLESens_ExecGatttool_Run MiTempD|88:C6:26:8E:74:E2|write|0x10|0100
2018-02-20 18:11:04 XiaomiSmartHome xiaomiSH heartbeat: 34ce00fb676f
2018-02-20 18:11:04 XiaomiSmartHome xiaomiSH token: vRaOEFZZSe081gRY
Zitat von: dan21 am 20 Februar 2018, 18:14:41Hmm, das eckige hat Bluetooth? Ich dachte nicht.
das eckige Thermometer
2018.02.24 09:06:55 4: XiaomiBTLESens (WZ_Pflanze2) - Run CreateParamGatttool with mod: write
2018.02.24 09:06:55 5: XiaomiBTLESens (WZ_Pflanze2) - Write XiaomiBTLESens_ExecGatttool_Run WZ_Pflanze2|C4:7C:8D:65:BD:DA|write|0x33|A01F
2018.02.24 09:06:56 5: XiaomiBTLESens (WZ_Pflanze2) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:65:BD:DA --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 0
2018.02.24 09:06:56 5: XiaomiBTLESens (WZ_Pflanze2) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.02.24 09:06:56 5: XiaomiBTLESens (WZ_Pflanze2) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:65:BD:DA --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 1
2018.02.24 09:06:56 5: XiaomiBTLESens (WZ_Pflanze2) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.02.24 09:06:56 5: XiaomiBTLESens (WZ_Pflanze2) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:65:BD:DA --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 2
2018.02.24 09:06:56 5: XiaomiBTLESens (WZ_Pflanze2) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.02.24 09:06:56 5: XiaomiBTLESens (WZ_Pflanze2) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:65:BD:DA --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 3
2018.02.24 09:06:56 5: XiaomiBTLESens (WZ_Pflanze2) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.02.24 09:06:56 5: XiaomiBTLESens (WZ_Pflanze2) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:65:BD:DA --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 4
2018.02.24 09:06:56 5: XiaomiBTLESens (WZ_Pflanze2) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.02.24 09:06:56 4: XiaomiBTLESens (WZ_Pflanze2) - ExecGatttool_Run: gatttool result connect error,Invalid argument (22)
2018.02.24 09:06:56 5: XiaomiBTLESens (WZ_Pflanze2) - ExecGatttool_Done: gatttool return string: WZ_Pflanze2|C4:7C:8D:65:BD:DA|error|write|0x33|{"gtResult":"Invalid argument (22)"}
2018.02.24 09:06:56 4: XiaomiBTLESens (WZ_Pflanze2) - ProcessingErrors
2018.02.24 09:06:56 4: XiaomiBTLESens (WZ_Pflanze2) - WriteReadings: Readings were written
Zitat von: trinitywhm am 24 Februar 2018, 09:10:24
Guten Morgen,
ich bekomme bei einem meiner Sensoren den Error "Invalid argument (22)".
Ein Log mit verbose 5 wenn ich ein get sensorData auf dem Device mache.Code Auswählen2018.02.24 09:06:55 4: XiaomiBTLESens (WZ_Pflanze2) - Run CreateParamGatttool with mod: write
2018.02.24 09:06:55 5: XiaomiBTLESens (WZ_Pflanze2) - Write XiaomiBTLESens_ExecGatttool_Run WZ_Pflanze2|C4:7C:8D:65:BD:DA|write|0x33|A01F
2018.02.24 09:06:56 5: XiaomiBTLESens (WZ_Pflanze2) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:65:BD:DA --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 0
2018.02.24 09:06:56 5: XiaomiBTLESens (WZ_Pflanze2) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.02.24 09:06:56 5: XiaomiBTLESens (WZ_Pflanze2) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:65:BD:DA --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 1
2018.02.24 09:06:56 5: XiaomiBTLESens (WZ_Pflanze2) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.02.24 09:06:56 5: XiaomiBTLESens (WZ_Pflanze2) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:65:BD:DA --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 2
2018.02.24 09:06:56 5: XiaomiBTLESens (WZ_Pflanze2) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.02.24 09:06:56 5: XiaomiBTLESens (WZ_Pflanze2) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:65:BD:DA --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 3
2018.02.24 09:06:56 5: XiaomiBTLESens (WZ_Pflanze2) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.02.24 09:06:56 5: XiaomiBTLESens (WZ_Pflanze2) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:65:BD:DA --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 4
2018.02.24 09:06:56 5: XiaomiBTLESens (WZ_Pflanze2) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.02.24 09:06:56 4: XiaomiBTLESens (WZ_Pflanze2) - ExecGatttool_Run: gatttool result connect error,Invalid argument (22)
2018.02.24 09:06:56 5: XiaomiBTLESens (WZ_Pflanze2) - ExecGatttool_Done: gatttool return string: WZ_Pflanze2|C4:7C:8D:65:BD:DA|error|write|0x33|{"gtResult":"Invalid argument (22)"}
2018.02.24 09:06:56 4: XiaomiBTLESens (WZ_Pflanze2) - ProcessingErrors
2018.02.24 09:06:56 4: XiaomiBTLESens (WZ_Pflanze2) - WriteReadings: Readings were written
Was läuft hier schief?
Internals:
BTMAC C4:7C:8D:65:BD:DA
DEF C4:7C:8D:65:BD:DA
INTERVAL 300
NAME WZ_Pflanze2
NOTIFYDEV global,WZ_Pflanze2
NR 28
NTFY_ORDER 50-WZ_Pflanze2
STATE Feuchte: 15 / 19 / 65</br>Dünger: 350 / 302 / 2000</br>Temperatur: 15 / 19.2 / 32</br>
TYPE XiaomiBTLESens
VERSION 2.0.9
loglevel 4
Helper:
DBLOG:
battery:
DBLogging:
TIME 1519468697.33605
VALUE ok
batteryLevel:
DBLogging:
TIME 1519468697.33605
VALUE 99
fertility:
DBLogging:
TIME 1519476386.42621
VALUE 302
lux:
DBLogging:
TIME 1519476386.42621
VALUE 90
moisture:
DBLogging:
TIME 1519476386.42621
VALUE 19
state:
DBLogging:
TIME 1519476746.95788
VALUE error
temperature:
DBLogging:
TIME 1519476386.42621
VALUE 19.2
READINGS:
2018-02-24 11:38:17 battery ok
2018-02-24 11:38:17 batteryLevel 99
2018-02-24 13:46:26 fertility 302
2018-02-24 11:38:17 firmware 3.1.8
2018-02-24 14:32:21 lastGattError Invalid argument (22)
2018-02-24 13:46:26 lux 90
2018-02-24 13:46:26 moisture 19
2018-02-24 14:32:21 state error
2018-02-24 13:46:26 temperature 19.2
2018-02-24 14:32:21 uistate hungrig
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1519468697.33218
updateTimestampCallBattery 2018-02-24 11:38:17
Attributes:
DbLogExclude .*
DbLogInclude battery,batteryLevel,temperature,moisture,fertility,lux
alias Friedenslilie
event-min-interval battery:21600,batteryLevel:21600,temperature:600,moisture:600,fertility:600,lux:300
event-on-change-reading state
event-on-update-reading .*
icon hue_room_garden
maxFertility 2000
maxLux 3200
maxMoisture 65
maxTemp 32
minFertility 350
minLux 1600
minMoisture 15
minTemp 15
model flowerSens
room 20_Wohnzimmer
stateFormat {"Feuchte: ".AttrVal($name,"minMoisture","")." / ".ReadingsVal($name,"moisture","")." / ".AttrVal($name,"maxMoisture","")."</br>".
"Dünger: ".AttrVal($name,"minFertility","")." / ".ReadingsVal($name,"fertility","")." / ".AttrVal($name,"maxFertility","")."</br>".
"Temperatur: ".AttrVal($name,"minTemp","")." / ".ReadingsVal($name,"temperature","")." / ".AttrVal($name,"maxTemp","")."</br>"}
userReadings uistate {my $moist = ReadingsVal($name, "moisture",0);; my $minmoist = AttrVal($name,"minMoisture",10);; my $fert = ReadingsVal($name, "fertility",0);; my $minfert = AttrVal($name,"minFertility",50);; if ($moist < $minmoist && $fert < $minfert) {return "durstig+hungrig"} elsif ($moist < $minmoist) {return "durstig"} elsif ($fert < $minfert) {return "hungrig"} else {return "ok"}}
verbose 3
2018.02.24 14:30:14 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 6124
Zitat von: gent am 02 März 2018, 19:40:28Ohne genaue Kenntnis deiner Config ist das natürlich schwer zu sagen. Wie loggst du? Wie ist das/sind die Log Device(s) konfiguriert? Wie willst du migrieren? ...einen Automatismus gibt es nicht. Backup vorher wäre wohl angeraten!
auch meine logs zu verlieren?
Zitat von: CoolTux am 02 März 2018, 19:59:24
Ohne Dir jetzt zu Nahe zu treten und bitte nicht sauer sein, aber wenn Du fragst dann muss ich mit Nein antworten. Die Definition und alles ist ja so geblieben es hat sich nur der Type geändert. Das define wäre also an zu passen. Wenn du nicht weißt wie dann mach es bitte einfach neu. Ist besser als wenn irgendwas kaputt geht.
2018.03.18 22:18:53 4: XiaomiBTLESens (Wz_Palme) - Run CreateParamGatttool with mod: write
2018.03.18 22:18:53 5: XiaomiBTLESens (Wz_Palme) - Write XiaomiBTLESens_ExecGatttool_Run Wz_Palme|C4:7C:8D:65:C4:46|write|0x33|A01F
2018.03.18 22:18:53 5: XiaomiBTLESens (Wz_Palme) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:65:C4:46 --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 0
2018.03.18 22:18:56 5: XiaomiBTLESens (Wz_Palme) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.03.18 22:18:56 4: XiaomiBTLESens (Wz_Palme) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.03.18 22:18:56 5: XiaomiBTLESens (Wz_Palme) - ExecGatttool_Done: gatttool return string: Wz_Palme|C4:7C:8D:65:C4:46|ok|write|0x33|HASH(0x15c7040)
2018.03.18 22:18:56 4: XiaomiBTLESens (Wz_Palme) - ExecGatttool_Done: JSON error while request: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "HASH(0x15c7040)") at ./FHEM/74_XiaomiBTLESens.pm line 554.
2018.03.18 22:18:56 4: XiaomiBTLESens (Wz_Palme) - Run CreateParamGatttool with mod: read
2018.03.18 22:18:56 5: XiaomiBTLESens (Wz_Palme) - Read XiaomiBTLESens_ExecGatttool_Run Wz_Palme|C4:7C:8D:65:C4:46|read|0x35
2018.03.18 22:18:57 5: XiaomiBTLESens (Wz_Palme) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:65:C4:46 --char-read -a 0x35 2>&1 /dev/null and loop 0
2018.03.18 22:18:57 5: XiaomiBTLESens (Wz_Palme) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,ae 00 00 34 00 00 00 10 94 00 02 3c 00 fb 34 9b
2018.03.18 22:18:57 4: XiaomiBTLESens (Wz_Palme) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,ae 00 00 34 00 00 00 10 94 00 02 3c 00 fb 34 9b
2018.03.18 22:18:57 5: XiaomiBTLESens (Wz_Palme) - ExecGatttool_Done: gatttool return string: Wz_Palme|C4:7C:8D:65:C4:46|ok|read|0x35|HASH(0x15c7040)
2018.03.18 22:18:57 4: XiaomiBTLESens (Wz_Palme) - ExecGatttool_Done: JSON error while request: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "HASH(0x15c7040)") at ./FHEM/74_XiaomiBTLESens.pm line 554.
Internals:
BTMAC C4:7C:8D:65:C4:46
DEF C4:7C:8D:65:C4:46
INTERVAL 7200
NAME Wz_Palme
NOTIFYDEV global,Wz_Palme
NR 22
NTFY_ORDER 50-Wz_Palme
STATE active
TYPE XiaomiBTLESens
VERSION 2.0.10
loglevel 4
READINGS:
2018-03-18 20:21:03 battery low
2018-03-18 20:21:03 batteryLevel 0
2018-03-18 22:20:46 fertility 0
2018-03-18 20:21:03 firmware -30.-30.-30
2018-03-04 03:52:09 lastGattError charWrite faild
2018-03-18 22:20:46 lux 0
2018-03-18 22:20:46 moisture 0
2018-03-18 22:20:46 state active
2018-03-18 22:20:46 temperature 0
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1521400863.01321
updateTimestampCallBattery 2018-03-18 20:21:03
Attributes:
event-on-change-reading state
event-on-update-reading .*
fp_Grundriss 352,922,3,moisture,Palme
interval 7200
minMoisture 10
model flowerSens
room Wohnen
verbose 0
Zitat von: hga am 19 März 2018, 06:21:29
Moin,
Habe auch Probleme mit der neuen Version, bin deswegen auf die ältere Version zurückgegangen ...
2018.03.19 11:59:12 5: Cmd: >get FlowerSens_A4 sensorData<
2018.03.19 11:59:12 4: XiaomiBTLESens (FlowerSens_A4) - Run CreateParamGatttool with mod: write
2018.03.19 11:59:12 4: BlockingCall (XiaomiBTLESens_ExecGatttool_Run): created child (15290), uses telnetPort to connect back
2018.03.19 11:59:12 5: Starting notify loop for FlowerSens_A4, 1 event(s), first is write sensor data
2018.03.19 11:59:12 5: createNotifyHash
2018.03.19 11:59:12 5: rg_flower: no longer visible, ignoring notify
2018.03.19 11:59:12 5: End notify loop for FlowerSens_A4
2018.03.19 11:59:12 5: XiaomiBTLESens (FlowerSens_A4) - Write XiaomiBTLESens_ExecGatttool_Run FlowerSens_A4|C4:7C:8D:64:47:A4|write|0x33|A01F
2018.03.19 11:59:12 4: Connection accepted from telnetPort_127.0.0.1_39620
2018.03.19 11:59:12 5: Cmd: >{BlockingRegisterTelnet($cl,43)}<
2018.03.19 11:59:13 5: XiaomiBTLESens (FlowerSens_A4) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:64:47:A4 --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 0
2018.03.19 11:59:15 5: Cmd: >get FlowerSens_A4 sensorData<
2018.03.19 11:59:15 5: Starting notify loop for FlowerSens_A4, 2 event(s), first is lastGattError: charWrite faild
2018.03.19 11:59:15 5: rg_flower: not on any display, ignoring notify
2018.03.19 11:59:15 5: End notify loop for FlowerSens_A4
2018.03.19 11:59:15 4: XiaomiBTLESens (FlowerSens_A4) - WriteReadings: Readings were written
2018.03.19 11:59:15 5: XiaomiBTLESens (FlowerSens_A4) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.03.19 11:59:15 4: XiaomiBTLESens (FlowerSens_A4) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.03.19 11:59:15 5: Cmd: >{BlockingStart('43')}<
2018.03.19 11:59:15 5: Cmd: >{XiaomiBTLESens_ExecGatttool_Done('FlowerSens_A4|C4:7C:8D:64:47:A4|ok|write|0x33|HASH(0x28806b0)')}<
2018.03.19 11:59:15 5: XiaomiBTLESens (FlowerSens_A4) - ExecGatttool_Done: gatttool return string: FlowerSens_A4|C4:7C:8D:64:47:A4|ok|write|0x33|HASH(0x28806b0)
2018.03.19 11:59:15 4: XiaomiBTLESens (FlowerSens_A4) - ExecGatttool_Done: JSON error while request: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "HASH(0x28806b0)") at ./FHEM/74_XiaomiBTLESens.pm line 554.
2018.03.19 11:59:15 4: XiaomiBTLESens (FlowerSens_A4) - Run CreateParamGatttool with mod: read
2018.03.19 11:59:15 4: BlockingCall (XiaomiBTLESens_ExecGatttool_Run): created child (15299), uses telnetPort to connect back
2018.03.19 11:59:15 5: Starting notify loop for FlowerSens_A4, 1 event(s), first is read sensor data
2018.03.19 11:59:15 5: rg_flower: not on any display, ignoring notify
2018.03.19 11:59:15 5: End notify loop for FlowerSens_A4
2018.03.19 11:59:15 5: XiaomiBTLESens (FlowerSens_A4) - Read XiaomiBTLESens_ExecGatttool_Run FlowerSens_A4|C4:7C:8D:64:47:A4|read|0x35
2018.03.19 11:59:15 4: Connection accepted from telnetPort_127.0.0.1_39622
2018.03.19 11:59:15 5: Cmd: >{BlockingRegisterTelnet($cl,44)}<
2018.03.19 11:59:16 5: XiaomiBTLESens (FlowerSens_A4) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:64:47:A4 --char-read -a 0x35 2>&1 /dev/null and loop 0
2018.03.19 11:59:16 5: XiaomiBTLESens (FlowerSens_A4) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,c3 00 00 f6 06 00 00 11 66 00 02 3c 00 fb 34 9b
2018.03.19 11:59:16 4: XiaomiBTLESens (FlowerSens_A4) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,c3 00 00 f6 06 00 00 11 66 00 02 3c 00 fb 34 9b
2018.03.19 11:59:16 5: Cmd: >{BlockingStart('44')}<
2018.03.19 11:59:16 5: Cmd: >{XiaomiBTLESens_ExecGatttool_Done('FlowerSens_A4|C4:7C:8D:64:47:A4|ok|read|0x35|HASH(0x28806b0)')}<
2018.03.19 11:59:16 5: XiaomiBTLESens (FlowerSens_A4) - ExecGatttool_Done: gatttool return string: FlowerSens_A4|C4:7C:8D:64:47:A4|ok|read|0x35|HASH(0x28806b0)
2018.03.19 11:59:16 4: XiaomiBTLESens (FlowerSens_A4) - ExecGatttool_Done: JSON error while request: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "HASH(0x28806b0)") at ./FHEM/74_XiaomiBTLESens.pm line 554.
2018.03.19 11:59:16 4: XiaomiBTLESens (FlowerSens_A4) - ProcessingNotification
2018.03.19 11:59:16 4: XiaomiBTLESens (FlowerSens_A4) - ProcessingNotification: handle 0x35
2018.03.19 11:59:16 4: XiaomiBTLESens (FlowerSens_A4) - FlowerSens Handle0x35
2018.03.19 11:59:16 5: Starting notify loop for FlowerSens_A4, 5 event(s), first is moisture: 0
2018.03.19 11:59:16 5: rg_flower: not on any display, ignoring notify
2018.03.19 11:59:16 5: End notify loop for FlowerSens_A4
2018.03.19 11:59:16 5: Starting notify loop for FlowerSens_A4, 1 event(s), first is minMoisture low
2018.03.19 11:59:16 5: rg_flower: not on any display, ignoring notify
2018.03.19 11:59:16 5: End notify loop for FlowerSens_A4
2018.03.19 11:59:16 4: XiaomiBTLESens (FlowerSens_A4) - WriteReadings: Readings were written
2018.03.19 12:48:03 0: Server shutdown
2018.03.19 12:48:13 1: PERL WARNING: Backslash found where operator expected at ./FHEM/74_XiaomiBTLESens.pm line 852, near "encode_json \"
2018.03.19 12:48:13 1: PERL WARNING: (Do you need to predeclare encode_json?)
2018.03.19 12:48:13 3: XiaomiBTLESens (Wz_Palme) - defined with BTMAC C4:7C:8D:65:C4:46
2018.03.19 12:48:13 3: XiaomiBTLESens (Wz_Palme) - set interval to 7200
2018.03.19 12:48:20 4: XiaomiBTLESens (Wz_Palme) - Run CreateParamGatttool with mod: read
2018.03.19 12:48:20 5: XiaomiBTLESens (Wz_Palme) - Read XiaomiBTLESens_ExecGatttool_Run Wz_Palme|C4:7C:8D:65:C4:46|read|0x38
2018.03.19 12:48:20 4: XiaomiBTLESens (Wz_Palme) - stateRequestTimer: Call Request Timer
2018.03.19 12:48:27 0: Server started with 117 defined entities (fhem.pl:16426/2018-03-17 perl:5.024001 os:linux user:fhem pid:498)
Creating socket: Invalid argument
2018.03.19 12:48:28 5: XiaomiBTLESens (Wz_Palme) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:65:C4:46 --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.03.19 12:48:30 5: XiaomiBTLESens (Wz_Palme) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,63 27 33 2e 31 2e 38
2018.03.19 12:48:30 4: XiaomiBTLESens (Wz_Palme) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,63 27 33 2e 31 2e 38
2018.03.19 12:50:19 1: PERL WARNING: Backslash found where operator expected at ./FHEM/74_XiaomiBTLESens.pm line 852, near "encode_json \"
2018.03.19 12:50:19 1: PERL WARNING: (Do you need to predeclare encode_json?)
2018.03.19 12:50:19 3: XiaomiBTLESens (Wz_Palme) - defined with BTMAC C4:7C:8D:65:C4:46
2018.03.19 12:50:19 3: XiaomiBTLESens (Wz_Palme) - set interval to 7200
2018.03.19 12:50:24 4: XiaomiBTLESens (Wz_Palme) - Run CreateParamGatttool with mod: read
2018.03.19 12:50:24 5: XiaomiBTLESens (Wz_Palme) - Read XiaomiBTLESens_ExecGatttool_Run Wz_Palme|C4:7C:8D:65:C4:46|read|0x38
2018.03.19 12:50:24 4: XiaomiBTLESens (Wz_Palme) - stateRequestTimer: Call Request Timer
2018.03.19 12:50:31 0: Server started with 117 defined entities (fhem.pl:16426/2018-03-17 perl:5.024001 os:linux user:fhem pid:1591)
2018.03.19 12:50:31 5: XiaomiBTLESens (Wz_Palme) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:65:C4:46 --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.03.19 12:50:36 5: XiaomiBTLESens (Wz_Palme) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,63 27 33 2e 31 2e 38
2018.03.19 12:50:36 4: XiaomiBTLESens (Wz_Palme) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,63 27 33 2e 31 2e 38
2018.03.19 12:50:36 5: XiaomiBTLESens (Wz_Palme) - ExecGatttool_Done: gatttool return string: Wz_Palme|C4:7C:8D:65:C4:46|ok|read|0x38|HASH(0x117a2e0)
2018.03.19 12:50:36 4: XiaomiBTLESens (Wz_Palme) - ExecGatttool_Done: JSON error while request: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "HASH(0x117a2e0)") at ./FHEM/74_XiaomiBTLESens.pm line 554.
2018.03.19 12:50:36 4: XiaomiBTLESens (Wz_Palme) - ProcessingNotification
2018.03.19 12:50:36 4: XiaomiBTLESens (Wz_Palme) - ProcessingNotification: handle 0x38
2018.03.19 12:50:36 4: XiaomiBTLESens (Wz_Palme) - FlowerSens Handle0x38
2018.03.19 12:50:36 1: PERL WARNING: Use of uninitialized value $notification in split at ./FHEM/74_XiaomiBTLESens.pm line 655.
2018.03.19 12:50:36 3: eval: {XiaomiBTLESens_ExecGatttool_Done('Wz_Palme|C4:7C:8D:65:C4:46|ok|read|0x38|HASH(0x117a2e0)')}
2018.03.19 12:50:36 1: PERL WARNING: Use of uninitialized value $dataBatFw[0] in concatenation (.) or string at ./FHEM/74_XiaomiBTLESens.pm line 657.
2018.03.19 12:50:36 3: eval: {XiaomiBTLESens_ExecGatttool_Done('Wz_Palme|C4:7C:8D:65:C4:46|ok|read|0x38|HASH(0x117a2e0)')}
2018.03.19 12:50:36 1: PERL WARNING: Use of uninitialized value $dataBatFw[0] in concatenation (.) or string at ./FHEM/74_XiaomiBTLESens.pm line 658.
2018.03.19 12:50:36 3: eval: {XiaomiBTLESens_ExecGatttool_Done('Wz_Palme|C4:7C:8D:65:C4:46|ok|read|0x38|HASH(0x117a2e0)')}
2018.03.19 12:50:36 1: PERL WARNING: Use of uninitialized value $dataBatFw[2] in subtraction (-) at ./FHEM/74_XiaomiBTLESens.pm line 659.
2018.03.19 12:50:36 3: eval: {XiaomiBTLESens_ExecGatttool_Done('Wz_Palme|C4:7C:8D:65:C4:46|ok|read|0x38|HASH(0x117a2e0)')}
2018.03.19 12:50:36 1: PERL WARNING: Use of uninitialized value $dataBatFw[4] in subtraction (-) at ./FHEM/74_XiaomiBTLESens.pm line 659.
2018.03.19 12:50:36 3: eval: {XiaomiBTLESens_ExecGatttool_Done('Wz_Palme|C4:7C:8D:65:C4:46|ok|read|0x38|HASH(0x117a2e0)')}
2018.03.19 12:50:36 1: PERL WARNING: Use of uninitialized value $dataBatFw[6] in subtraction (-) at ./FHEM/74_XiaomiBTLESens.pm line 659.
2018.03.19 12:50:36 3: eval: {XiaomiBTLESens_ExecGatttool_Done('Wz_Palme|C4:7C:8D:65:C4:46|ok|read|0x38|HASH(0x117a2e0)')}
2018.03.19 12:50:36 4: XiaomiBTLESens (Wz_Palme) - WriteReadings: Readings were written
2018.03.19 12:50:36 4: XiaomiBTLESens (Wz_Palme) - Run CreateParamGatttool with mod: write
2018.03.19 12:50:36 5: XiaomiBTLESens (Wz_Palme) - Write XiaomiBTLESens_ExecGatttool_Run Wz_Palme|C4:7C:8D:65:C4:46|write|0x33|A01F
2018.03.19 12:50:36 5: XiaomiBTLESens (Wz_Palme) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:65:C4:46 --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 0
2018.03.19 12:50:36 5: XiaomiBTLESens (Wz_Palme) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.03.19 12:50:36 4: XiaomiBTLESens (Wz_Palme) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.03.19 12:50:36 5: XiaomiBTLESens (Wz_Palme) - ExecGatttool_Done: gatttool return string: Wz_Palme|C4:7C:8D:65:C4:46|ok|write|0x33|HASH(0x117a2e0)
2018.03.19 12:50:36 4: XiaomiBTLESens (Wz_Palme) - ExecGatttool_Done: JSON error while request: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "HASH(0x117a2e0)") at ./FHEM/74_XiaomiBTLESens.pm line 554.
2018.03.19 12:50:36 4: XiaomiBTLESens (Wz_Palme) - Run CreateParamGatttool with mod: read
2018.03.19 12:50:36 5: XiaomiBTLESens (Wz_Palme) - Read XiaomiBTLESens_ExecGatttool_Run Wz_Palme|C4:7C:8D:65:C4:46|read|0x35
2018.03.19 12:50:36 5: XiaomiBTLESens (Wz_Palme) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:65:C4:46 --char-read -a 0x35 2>&1 /dev/null and loop 0
2018.03.19 12:50:36 5: XiaomiBTLESens (Wz_Palme) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,b0 00 00 ee 00 00 00 10 8a 00 02 3c 00 fb 34 9b
2018.03.19 12:50:36 4: XiaomiBTLESens (Wz_Palme) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,b0 00 00 ee 00 00 00 10 8a 00 02 3c 00 fb 34 9b
2018.03.19 12:50:36 5: XiaomiBTLESens (Wz_Palme) - ExecGatttool_Done: gatttool return string: Wz_Palme|C4:7C:8D:65:C4:46|ok|read|0x35|HASH(0x117a2e0)
2018.03.19 12:50:36 4: XiaomiBTLESens (Wz_Palme) - ExecGatttool_Done: JSON error while request: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "HASH(0x117a2e0)") at ./FHEM/74_XiaomiBTLESens.pm line 554.
2018.03.19 12:50:36 4: XiaomiBTLESens (Wz_Palme) - ProcessingNotification
2018.03.19 12:50:36 4: XiaomiBTLESens (Wz_Palme) - ProcessingNotification: handle 0x35
2018.03.19 12:50:36 4: XiaomiBTLESens (Wz_Palme) - FlowerSens Handle0x35
2018.03.19 12:50:36 1: PERL WARNING: Use of uninitialized value $notification in split at ./FHEM/74_XiaomiBTLESens.pm line 676.
2018.03.19 12:50:36 3: eval: {XiaomiBTLESens_ExecGatttool_Done('Wz_Palme|C4:7C:8D:65:C4:46|ok|read|0x35|HASH(0x117a2e0)')}
2018.03.19 12:50:36 1: PERL WARNING: Use of uninitialized value $dataSensor[0] in string ne at ./FHEM/74_XiaomiBTLESens.pm line 679.
2018.03.19 12:50:36 3: eval: {XiaomiBTLESens_ExecGatttool_Done('Wz_Palme|C4:7C:8D:65:C4:46|ok|read|0x35|HASH(0x117a2e0)')}
2018.03.19 12:50:36 1: PERL WARNING: Use of uninitialized value $dataSensor[1] in string ne at ./FHEM/74_XiaomiBTLESens.pm line 679.
2018.03.19 12:50:36 3: eval: {XiaomiBTLESens_ExecGatttool_Done('Wz_Palme|C4:7C:8D:65:C4:46|ok|read|0x35|HASH(0x117a2e0)')}
2018.03.19 12:50:36 1: PERL WARNING: Use of uninitialized value $dataSensor[2] in string ne at ./FHEM/74_XiaomiBTLESens.pm line 679.
2018.03.19 12:50:36 3: eval: {XiaomiBTLESens_ExecGatttool_Done('Wz_Palme|C4:7C:8D:65:C4:46|ok|read|0x35|HASH(0x117a2e0)')}
2018.03.19 12:50:36 1: PERL WARNING: Use of uninitialized value $dataSensor[3] in string ne at ./FHEM/74_XiaomiBTLESens.pm line 679.
2018.03.19 12:50:36 3: eval: {XiaomiBTLESens_ExecGatttool_Done('Wz_Palme|C4:7C:8D:65:C4:46|ok|read|0x35|HASH(0x117a2e0)')}
2018.03.19 12:50:36 1: PERL WARNING: Use of uninitialized value $dataSensor[4] in string ne at ./FHEM/74_XiaomiBTLESens.pm line 679.
2018.03.19 12:50:36 3: eval: {XiaomiBTLESens_ExecGatttool_Done('Wz_Palme|C4:7C:8D:65:C4:46|ok|read|0x35|HASH(0x117a2e0)')}
2018.03.19 12:50:36 1: PERL WARNING: Use of uninitialized value $dataSensor[5] in string ne at ./FHEM/74_XiaomiBTLESens.pm line 679.
2018.03.19 12:50:36 3: eval: {XiaomiBTLESens_ExecGatttool_Done('Wz_Palme|C4:7C:8D:65:C4:46|ok|read|0x35|HASH(0x117a2e0)')}
2018.03.19 12:50:36 1: PERL WARNING: Use of uninitialized value $dataSensor[1] in string eq at ./FHEM/74_XiaomiBTLESens.pm line 682.
2018.03.19 12:50:36 3: eval: {XiaomiBTLESens_ExecGatttool_Done('Wz_Palme|C4:7C:8D:65:C4:46|ok|read|0x35|HASH(0x117a2e0)')}
2018.03.19 12:50:36 1: PERL WARNING: Use of uninitialized value $dataSensor[1] in concatenation (.) or string at ./FHEM/74_XiaomiBTLESens.pm line 685.
2018.03.19 12:50:36 3: eval: {XiaomiBTLESens_ExecGatttool_Done('Wz_Palme|C4:7C:8D:65:C4:46|ok|read|0x35|HASH(0x117a2e0)')}
2018.03.19 12:50:36 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/74_XiaomiBTLESens.pm line 685.
2018.03.19 12:50:36 3: eval: {XiaomiBTLESens_ExecGatttool_Done('Wz_Palme|C4:7C:8D:65:C4:46|ok|read|0x35|HASH(0x117a2e0)')}
2018.03.19 12:50:36 1: PERL WARNING: Use of uninitialized value $dataSensor[4] in concatenation (.) or string at ./FHEM/74_XiaomiBTLESens.pm line 688.
2018.03.19 12:50:36 3: eval: {XiaomiBTLESens_ExecGatttool_Done('Wz_Palme|C4:7C:8D:65:C4:46|ok|read|0x35|HASH(0x117a2e0)')}
2018.03.19 12:50:36 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/74_XiaomiBTLESens.pm line 688.
2018.03.19 12:50:36 3: eval: {XiaomiBTLESens_ExecGatttool_Done('Wz_Palme|C4:7C:8D:65:C4:46|ok|read|0x35|HASH(0x117a2e0)')}
2018.03.19 12:50:36 1: PERL WARNING: Use of uninitialized value $dataSensor[7] in concatenation (.) or string at ./FHEM/74_XiaomiBTLESens.pm line 689.
2018.03.19 12:50:36 3: eval: {XiaomiBTLESens_ExecGatttool_Done('Wz_Palme|C4:7C:8D:65:C4:46|ok|read|0x35|HASH(0x117a2e0)')}
2018.03.19 12:50:36 1: PERL WARNING: Use of uninitialized value $dataSensor[9] in concatenation (.) or string at ./FHEM/74_XiaomiBTLESens.pm line 690.
2018.03.19 12:50:36 3: eval: {XiaomiBTLESens_ExecGatttool_Done('Wz_Palme|C4:7C:8D:65:C4:46|ok|read|0x35|HASH(0x117a2e0)')}
2018.03.19 12:50:36 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/74_XiaomiBTLESens.pm line 690.
2018.03.19 12:50:36 3: eval: {XiaomiBTLESens_ExecGatttool_Done('Wz_Palme|C4:7C:8D:65:C4:46|ok|read|0x35|HASH(0x117a2e0)')}
2018.03.19 12:50:36 4: XiaomiBTLESens (Wz_Palme) - WriteReadings: Readings were written
Internals:
BTMAC C4:7C:8D:65:C4:46
DEF C4:7C:8D:65:C4:46
INTERVAL 7200
NAME Wz_Palme
NOTIFYDEV global,Wz_Palme
NR 22
NTFY_ORDER 50-Wz_Palme
STATE active
TYPE XiaomiBTLESens
VERSION 2.0.11
loglevel 4
READINGS:
2018-03-19 13:42:37 battery ok
2018-03-19 13:42:37 batteryLevel 99
2018-03-19 13:43:08 fertility 135
2018-03-19 13:42:37 firmware 3.1.8
2018-03-04 03:52:09 lastGattError charWrite faild
2018-03-19 13:43:08 lux 285
2018-03-19 13:43:08 moisture 16
2018-03-19 13:43:08 state active
2018-03-19 13:43:08 temperature 17.7
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1521463357.96292
updateTimestampCallBattery 2018-03-19 13:42:37
2018.03.30 12:59:20 1 : Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 25562
2018-03-30 12:59:20 XiaomiBTLESens Drakena unreachable
2018-03-30 12:59:20 XiaomiBTLESens Drakena lastGattError: The BlockingCall Process terminated unexpectedly. Timedout
2018-03-30 12:59:20 XiaomiBTLESens Drakena error
2018-03-30 13:00:25 XiaomiBTLESens Gummibaum read sensor data
2018-03-30 13:00:25 XiaomiBTLESens Gummibaum lastGattError: Invalid argument (22)
2018-03-30 13:00:25 XiaomiBTLESens Gummibaum error
Internals:
BTMAC C4:7C:8D:66:16:30
CFGFN
DEF C4:7C:8D:66:16:30
INTERVAL 300
NAME Drakena
NOTIFYDEV global,Drakena
NR 44811
NTFY_ORDER 50-Drakena
STATE error
TYPE XiaomiBTLESens
VERSION 2.0.12
loglevel 4
READINGS:
2018-03-30 13:05:16 lastGattError The BlockingCall Process terminated unexpectedly. Timedout
2018-03-30 13:05:16 state error
helper:
CallBattery 0
CallSensDataCounter 0
Attributes:
model flowerSens
room XiaomiBTLESens
Internals:
BTMAC C4:7C:8D:62:42:6F
CFGFN
DEF C4:7C:8D:62:42:6F
INTERVAL 300
NAME Gummibaum
NOTIFYDEV global,Gummibaum
NR 43149
NTFY_ORDER 50-Gummibaum
STATE error
TYPE XiaomiBTLESens
VERSION 2.0.12
loglevel 4
READINGS:
2018-03-30 13:06:48 lastGattError Invalid argument (22)
2018-03-30 13:06:48 state error
helper:
CallBattery 0
CallSensDataCounter 0
Attributes:
model flowerSens
room XiaomiBTLESens
2018.03.30 20:19:20 4: XiaomiBTLESens (Drakena) - Run CreateParamGatttool with mod: read
2018.03.30 20:19:20 5: XiaomiBTLESens (Drakena) - Read XiaomiBTLESens_ExecGatttool_Run Drakena|C4:7C:8D:66:16:30|read|0x38
2018.03.30 20:19:20 4: XiaomiBTLESens (Drakena) - stateRequestTimer: Call Request Timer
2018.03.30 20:19:21 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.03.30 20:20:01 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)
2018.03.30 20:20:01 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-read -a 0x38 2>&1 /dev/null and loop 1
2018.03.30 20:20:01 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.03.30 20:20:01 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-read -a 0x38 2>&1 /dev/null and loop 2
2018.03.30 20:20:41 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)
2018.03.30 20:20:41 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-read -a 0x38 2>&1 /dev/null and loop 3
2018.03.30 20:20:42 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.03.30 20:20:42 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-read -a 0x38 2>&1 /dev/null and loop 4
2018.03.30 20:20:43 4: XiaomiBTLESens (Drakena) - Run CreateParamGatttool with mod: read
2018.03.30 20:20:43 5: XiaomiBTLESens (Drakena) - Read XiaomiBTLESens_ExecGatttool_Run Drakena|C4:7C:8D:66:16:30|read|0x38
2018.03.30 20:20:43 4: XiaomiBTLESens (Drakena) - stateRequestTimer: Call Request Timer
2018.03.30 20:20:50 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 4163
2018.03.30 20:20:50 4: XiaomiBTLESens (Drakena) - WriteReadings: Readings were written
2018.03.30 20:20:50 4: XiaomiBTLESens (Drakena) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
2018.03.30 20:21:44 4: XiaomiBTLESens (Gummibaum) - Run CreateParamGatttool with mod: read
2018.03.30 20:21:44 5: XiaomiBTLESens (Gummibaum) - Read XiaomiBTLESens_ExecGatttool_Run Gummibaum|C4:7C:8D:62:42:6F|read|0x38
2018.03.30 20:21:44 4: XiaomiBTLESens (Gummibaum) - stateRequestTimer: Call Request Timer
2018.03.30 20:21:44 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.03.30 20:21:44 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.03.30 20:21:44 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 1
2018.03.30 20:21:44 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.03.30 20:21:44 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 2
2018.03.30 20:21:44 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.03.30 20:21:44 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 3
2018.03.30 20:21:44 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.03.30 20:21:44 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 4
2018.03.30 20:21:44 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.03.30 20:21:44 4: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool result connect error,Invalid argument (22)
2018.03.30 20:21:44 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Done: gatttool return string: Gummibaum|C4:7C:8D:62:42:6F|error|read|0x38|{"gtResult":"Invalid argument (22)"}
2018.03.30 20:21:44 4: XiaomiBTLESens (Gummibaum) - ProcessingErrors
2018.03.30 20:21:44 4: XiaomiBTLESens (Gummibaum) - WriteReadings: Readings were written
2018.03.30 20:22:45 4: XiaomiBTLESens (Gummibaum) - Run CreateParamGatttool with mod: read
2018.03.30 20:22:45 5: XiaomiBTLESens (Gummibaum) - Read XiaomiBTLESens_ExecGatttool_Run Gummibaum|C4:7C:8D:62:42:6F|read|0x38
2018.03.30 20:22:45 4: XiaomiBTLESens (Gummibaum) - stateRequestTimer: Call Request Timer
2018.03.30 20:22:45 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.03.30 20:22:45 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.03.30 20:22:45 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 1
2018.03.30 20:22:45 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.03.30 20:22:45 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 2
2018.03.30 20:22:45 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.03.30 20:22:45 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 3
2018.03.30 20:22:45 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.03.30 20:22:45 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 4
2018.03.30 20:22:46 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.03.30 20:22:46 4: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool result connect error,Invalid argument (22)
2018.03.30 20:22:46 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Done: gatttool return string: Gummibaum|C4:7C:8D:62:42:6F|error|read|0x38|{"gtResult":"Invalid argument (22)"}
2018.03.30 20:22:46 4: XiaomiBTLESens (Gummibaum) - ProcessingErrors
2018.03.30 20:22:46 4: XiaomiBTLESens (Gummibaum) - WriteReadings: Readings were written
2018.03.30 20:24:45 4: XiaomiBTLESens (Drakena) - Run CreateParamGatttool with mod: read
2018.03.30 20:24:46 5: XiaomiBTLESens (Drakena) - Read XiaomiBTLESens_ExecGatttool_Run Drakena|C4:7C:8D:66:16:30|read|0x38
2018.03.30 20:24:46 4: XiaomiBTLESens (Drakena) - stateRequestTimer: Call Request Timer
2018.03.30 20:24:46 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.03.30 20:49:20 4: XiaomiBTLESens (Gummibaum) - Run CreateParamGatttool with mod: read
2018.03.30 20:49:20 5: XiaomiBTLESens (Gummibaum) - Read XiaomiBTLESens_ExecGatttool_Run Gummibaum|C4:7C:8D:62:42:6F|read|0x38
2018.03.30 20:49:20 4: XiaomiBTLESens (Gummibaum) - stateRequestTimer: Call Request Timer
2018.03.30 20:49:20 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.03.30 20:49:47 4: XiaomiBTLESens (Drakena) - Run CreateParamGatttool with mod: write
2018.03.30 20:49:47 5: XiaomiBTLESens (Drakena) - Write XiaomiBTLESens_ExecGatttool_Run Drakena|C4:7C:8D:66:16:30|write|0x33|A01F
2018.03.30 20:49:47 4: XiaomiBTLESens (Drakena) - stateRequestTimer: Call Request Timer
2018.03.30 20:49:47 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 0
2018.03.30 20:49:51 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.03.30 20:49:51 4: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.03.30 20:49:51 5: XiaomiBTLESens (Drakena) - ExecGatttool_Done: gatttool return string: Drakena|C4:7C:8D:66:16:30|ok|write|0x33|{"gtResult":"no data response"}
2018.03.30 20:49:51 4: XiaomiBTLESens (Drakena) - Run CreateParamGatttool with mod: read
2018.03.30 20:49:51 5: XiaomiBTLESens (Drakena) - Read XiaomiBTLESens_ExecGatttool_Run Drakena|C4:7C:8D:66:16:30|read|0x35
2018.03.30 20:49:51 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-read -a 0x35 2>&1 /dev/null and loop 0
2018.03.30 20:49:51 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,d1 00 00 97 00 00 00 0e 7f 00 02 3c 00 fb 34 9b
2018.03.30 20:49:51 4: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,d1 00 00 97 00 00 00 0e 7f 00 02 3c 00 fb 34 9b
2018.03.30 20:49:51 5: XiaomiBTLESens (Drakena) - ExecGatttool_Done: gatttool return string: Drakena|C4:7C:8D:66:16:30|ok|read|0x35|{"gtResult":"d1 00 00 97 00 00 00 0e 7f 00 02 3c 00 fb 34 9b "}
2018.03.30 20:49:51 4: XiaomiBTLESens (Drakena) - ProcessingNotification
2018.03.30 20:49:51 4: XiaomiBTLESens (Drakena) - ProcessingNotification: handle 0x35
2018.03.30 20:49:51 4: XiaomiBTLESens (Drakena) - FlowerSens Handle0x35
2018.03.30 20:49:51 4: XiaomiBTLESens (Drakena) - WriteReadings: Readings were written
2018.03.30 20:50:01 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)
2018.03.30 20:50:01 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 1
2018.03.30 20:50:01 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.03.30 20:50:01 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 2
2018.03.30 20:50:01 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.03.30 20:50:01 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 3
2018.03.30 20:50:01 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.03.30 20:50:01 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 4
2018.03.30 20:50:01 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.03.30 20:50:01 4: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool result connect error,Invalid argument (22)
2018.03.30 20:50:01 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Done: gatttool return string: Gummibaum|C4:7C:8D:62:42:6F|error|read|0x38|{"gtResult":"Invalid argument (22)"}
2018.03.30 20:50:01 4: XiaomiBTLESens (Gummibaum) - ProcessingErrors
2018.03.30 20:50:01 4: XiaomiBTLESens (Gummibaum) - WriteReadings: Readings were written
2018.03.30 20:55:25 4: XiaomiBTLESens (Gummibaum) - Run CreateParamGatttool with mod: read
2018.03.30 20:55:25 5: XiaomiBTLESens (Gummibaum) - Read XiaomiBTLESens_ExecGatttool_Run Gummibaum|C4:7C:8D:62:42:6F|read|0x38
2018.03.30 20:55:25 4: XiaomiBTLESens (Gummibaum) - stateRequestTimer: Call Request Timer
2018.03.30 20:55:26 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.03.30 20:55:26 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.03.30 20:55:26 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 1
2018.03.30 20:55:26 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.03.30 20:55:26 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 2
2018.03.30 20:55:26 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.03.30 20:55:26 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 3
2018.03.30 20:55:26 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.03.30 20:55:26 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 4
2018.03.30 20:55:26 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.03.30 20:55:26 4: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool result connect error,Invalid argument (22)
2018.03.30 20:55:26 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Done: gatttool return string: Gummibaum|C4:7C:8D:62:42:6F|error|read|0x38|{"gtResult":"Invalid argument (22)"}
2018.03.30 20:55:26 4: XiaomiBTLESens (Gummibaum) - ProcessingErrors
2018.03.30 20:55:26 4: XiaomiBTLESens (Gummibaum) - WriteReadings: Readings were written
2018.03.30 20:55:54 4: XiaomiBTLESens (Drakena) - Run CreateParamGatttool with mod: write
2018.03.30 20:55:54 5: XiaomiBTLESens (Drakena) - Write XiaomiBTLESens_ExecGatttool_Run Drakena|C4:7C:8D:66:16:30|write|0x33|A01F
2018.03.30 20:55:54 4: XiaomiBTLESens (Drakena) - stateRequestTimer: Call Request Timer
2018.03.30 20:55:55 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 0
2018.03.30 20:56:35 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)
2018.03.30 20:56:35 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 1
2018.03.30 20:56:35 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.03.30 20:56:35 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 2
2018.03.30 20:57:15 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)
2018.03.30 20:57:15 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 3
2018.03.30 20:57:15 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.03.30 20:57:15 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 4
2018.03.30 20:57:24 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 1297
2018.03.30 20:57:24 4: XiaomiBTLESens (Drakena) - WriteReadings: Readings were written
2018.03.30 20:57:24 4: XiaomiBTLESens (Drakena) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
2018.03.30 21:01:53 4: XiaomiBTLESens (Gummibaum) - Run CreateParamGatttool with mod: read
2018.03.30 21:01:53 5: XiaomiBTLESens (Gummibaum) - Read XiaomiBTLESens_ExecGatttool_Run Gummibaum|C4:7C:8D:62:42:6F|read|0x38
2018.03.30 21:01:53 4: XiaomiBTLESens (Gummibaum) - stateRequestTimer: Call Request Timer
2018.03.30 21:01:54 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.03.30 21:01:54 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.03.30 21:01:54 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 1
2018.03.30 21:01:54 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.03.30 21:01:54 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 2
2018.03.30 21:01:54 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.03.30 21:01:54 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 3
2018.03.30 21:01:54 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.03.30 21:01:54 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 4
2018.03.30 21:01:54 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.03.30 21:01:54 4: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool result connect error,Invalid argument (22)
2018.03.30 21:01:54 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Done: gatttool return string: Gummibaum|C4:7C:8D:62:42:6F|error|read|0x38|{"gtResult":"Invalid argument (22)"}
2018.03.30 21:01:54 4: XiaomiBTLESens (Gummibaum) - ProcessingErrors
2018.03.30 21:01:54 4: XiaomiBTLESens (Gummibaum) - WriteReadings: Readings were written
2018.03.30 21:02:21 4: XiaomiBTLESens (Drakena) - Run CreateParamGatttool with mod: write
2018.03.30 21:02:21 5: XiaomiBTLESens (Drakena) - Write XiaomiBTLESens_ExecGatttool_Run Drakena|C4:7C:8D:66:16:30|write|0x33|A01F
2018.03.30 21:02:21 4: XiaomiBTLESens (Drakena) - stateRequestTimer: Call Request Timer
2018.03.30 21:02:22 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 0
2018.03.30 21:03:02 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)
2018.03.30 21:03:02 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 1
2018.03.30 21:03:02 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.03.30 21:03:02 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 2
2018.03.30 21:03:42 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)
2018.03.30 21:03:42 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 3
2018.03.30 21:03:42 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.03.30 21:03:42 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 4
2018.03.30 21:03:51 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 1774
2018.03.30 21:03:51 4: XiaomiBTLESens (Drakena) - WriteReadings: Readings were written
2018.03.30 21:03:51 4: XiaomiBTLESens (Drakena) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
pi@fhem:~ $ hcitool scan
Scanning ...
pi@fhem:~ $ sudo bluetoothctl
[NEW] Controller B8:27:EB:A7:8C:6F fhem [default]
[NEW] Device C4:7C:8D:66:16:30 Flower care
[NEW] Device C4:7C:8D:66:1B:42 Flower care
[bluetooth]# devices
Device C4:7C:8D:66:16:30 Flower care
Device C4:7C:8D:66:1B:42 Flower care
[bluetooth]# scan on
Discovery started
[CHG] Controller B8:27:EB:A7:8C:6F Discovering: yes
[NEW] Device 68:EF:07:64:07:51 68-EF-07-64-07-51
[NEW] Device 7D:B0:06:0B:94:CB 7D-B0-06-0B-94-CB
[NEW] Device DB:FE:22:C4:B7:42 Eve Energy 9694
[CHG] Device C4:7C:8D:66:16:30 RSSI: -76
[CHG] Device C4:7C:8D:66:16:30 ServiceData Key: 0000fe95-0000-1000-8000-00805f9b34fb
[CHG] Device C4:7C:8D:66:16:30 ServiceData Value: 0x71
[CHG] Device C4:7C:8D:66:16:30 ServiceData Value: 0x20
[CHG] Device C4:7C:8D:66:16:30 ServiceData Value: 0x98
...
pi@fhem:~ $ systemctl status bluetooth
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2018-03-30 20:43:52 CEST; 1h 7min ago
Docs: man:bluetoothd(8)
Main PID: 480 (bluetoothd)
Status: "Running"
CGroup: /system.slice/bluetooth.service
└─480 /usr/lib/bluetooth/bluetoothd
Mär 30 20:43:52 fhem systemd[1]: Starting Bluetooth service...
Mär 30 20:43:52 fhem bluetoothd[480]: Bluetooth daemon 5.43
Mär 30 20:43:52 fhem systemd[1]: Started Bluetooth service.
Mär 30 20:43:52 fhem bluetoothd[480]: Starting SDP server
Mär 30 20:43:52 fhem bluetoothd[480]: Bluetooth management interface 1.14 initialized
[color=red][b]Mär 30 20:43:52 fhem bluetoothd[480]: Failed to obtain handles for "Service Changed" characteristic
Mär 30 20:43:52 fhem bluetoothd[480]: Sap driver initialization failed.
Mär 30 20:43:52 fhem bluetoothd[480]: sap-server: Operation not permitted[/b][/color] (1)
Zitat von: Fede am 30 März 2018, 21:36:41
In crontab 10min sudo hciconfig hci0 down/up. Ein bischen gut
Zitat von: Fede am 30 März 2018, 21:36:41
In crontab 10min sudo hciconfig hci0 down/up. Ein bischen gut
2018.03.30 22:56:34 4: XiaomiBTLESens (Drakena) - Run CreateParamGatttool with mod: write
2018.03.30 22:56:34 5: XiaomiBTLESens (Drakena) - Write XiaomiBTLESens_ExecGatttool_Run Drakena|C4:7C:8D:66:16:30|write|0x33|A01F
2018.03.30 22:56:34 4: XiaomiBTLESens (Drakena) - stateRequestTimer: Call Request Timer
2018.03.30 22:56:34 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 0
2018.03.30 22:56:34 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool loop result connect,No route to host (113)
2018.03.30 22:56:34 4: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool result connect,No route to host (113)
2018.03.30 22:56:34 5: XiaomiBTLESens (Drakena) - ExecGatttool_Done: gatttool return string: Drakena|C4:7C:8D:66:16:30|ok|write|0x33|{"gtResult":"No route to host (113)"}
2018.03.30 22:56:34 4: XiaomiBTLESens (Drakena) - Run CreateParamGatttool with mod: read
2018.03.30 22:56:34 5: XiaomiBTLESens (Drakena) - Read XiaomiBTLESens_ExecGatttool_Run Drakena|C4:7C:8D:66:16:30|read|0x35
2018.03.30 22:56:34 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-read -a 0x35 2>&1 /dev/null and loop 0
2018.03.30 22:56:34 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool loop result connect,No route to host (113)
2018.03.30 22:56:34 4: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool result connect,No route to host (113)
2018.03.30 22:56:34 5: XiaomiBTLESens (Drakena) - ExecGatttool_Done: gatttool return string: Drakena|C4:7C:8D:66:16:30|error|read|0x35|{"gtResult":"No route to host (113)"}
2018.03.30 22:56:34 4: XiaomiBTLESens (Drakena) - ProcessingErrors
2018.03.30 22:56:34 4: XiaomiBTLESens (Drakena) - WriteReadings: Readings were written
2018.03.30 22:59:36 4: XiaomiBTLESens (Gummibaum) - Run CreateParamGatttool with mod: read
2018.03.30 22:59:36 5: XiaomiBTLESens (Gummibaum) - Read XiaomiBTLESens_ExecGatttool_Run Gummibaum|C4:7C:8D:62:42:6F|read|0x38
2018.03.30 22:59:36 4: XiaomiBTLESens (Gummibaum) - stateRequestTimer: Call Request Timer
2018.03.30 22:59:36 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.03.30 22:59:36 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool loop result connect,No route to host (113)
2018.03.30 22:59:36 4: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool result connect,No route to host (113)
2018.03.30 22:59:36 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Done: gatttool return string: Gummibaum|C4:7C:8D:62:42:6F|error|read|0x38|{"gtResult":"No route to host (113)"}
2018.03.30 22:59:36 4: XiaomiBTLESens (Gummibaum) - ProcessingErrors
2018.03.30 22:59:36 4: XiaomiBTLESens (Gummibaum) - WriteReadings: Readings were written
2018.03.30 23:01:57 4: XiaomiBTLESens (Drakena) - Run CreateParamGatttool with mod: write
2018.03.30 23:01:57 5: XiaomiBTLESens (Drakena) - Write XiaomiBTLESens_ExecGatttool_Run Drakena|C4:7C:8D:66:16:30|write|0x33|A01F
2018.03.30 23:01:57 4: XiaomiBTLESens (Drakena) - stateRequestTimer: Call Request Timer
2018.03.30 23:01:57 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 0
2018.03.30 23:01:57 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool loop result connect,No route to host (113)
2018.03.30 23:01:57 4: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool result connect,No route to host (113)
2018.03.30 23:01:57 5: XiaomiBTLESens (Drakena) - ExecGatttool_Done: gatttool return string: Drakena|C4:7C:8D:66:16:30|ok|write|0x33|{"gtResult":"No route to host (113)"}
2018.03.30 23:01:57 4: XiaomiBTLESens (Drakena) - Run CreateParamGatttool with mod: read
2018.03.30 23:01:57 5: XiaomiBTLESens (Drakena) - Read XiaomiBTLESens_ExecGatttool_Run Drakena|C4:7C:8D:66:16:30|read|0x35
2018.03.30 23:01:57 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-read -a 0x35 2>&1 /dev/null and loop 0
2018.03.30 23:01:57 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool loop result connect,No route to host (113)
2018.03.30 23:01:57 4: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool result connect,No route to host (113)
2018.03.30 23:01:57 5: XiaomiBTLESens (Drakena) - ExecGatttool_Done: gatttool return string: Drakena|C4:7C:8D:66:16:30|error|read|0x35|{"gtResult":"No route to host (113)"}
2018.03.30 23:01:57 4: XiaomiBTLESens (Drakena) - ProcessingErrors
2018.03.30 23:01:57 4: XiaomiBTLESens (Drakena) - WriteReadings: Readings were written
2018.03.30 23:05:09 4: XiaomiBTLESens (Gummibaum) - Run CreateParamGatttool with mod: read
2018.03.30 23:05:09 5: XiaomiBTLESens (Gummibaum) - Read XiaomiBTLESens_ExecGatttool_Run Gummibaum|C4:7C:8D:62:42:6F|read|0x38
2018.03.30 23:05:09 4: XiaomiBTLESens (Gummibaum) - stateRequestTimer: Call Request Timer
2018.03.30 23:05:09 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.03.30 23:05:09 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool loop result connect,No route to host (113)
2018.03.30 23:05:09 4: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool result connect,No route to host (113)
2018.03.30 23:05:09 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Done: gatttool return string: Gummibaum|C4:7C:8D:62:42:6F|error|read|0x38|{"gtResult":"No route to host (113)"}
2018.03.30 23:05:09 4: XiaomiBTLESens (Gummibaum) - ProcessingErrors
2018.03.30 23:05:09 4: XiaomiBTLESens (Gummibaum) - WriteReadings: Readings were written
2018.03.30 23:07:33 4: XiaomiBTLESens (Drakena) - Run CreateParamGatttool with mod: write
2018.03.30 23:07:33 5: XiaomiBTLESens (Drakena) - Write XiaomiBTLESens_ExecGatttool_Run Drakena|C4:7C:8D:66:16:30|write|0x33|A01F
2018.03.30 23:07:33 4: XiaomiBTLESens (Drakena) - stateRequestTimer: Call Request Timer
2018.03.30 23:07:33 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 0
2018.03.30 23:07:33 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool loop result connect,No route to host (113)
2018.03.30 23:07:33 4: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool result connect,No route to host (113)
2018.03.30 23:07:33 5: XiaomiBTLESens (Drakena) - ExecGatttool_Done: gatttool return string: Drakena|C4:7C:8D:66:16:30|ok|write|0x33|{"gtResult":"No route to host (113)"}
2018.03.30 23:07:33 4: XiaomiBTLESens (Drakena) - Run CreateParamGatttool with mod: read
2018.03.30 23:07:33 5: XiaomiBTLESens (Drakena) - Read XiaomiBTLESens_ExecGatttool_Run Drakena|C4:7C:8D:66:16:30|read|0x35
2018.03.30 23:07:33 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-read -a 0x35 2>&1 /dev/null and loop 0
2018.03.30 23:07:33 5: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool loop result connect,No route to host (113)
2018.03.30 23:07:33 4: XiaomiBTLESens (Drakena) - ExecGatttool_Run: gatttool result connect,No route to host (113)
2018.03.30 23:07:33 5: XiaomiBTLESens (Drakena) - ExecGatttool_Done: gatttool return string: Drakena|C4:7C:8D:66:16:30|error|read|0x35|{"gtResult":"No route to host (113)"}
2018.03.30 23:07:33 4: XiaomiBTLESens (Drakena) - ProcessingErrors
2018.03.30 23:07:33 4: XiaomiBTLESens (Drakena) - WriteReadings: Readings were written
2018.03.30 23:11:28 4: XiaomiBTLESens (Gummibaum) - Run CreateParamGatttool with mod: read
2018.03.30 23:11:28 5: XiaomiBTLESens (Gummibaum) - Read XiaomiBTLESens_ExecGatttool_Run Gummibaum|C4:7C:8D:62:42:6F|read|0x38
2018.03.30 23:11:28 4: XiaomiBTLESens (Gummibaum) - stateRequestTimer: Call Request Timer
2018.03.30 23:11:28 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.03.30 23:11:28 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool loop result connect,No route to host (113)
2018.03.30 23:11:28 4: XiaomiBTLESens (Gummibaum) - ExecGatttool_Run: gatttool result connect,No route to host (113)
2018.03.30 23:11:28 5: XiaomiBTLESens (Gummibaum) - ExecGatttool_Done: gatttool return string: Gummibaum|C4:7C:8D:62:42:6F|error|read|0x38|{"gtResult":"No route to host (113)"}
2018.03.30 23:11:28 4: XiaomiBTLESens (Gummibaum) - ProcessingErrors
2018.03.30 23:11:28 4: XiaomiBTLESens (Gummibaum) - WriteReadings: Readings were written
sudo hciconfig hci0 down
sudo hciconfig hci0 up
2018.03.31 16:21:47 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 1
2018.03.31 16:22:27 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)
2018.03.31 16:22:27 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 2
2018.03.31 16:22:36 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 3455
2018.03.31 16:22:36 4: XiaomiBTLESens (Gummibaum_neu) - WriteReadings: Readings were written
2018.03.31 16:22:36 4: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
2018.03.31 16:26:13 4: XiaomiBTLESens (Gummibaum_neu) - Run CreateParamGatttool with mod: read
2018.03.31 16:26:13 5: XiaomiBTLESens (Gummibaum_neu) - Read XiaomiBTLESens_ExecGatttool_Run Gummibaum_neu|C4:7C:8D:62:42:6F|read|0x38
2018.03.31 16:26:13 4: XiaomiBTLESens (Gummibaum_neu) - stateRequestTimer: Call Request Timer
2018.03.31 16:26:13 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.03.31 16:26:31 4: XiaomiBTLESens (Gummibaum_neu) - Run CreateParamGatttool with mod: read
2018.03.31 16:26:31 5: XiaomiBTLESens (Gummibaum_neu) - Read XiaomiBTLESens_ExecGatttool_Run Gummibaum_neu|C4:7C:8D:62:42:6F|read|0x38
2018.03.31 16:26:31 4: XiaomiBTLESens (Gummibaum_neu) - stateRequestTimer: Call Request Timer
2018.03.31 16:26:54 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)
2018.03.31 16:26:54 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 1
2018.03.31 16:27:19 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: gatttool loop result connect error,Software caused connection abort (103)
2018.03.31 16:27:19 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 2
2018.03.31 16:27:19 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: gatttool loop result connect,No route to host (113)
2018.03.31 16:27:19 4: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: gatttool result connect,No route to host (113)
2018.03.31 16:27:19 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Done: gatttool return string: Gummibaum_neu|C4:7C:8D:62:42:6F|error|read|0x38|{"gtResult":"No route to host (113)"}
2018.03.31 16:27:19 4: XiaomiBTLESens (Gummibaum_neu) - ProcessingErrors
2018.03.31 16:27:19 4: XiaomiBTLESens (Gummibaum_neu) - WriteReadings: Readings were written
2018.03.31 16:27:56 1: Waschmaschine: Fertig - 0.37€
2018.03.31 16:28:01 1: Waschmaschine: Ausgeschaltet - 0.83 W
2018.03.31 16:31:47 4: XiaomiBTLESens (Gummibaum_neu) - Run CreateParamGatttool with mod: read
2018.03.31 16:31:47 5: XiaomiBTLESens (Gummibaum_neu) - Read XiaomiBTLESens_ExecGatttool_Run Gummibaum_neu|C4:7C:8D:62:42:6F|read|0x38
2018.03.31 16:31:47 4: XiaomiBTLESens (Gummibaum_neu) - stateRequestTimer: Call Request Timer
2018.03.31 16:31:47 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.03.31 16:32:18 4: XiaomiBTLESens (Gummibaum_neu) - Run CreateParamGatttool with mod: read
2018.03.31 16:32:18 5: XiaomiBTLESens (Gummibaum_neu) - Read XiaomiBTLESens_ExecGatttool_Run Gummibaum_neu|C4:7C:8D:62:42:6F|read|0x38
2018.03.31 16:32:18 4: XiaomiBTLESens (Gummibaum_neu) - stateRequestTimer: Call Request Timer
2018.03.31 16:32:27 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)
2018.03.31 16:32:27 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 1
2018.03.31 16:33:08 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)
2018.03.31 16:33:08 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 2
2018.03.31 16:33:17 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 4032
2018.03.31 16:33:17 4: XiaomiBTLESens (Gummibaum_neu) - WriteReadings: Readings were written
2018.03.31 16:33:17 4: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
2018.03.31 16:35:10 1: Waschmaschine: Eingeschaltet - 0 W
2018.03.31 16:35:22 1: Trockner: Eingeschaltet - 0 W
2018.03.31 16:35:25 1: Trockner: Startet - 221.69 W
2018.03.31 16:35:25 1: Waschmaschine: Ausgeschaltet - 0.6 W
2018.03.31 16:35:33 1: Trockner: Läuft - 163.64 W
2018.03.31 16:37:27 4: XiaomiBTLESens (Gummibaum_neu) - Run CreateParamGatttool with mod: read
2018.03.31 16:37:27 5: XiaomiBTLESens (Gummibaum_neu) - Read XiaomiBTLESens_ExecGatttool_Run Gummibaum_neu|C4:7C:8D:62:42:6F|read|0x38
2018.03.31 16:37:27 4: XiaomiBTLESens (Gummibaum_neu) - stateRequestTimer: Call Request Timer
2018.03.31 16:37:27 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.03.31 16:38:05 4: XiaomiBTLESens (Gummibaum_neu) - Run CreateParamGatttool with mod: read
2018.03.31 16:38:05 5: XiaomiBTLESens (Gummibaum_neu) - Read XiaomiBTLESens_ExecGatttool_Run Gummibaum_neu|C4:7C:8D:62:42:6F|read|0x38
2018.03.31 16:38:05 4: XiaomiBTLESens (Gummibaum_neu) - stateRequestTimer: Call Request Timer
2018.03.31 16:38:07 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)
2018.03.31 16:38:07 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 1
2018.03.31 16:38:48 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)
2018.03.31 16:38:48 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 2
2018.03.31 16:38:57 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 4222
2018.03.31 16:38:57 4: XiaomiBTLESens (Gummibaum_neu) - WriteReadings: Readings were written
2018.03.31 16:38:57 4: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
2018.03.31 16:43:18 4: XiaomiBTLESens (Gummibaum_neu) - Run CreateParamGatttool with mod: read
2018.03.31 16:43:18 5: XiaomiBTLESens (Gummibaum_neu) - Read XiaomiBTLESens_ExecGatttool_Run Gummibaum_neu|C4:7C:8D:62:42:6F|read|0x38
2018.03.31 16:43:18 4: XiaomiBTLESens (Gummibaum_neu) - stateRequestTimer: Call Request Timer
2018.03.31 16:43:18 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.03.31 16:43:42 4: XiaomiBTLESens (Gummibaum_neu) - Run CreateParamGatttool with mod: read
2018.03.31 16:43:42 5: XiaomiBTLESens (Gummibaum_neu) - Read XiaomiBTLESens_ExecGatttool_Run Gummibaum_neu|C4:7C:8D:62:42:6F|read|0x38
2018.03.31 16:43:42 4: XiaomiBTLESens (Gummibaum_neu) - stateRequestTimer: Call Request Timer
2018.03.31 16:43:59 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)
2018.03.31 16:43:59 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 1
2018.03.31 16:44:39 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)
2018.03.31 16:44:39 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 2
2018.03.31 16:44:48 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 4440
2018.03.31 16:44:48 4: XiaomiBTLESens (Gummibaum_neu) - WriteReadings: Readings were written
2018.03.31 16:44:48 4: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
gatttool -i hci0 -b C4:7C:8D:66:16:30 --char-read -a 0x35
Internals:
BTMAC C4:7C:8D:62:42:6F
CFGFN
DEF C4:7C:8D:62:42:6F
INTERVAL 300
NAME Gummibaum_neu
NOTIFYDEV global,Gummibaum
NR 9857
NTFY_ORDER 50-Gummibaum
STATE error
TYPE XiaomiBTLESens
VERSION 2.0.12
loglevel 4
READINGS:
2018-03-31 20:16:04 lastGattError Invalid argument (22)
2018-03-31 20:16:04 state error
helper:
CallBattery 0
CallSensDataCounter 0
Attributes:
model flowerSens
room XiaomiBTLESens
verbose 5
2018.03.31 20:17:19 4: XiaomiBTLESens (Gummibaum_neu) - Run CreateParamGatttool with mod: read
2018.03.31 20:17:19 5: XiaomiBTLESens (Gummibaum_neu) - Read XiaomiBTLESens_ExecGatttool_Run Gummibaum_neu|C4:7C:8D:62:42:6F|read|0x38
2018.03.31 20:17:19 5: XiaomiBTLESens (Gummibaum_neu) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:62:42:6F --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.03.31 20:17:22 4: XiaomiBTLESens (Gummibaum_neu) - Run CreateParamGatttool with mod: read
2018.03.31 20:17:22 5: XiaomiBTLESens (Gummibaum_neu) - Read XiaomiBTLESens_ExecGatttool_Run Gummibaum_neu|C4:7C:8D:62:42:6F|read|0x38
Internals:
BTMAC C4:7C:8D:62:42:6F
CFGFN
DEF C4:7C:8D:62:42:6F
INTERVAL 300
NAME Gummibaum_neu
NOTIFYDEV global,Gummibaum
NR 9857
NTFY_ORDER 50-Gummibaum
STATE error
TYPE XiaomiBTLESens
VERSION 2.0.12
loglevel 4
READINGS:
2018-03-31 20:18:29 lastGattError Invalid argument (22)
2018-03-31 20:18:29 state error
helper:
CallBattery 0
CallSensDataCounter 0
Attributes:
model flowerSens
room XiaomiBTLESens
verbose 5
Zitat von: ludwich am 01 April 2018, 16:29:19
Frohe Ostern!!
Eigentlich wollte ich ja nur schauen wie ich eine E-Mail versenden kann, wenn diese zu trocken werden.
Dabei habe ich gesehen, dass das Modul XiaomiFlowerSens (bisher genutzt) wird durch XiaomiBTLESens ersetzt wird - richtig?
Ich habe das Modul 2.0.12 im FHEM, im Github liegt 2.0.11 - ist da was zu beachten?
Kann/Soll ich mein FHEM schon komplett auf XiaomiBTLESens umstellen?
Vielleicht gibt es je noch nen Tipp zur Mail - sonst google ich mal los :-)
Ich hab das gestern das Modul {DebianMail("email\@email.domain","Subject","Text","")} eingerichtet.
Schöne Grüße aus München
ludwich
Blume2.minMoisture.low { DebianMail("lu\@lu.de","FHEM","Elefantenohr","") }
2018-04-14_14:44:05 pla01 fertility: 0
2018-04-14_14:44:05 pla01 moisture: 0
2018-04-14_14:44:05 pla01 temperature: 25.3
2018-04-14_14:44:05 pla01 lux: 34
2018-04-14_14:44:05 pla01 active
2018-04-16_00:54:19 pla01 read sensor data
2018-04-16_00:54:23 pla01 batteryLevel: 100
2018-04-16_00:54:23 pla01 battery: ok
2018-04-16_00:54:23 pla01 firmware: 2.7.0
2018-04-16_00:54:23 pla01 active
2018-04-08_23:32:40 pla01 write sensor data
2018-04-08_23:32:41 pla01 read sensor data
2018-04-08_23:32:42 pla01 fertility: 0
2018-04-08_23:32:42 pla01 moisture: 0
2018-04-08_23:32:42 pla01 lux: 160
2018-04-08_23:32:42 pla01 temperature: 25.3
2018-04-08_23:32:42 pla01 active
2018-04-13_23:49:39 pla01 read sensor data
2018-04-13_23:49:58 pla01 read sensor data
2018-04-13_23:50:06 pla01 firmware: 2.7.0
2018-04-13_23:50:06 pla01 batteryLevel: 100
2018-04-13_23:50:06 pla01 battery: ok
2018-04-13_23:50:06 pla01 active
define pla00 XiaomiBTLESens C4:7C:8D:66:1C:4C
attr pla00 alias Plant Sensor left
attr pla00 event-min-interval state:3600,battery:3600,batteryLevel:3600,temperature:3600,moisture:3600,fertility:3600,lux:3600
attr pla00 event-on-change-reading state
attr pla00 event-on-update-reading .*
attr pla00 group [Bluetooth] Plant Sensors
attr pla00 interval 3600
attr pla00 model flowerSens
attr pla00 room Sensors
connect error: Transport endpoint is not connected (107)
connect error: Transport endpoint is not connected (107)
connect error: Function not implemented (38)
connect error: Function not implemented (38)
connect: Device or resource busy (16)
connect: Device or resource busy (16)
connect error: Function not implemented (38)
connect error: Transport endpoint is not connected (107)
maxlux - max. Helligkeits-Grenzwert für ein Ereignis maxlux high
Beispiele für min/max-Ereignisse:
2017-03-16 11:08:05 XiaomiFlowerSens Dracaena minMoisture low
2017-03-16 11:08:06 XiaomiFlowerSens Dracaena maxTemp high
2017-03-16 11:08:05 XiaomiFlowerSens Dracaena minMoisture ok
2017-03-16 11:08:06 XiaomiFlowerSens Dracaena maxTemp ok
2018-04-20 16:49:18 XiaomiBTLESens PflanzenSensor3 minMoisture ok
connect error: Transport endpoint is not connected (107)
connect error: Transport endpoint is not connected (107)
connect error: Transport endpoint is not connected (107)
connect error: Transport endpoint is not connected (107)
connect error: Function not implemented (38)
connect error: Transport endpoint is not connected (107)
connect error: Transport endpoint is not connected (107)
connect error: Transport endpoint is not connected (107)
connect error: Transport endpoint is not connected (107)
defmod Blume2 XiaomiBTLESens C4:7C:8D:65:EE:99
attr Blume2 blockingCallLoglevel 2
attr Blume2 event-min-interval .*:600
attr Blume2 interval 300
attr Blume2 model flowerSens
attr Blume2 room Kugele->OG->Flur
attr Blume2 sshHost 192.168.178.82
attr Blume2 verbose 0
setstate Blume2 active
setstate Blume2 2018-04-20 09:55:01 battery ok
setstate Blume2 2018-04-20 09:55:01 batteryLevel 93
setstate Blume2 2018-04-21 08:42:10 fertility 220
setstate Blume2 2018-04-20 09:55:01 firmware 2.7.0
setstate Blume2 2018-04-21 06:57:59 lastGattError Request attribute has encountered an unlikely error
setstate Blume2 2018-04-21 08:42:10 lux 1691
setstate Blume2 2018-04-21 08:42:10 moisture 57
setstate Blume2 2018-04-21 08:42:10 state active
setstate Blume2 2018-04-21 08:42:10 temperature 24.4
hcitool lescan
ausführe, finde ich den neuen Sensor. Diesen habe ich versucht als XiaomiFlowerSens einzubinden und anschließend auch als XiaomiBTLESens.lastGattError: The BlockingCall Process terminated unexpectedly. Timedout
2018.04.21 11:52:00 4: XiaomiBTLESens (Planze_08) - Run CreateParamGatttool with mod: read
2018.04.21 11:52:00 5: XiaomiBTLESens (Planze_08) - Read XiaomiBTLESens_ExecGatttool_Run Planze_08|C4:7C:8D:66:04:6A|read|0x38
2018.04.21 11:52:02 5: XiaomiBTLESens (Planze_08) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)
2018.04.21 11:52:02 5: XiaomiBTLESens (Planze_08) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:04:6A --char-read -a 0x38 2>&1 /dev/null and loop 2
2018.04.21 11:52:11 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 30812
2018.04.21 11:52:12 4: XiaomiBTLESens (Planze_08) - WriteReadings: Readings were written
2018.04.21 11:52:12 4: XiaomiBTLESens (Planze_08) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
Zitat von: ToM_ToM am 21 April 2018, 11:54:00
Hi Leon,
ich habe heute versucht, einen neuen Flower Sensor in Betrieb zu nehmen.
Die FlowerCare App findet ihn zwar, kann ihn aber komischerweise nicht verbinden. Auch wenn ichCode Auswählenhcitool lescan
ausführe, finde ich den neuen Sensor. Diesen habe ich versucht als XiaomiFlowerSens einzubinden und anschließend auch als XiaomiBTLESens.
Bei beiden bekomme ich ein Error zurück.Code AuswählenlastGattError: The BlockingCall Process terminated unexpectedly. Timedout
Code Auswählen
2018.04.21 11:52:00 4: XiaomiBTLESens (Planze_08) - Run CreateParamGatttool with mod: read
2018.04.21 11:52:00 5: XiaomiBTLESens (Planze_08) - Read XiaomiBTLESens_ExecGatttool_Run Planze_08|C4:7C:8D:66:04:6A|read|0x38
2018.04.21 11:52:02 5: XiaomiBTLESens (Planze_08) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)
2018.04.21 11:52:02 5: XiaomiBTLESens (Planze_08) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:04:6A --char-read -a 0x38 2>&1 /dev/null and loop 2
2018.04.21 11:52:11 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 30812
2018.04.21 11:52:12 4: XiaomiBTLESens (Planze_08) - WriteReadings: Readings were written
2018.04.21 11:52:12 4: XiaomiBTLESens (Planze_08) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
Hast du noch eine Idee oder ist mein Sensor defekt?
VG, Thomas
gatttool -i hci0 -b MAC-ADRESSE --char-read -a 0x38
gatttool -i hci0 -b C4:7C:8D:66:0F:40 --char-read -a 0x38
Characteristic value/descriptor: 64 15 32 2e 37 2e 30
Zitat von: Nemo0815 am 21 April 2018, 12:36:23
Hi,
bei kommt da:Code Auswählengatttool -i hci0 -b C4:7C:8D:66:0F:40 --char-read -a 0x38
Characteristic value/descriptor: 64 15 32 2e 37 2e 30
Edit: Hat sich erledigt, war der falsche (noch nicht mit dem Smartphone gepairte) Sensor :)
get Pflanze_08 firmware
auszuführen.get Pflanze_08 sensorData
ändert den Status auf "write sensor data" was mich ebenso verwirrt, liefert aber dann wieder das Timeout Error.Disable scan failed: Input/output error
Anschließend hab ich alle 5 Devices gelöscht, google angeschmissen und das gefunden. https://stackoverflow.com/questions/22062037/hcitool-lescan-shows-i-o-error
hciconfig hci0 down
hciconfig hci0 up
Disable scan failed: Input/output error
Internals:
BTMAC C4:7C:8D:66:20:C7
DEF C4:7C:8D:66:20:C7
INTERVAL 3600
NAME pla02
NOTIFYDEV global,pla02
NR 356
NTFY_ORDER 50-pla02
STATE initialized
TYPE XiaomiBTLESens
VERSION 2.0.12
loglevel 4
READINGS:
2018-04-19 00:59:05 battery ok
2018-04-19 00:59:05 batteryLevel 100
2018-04-19 18:10:41 fertility 1
2018-04-19 00:59:05 firmware 2.7.0
2018-04-17 00:19:51 lastGattError charWrite faild
2018-04-19 18:10:41 lux 170
2018-04-19 18:10:41 moisture 0
2018-04-25 00:08:01 state initialized
2018-04-19 18:10:41 temperature 23.2
helper:
CallBattery 0
CallSensDataCounter 0
Attributes:
alias Plant Sensor right
event-min-interval state:3600,battery:3600,batteryLevel:3600,temperature:3600,moisture:3600,fertility:3600,lux:3600
event-on-change-reading state
event-on-update-reading .*
group [Bluetooth] Plant Sensors
interval 3600
model flowerSens
room Sensors
verbose 5
2018.04.25 00:08:36 4: XiaomiBTLESens (pla01) - Run CreateParamGatttool with mod: read
2018.04.25 00:08:36 5: XiaomiBTLESens (pla01) - Read XiaomiBTLESens_ExecGatttool_Run pla01|C4:7C:8D:66:1E:79|read|0x38
2018.04.25 00:08:36 4: XiaomiBTLESens (pla01) - stateRequestTimer: Call Request Timer
2018.04.25 00:08:37 5: XiaomiBTLESens (pla01) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:1E:79 --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.04.25 00:08:39 5: XiaomiBTLESens (pla01) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,64 15 32 2e 37 2e 30
2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,64 15 32 2e 37 2e 30
2018.04.25 00:08:39 5: XiaomiBTLESens (pla01) - ExecGatttool_Done: gatttool return string: pla01|C4:7C:8D:66:1E:79|ok|read|0x38|{"gtResult":"64 15 32 2e 37 2e 30 "}
2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - ProcessingNotification
2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - ProcessingNotification: handle 0x38
2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - FlowerSens Handle0x38
2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - WriteReadings: Readings were written
2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - Run CreateParamGatttool with mod: write
2018.04.25 00:08:39 5: XiaomiBTLESens (pla01) - Write XiaomiBTLESens_ExecGatttool_Run pla01|C4:7C:8D:66:1E:79|write|0x33|A01F
2018.04.25 00:08:39 5: XiaomiBTLESens (pla01) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:1E:79 --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 0
2018.04.25 00:08:39 5: XiaomiBTLESens (pla01) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.04.25 00:08:39 5: XiaomiBTLESens (pla01) - ExecGatttool_Done: gatttool return string: pla01|C4:7C:8D:66:1E:79|ok|write|0x33|{"gtResult":"no data response"}
2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - Run CreateParamGatttool with mod: read
2018.04.25 00:08:39 5: XiaomiBTLESens (pla01) - Read XiaomiBTLESens_ExecGatttool_Run pla01|C4:7C:8D:66:1E:79|read|0x35
2018.04.25 00:08:40 5: XiaomiBTLESens (pla01) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:1E:79 --char-read -a 0x35 2>&1 /dev/null and loop 0
2018.04.25 00:08:40 5: XiaomiBTLESens (pla01) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,f3 00 00 5a 00 00 00 00 00 00 02 3c 00 fb 34 9b
2018.04.25 00:08:40 4: XiaomiBTLESens (pla01) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,f3 00 00 5a 00 00 00 00 00 00 02 3c 00 fb 34 9b
2018.04.25 00:08:40 5: XiaomiBTLESens (pla01) - ExecGatttool_Done: gatttool return string: pla01|C4:7C:8D:66:1E:79|ok|read|0x35|{"gtResult":"f3 00 00 5a 00 00 00 00 00 00 02 3c 00 fb 34 9b "}
2018.04.25 00:08:40 4: XiaomiBTLESens (pla01) - ProcessingNotification
2018.04.25 00:08:40 4: XiaomiBTLESens (pla01) - ProcessingNotification: handle 0x35
2018.04.25 00:08:40 4: XiaomiBTLESens (pla01) - FlowerSens Handle0x35
2018.04.25 00:08:40 4: XiaomiBTLESens (pla01) - WriteReadings: Readings were written
2018.04.25 00:08:45 3: Watchdog mod00_det_wd0 triggered
2018.04.25 00:08:45 3: scc00 IT_set: swt05 off
2018.04.25 00:08:47 4: XiaomiBTLESens (pla00) - Run CreateParamGatttool with mod: read
2018.04.25 00:08:47 5: XiaomiBTLESens (pla00) - Read XiaomiBTLESens_ExecGatttool_Run pla00|C4:7C:8D:66:1C:4C|read|0x38
2018.04.25 00:08:47 4: XiaomiBTLESens (pla00) - stateRequestTimer: Call Request Timer
2018.04.25 00:08:47 5: XiaomiBTLESens (pla00) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:1C:4C --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.04.25 00:08:49 5: XiaomiBTLESens (pla00) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,61 15 32 2e 37 2e 30
2018.04.25 00:08:49 4: XiaomiBTLESens (pla00) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,61 15 32 2e 37 2e 30
2018.04.25 00:08:49 5: XiaomiBTLESens (pla00) - ExecGatttool_Done: gatttool return string: pla00|C4:7C:8D:66:1C:4C|ok|read|0x38|{"gtResult":"61 15 32 2e 37 2e 30 "}
2018.04.25 00:08:49 4: XiaomiBTLESens (pla00) - ProcessingNotification
2018.04.25 00:08:49 4: XiaomiBTLESens (pla00) - ProcessingNotification: handle 0x38
2018.04.25 00:08:49 4: XiaomiBTLESens (pla00) - FlowerSens Handle0x38
2018.04.25 00:08:49 4: XiaomiBTLESens (pla00) - WriteReadings: Readings were written
2018.04.25 00:08:49 4: XiaomiBTLESens (pla00) - Run CreateParamGatttool with mod: write
2018.04.25 00:08:49 5: XiaomiBTLESens (pla00) - Write XiaomiBTLESens_ExecGatttool_Run pla00|C4:7C:8D:66:1C:4C|write|0x33|A01F
2018.04.25 00:08:50 5: XiaomiBTLESens (pla00) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:1C:4C --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 0
2018.04.25 00:08:50 5: XiaomiBTLESens (pla00) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.04.25 00:08:50 4: XiaomiBTLESens (pla00) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.04.25 00:08:50 5: XiaomiBTLESens (pla00) - ExecGatttool_Done: gatttool return string: pla00|C4:7C:8D:66:1C:4C|ok|write|0x33|{"gtResult":"no data response"}
2018.04.25 00:08:50 4: XiaomiBTLESens (pla00) - Run CreateParamGatttool with mod: read
2018.04.25 00:08:50 5: XiaomiBTLESens (pla00) - Read XiaomiBTLESens_ExecGatttool_Run pla00|C4:7C:8D:66:1C:4C|read|0x35
2018.04.25 00:08:50 5: XiaomiBTLESens (pla00) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:1C:4C --char-read -a 0x35 2>&1 /dev/null and loop 0
2018.04.25 00:08:50 5: XiaomiBTLESens (pla00) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,fa 00 00 4c 00 00 00 00 00 00 02 3c 00 fb 34 9b
2018.04.25 00:08:50 4: XiaomiBTLESens (pla00) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,fa 00 00 4c 00 00 00 00 00 00 02 3c 00 fb 34 9b
2018.04.25 00:08:51 5: XiaomiBTLESens (pla00) - ExecGatttool_Done: gatttool return string: pla00|C4:7C:8D:66:1C:4C|ok|read|0x35|{"gtResult":"fa 00 00 4c 00 00 00 00 00 00 02 3c 00 fb 34 9b "}
2018.04.25 00:08:51 4: XiaomiBTLESens (pla00) - ProcessingNotification
2018.04.25 00:08:51 4: XiaomiBTLESens (pla00) - ProcessingNotification: handle 0x35
2018.04.25 00:08:51 4: XiaomiBTLESens (pla00) - FlowerSens Handle0x35
2018.04.25 00:08:51 4: XiaomiBTLESens (pla00) - WriteReadings: Readings were written
2018.04.25 00:11:00 4: XiaomiBTLESens (pla02) - Run CreateParamGatttool with mod: read
2018.04.25 00:11:00 5: XiaomiBTLESens (pla02) - Read XiaomiBTLESens_ExecGatttool_Run pla02|C4:7C:8D:66:20:C7|read|0x38
2018.04.25 00:11:00 4: XiaomiBTLESens (pla02) - stateRequestTimer: Call Request Timer
2018.04.25 00:11:00 5: XiaomiBTLESens (pla02) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:20:C7 --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.04.25 00:11:02 5: XiaomiBTLESens (pla02) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,64 15 32 2e 37 2e 30
2018.04.25 00:11:02 4: XiaomiBTLESens (pla02) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,64 15 32 2e 37 2e 30
2018.04.25 00:11:02 5: XiaomiBTLESens (pla02) - ExecGatttool_Done: gatttool return string: pla02|C4:7C:8D:66:20:C7|ok|read|0x38|{"gtResult":"64 15 32 2e 37 2e 30 "}
2018.04.25 00:11:02 4: XiaomiBTLESens (pla02) - ProcessingNotification
2018.04.25 00:11:02 4: XiaomiBTLESens (pla02) - ProcessingNotification: handle 0x38
2018.04.25 00:11:02 4: XiaomiBTLESens (pla02) - FlowerSens Handle0x38
2018.04.25 00:11:02 4: XiaomiBTLESens (pla02) - WriteReadings: Readings were written
2018.04.25 00:11:02 4: XiaomiBTLESens (pla02) - Run CreateParamGatttool with mod: write
2018.04.25 00:11:02 5: XiaomiBTLESens (pla02) - Write XiaomiBTLESens_ExecGatttool_Run pla02|C4:7C:8D:66:20:C7|write|0x33|A01F
2018.04.25 00:11:03 5: XiaomiBTLESens (pla02) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:20:C7 --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 0
2018.04.25 00:11:03 5: XiaomiBTLESens (pla02) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.04.25 00:11:03 4: XiaomiBTLESens (pla02) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.04.25 00:11:03 5: XiaomiBTLESens (pla02) - ExecGatttool_Done: gatttool return string: pla02|C4:7C:8D:66:20:C7|ok|write|0x33|{"gtResult":"no data response"}
2018.04.25 00:11:03 4: XiaomiBTLESens (pla02) - Run CreateParamGatttool with mod: read
2018.04.25 00:11:03 5: XiaomiBTLESens (pla02) - Read XiaomiBTLESens_ExecGatttool_Run pla02|C4:7C:8D:66:20:C7|read|0x35
2018.04.25 00:11:03 5: XiaomiBTLESens (pla02) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:20:C7 --char-read -a 0x35 2>&1 /dev/null and loop 0
2018.04.25 00:11:03 5: XiaomiBTLESens (pla02) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,ee 00 00 52 00 00 00 00 02 00 02 3c 00 fb 34 9b
2018.04.25 00:11:03 4: XiaomiBTLESens (pla02) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,ee 00 00 52 00 00 00 00 02 00 02 3c 00 fb 34 9b
2018.04.25 00:11:03 5: XiaomiBTLESens (pla02) - ExecGatttool_Done: gatttool return string: pla02|C4:7C:8D:66:20:C7|ok|read|0x35|{"gtResult":"ee 00 00 52 00 00 00 00 02 00 02 3c 00 fb 34 9b "}
2018.04.25 00:11:03 4: XiaomiBTLESens (pla02) - ProcessingNotification
2018.04.25 00:11:03 4: XiaomiBTLESens (pla02) - ProcessingNotification: handle 0x35
2018.04.25 00:11:03 4: XiaomiBTLESens (pla02) - FlowerSens Handle0x35
2018.04.25 00:11:03 4: XiaomiBTLESens (pla02) - WriteReadings: Readings were written
2018.04.25 00:14:33 3: Sub XiaomiBTLESens_Undef (pla02) - delete device pla02
2018.04.25 00:14:33 3: Sub XiaomiBTLESens_Undef (pla01) - delete device pla01
2018.04.25 00:14:33 3: Sub XiaomiBTLESens_Undef (pla00) - delete device pla00
2018.04.25 00:14:42 3: XiaomiBTLESens (pla00) - defined with BTMAC C4:7C:8D:66:1C:4C
2018.04.25 00:14:42 3: XiaomiBTLESens (pla00) - set interval to 3600
2018.04.25 00:14:42 3: XiaomiBTLESens (pla01) - defined with BTMAC C4:7C:8D:66:1E:79
2018.04.25 00:14:42 3: XiaomiBTLESens (pla01) - set interval to 3600
2018.04.25 00:14:42 3: XiaomiBTLESens (pla02) - defined with BTMAC C4:7C:8D:66:20:C7
2018.04.25 00:14:42 3: XiaomiBTLESens (pla02) - set interval to 3600
2018-04-25_00:08:40 pla01 fertility: 0
2018-04-25_00:08:40 pla01 temperature: 24.3
2018-04-25_00:08:40 pla01 moisture: 0
2018-04-25_00:08:40 pla01 active
Zitat von: theophilou85 am 26 April 2018, 23:54:47
Es ist wieder passiert. Folgendes aus dem Log:Code Auswählen2018.04.25 00:08:36 4: XiaomiBTLESens (pla01) - Run CreateParamGatttool with mod: read
2018.04.25 00:08:36 5: XiaomiBTLESens (pla01) - Read XiaomiBTLESens_ExecGatttool_Run pla01|C4:7C:8D:66:1E:79|read|0x38
2018.04.25 00:08:36 4: XiaomiBTLESens (pla01) - stateRequestTimer: Call Request Timer
2018.04.25 00:08:37 5: XiaomiBTLESens (pla01) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:1E:79 --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.04.25 00:08:39 5: XiaomiBTLESens (pla01) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,64 15 32 2e 37 2e 30
2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,64 15 32 2e 37 2e 30
2018.04.25 00:08:39 5: XiaomiBTLESens (pla01) - ExecGatttool_Done: gatttool return string: pla01|C4:7C:8D:66:1E:79|ok|read|0x38|{"gtResult":"64 15 32 2e 37 2e 30 "}
2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - ProcessingNotification
2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - ProcessingNotification: handle 0x38
2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - FlowerSens Handle0x38
2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - WriteReadings: Readings were written
2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - Run CreateParamGatttool with mod: write
2018.04.25 00:08:39 5: XiaomiBTLESens (pla01) - Write XiaomiBTLESens_ExecGatttool_Run pla01|C4:7C:8D:66:1E:79|write|0x33|A01F
2018.04.25 00:08:39 5: XiaomiBTLESens (pla01) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:1E:79 --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 0
2018.04.25 00:08:39 5: XiaomiBTLESens (pla01) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.04.25 00:08:39 5: XiaomiBTLESens (pla01) - ExecGatttool_Done: gatttool return string: pla01|C4:7C:8D:66:1E:79|ok|write|0x33|{"gtResult":"no data response"}
2018.04.25 00:08:39 4: XiaomiBTLESens (pla01) - Run CreateParamGatttool with mod: read
2018.04.25 00:08:39 5: XiaomiBTLESens (pla01) - Read XiaomiBTLESens_ExecGatttool_Run pla01|C4:7C:8D:66:1E:79|read|0x35
2018.04.25 00:08:40 5: XiaomiBTLESens (pla01) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:1E:79 --char-read -a 0x35 2>&1 /dev/null and loop 0
2018.04.25 00:08:40 5: XiaomiBTLESens (pla01) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,f3 00 00 5a 00 00 00 00 00 00 02 3c 00 fb 34 9b
2018.04.25 00:08:40 4: XiaomiBTLESens (pla01) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,f3 00 00 5a 00 00 00 00 00 00 02 3c 00 fb 34 9b
2018.04.25 00:08:40 5: XiaomiBTLESens (pla01) - ExecGatttool_Done: gatttool return string: pla01|C4:7C:8D:66:1E:79|ok|read|0x35|{"gtResult":"f3 00 00 5a 00 00 00 00 00 00 02 3c 00 fb 34 9b "}
2018.04.25 00:08:40 4: XiaomiBTLESens (pla01) - ProcessingNotification
2018.04.25 00:08:40 4: XiaomiBTLESens (pla01) - ProcessingNotification: handle 0x35
2018.04.25 00:08:40 4: XiaomiBTLESens (pla01) - FlowerSens Handle0x35
2018.04.25 00:08:40 4: XiaomiBTLESens (pla01) - WriteReadings: Readings were written
2018.04.25 00:08:45 3: Watchdog mod00_det_wd0 triggered
2018.04.25 00:08:45 3: scc00 IT_set: swt05 off
2018.04.25 00:08:47 4: XiaomiBTLESens (pla00) - Run CreateParamGatttool with mod: read
2018.04.25 00:08:47 5: XiaomiBTLESens (pla00) - Read XiaomiBTLESens_ExecGatttool_Run pla00|C4:7C:8D:66:1C:4C|read|0x38
2018.04.25 00:08:47 4: XiaomiBTLESens (pla00) - stateRequestTimer: Call Request Timer
2018.04.25 00:08:47 5: XiaomiBTLESens (pla00) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:1C:4C --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.04.25 00:08:49 5: XiaomiBTLESens (pla00) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,61 15 32 2e 37 2e 30
2018.04.25 00:08:49 4: XiaomiBTLESens (pla00) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,61 15 32 2e 37 2e 30
2018.04.25 00:08:49 5: XiaomiBTLESens (pla00) - ExecGatttool_Done: gatttool return string: pla00|C4:7C:8D:66:1C:4C|ok|read|0x38|{"gtResult":"61 15 32 2e 37 2e 30 "}
2018.04.25 00:08:49 4: XiaomiBTLESens (pla00) - ProcessingNotification
2018.04.25 00:08:49 4: XiaomiBTLESens (pla00) - ProcessingNotification: handle 0x38
2018.04.25 00:08:49 4: XiaomiBTLESens (pla00) - FlowerSens Handle0x38
2018.04.25 00:08:49 4: XiaomiBTLESens (pla00) - WriteReadings: Readings were written
2018.04.25 00:08:49 4: XiaomiBTLESens (pla00) - Run CreateParamGatttool with mod: write
2018.04.25 00:08:49 5: XiaomiBTLESens (pla00) - Write XiaomiBTLESens_ExecGatttool_Run pla00|C4:7C:8D:66:1C:4C|write|0x33|A01F
2018.04.25 00:08:50 5: XiaomiBTLESens (pla00) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:1C:4C --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 0
2018.04.25 00:08:50 5: XiaomiBTLESens (pla00) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.04.25 00:08:50 4: XiaomiBTLESens (pla00) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.04.25 00:08:50 5: XiaomiBTLESens (pla00) - ExecGatttool_Done: gatttool return string: pla00|C4:7C:8D:66:1C:4C|ok|write|0x33|{"gtResult":"no data response"}
2018.04.25 00:08:50 4: XiaomiBTLESens (pla00) - Run CreateParamGatttool with mod: read
2018.04.25 00:08:50 5: XiaomiBTLESens (pla00) - Read XiaomiBTLESens_ExecGatttool_Run pla00|C4:7C:8D:66:1C:4C|read|0x35
2018.04.25 00:08:50 5: XiaomiBTLESens (pla00) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:1C:4C --char-read -a 0x35 2>&1 /dev/null and loop 0
2018.04.25 00:08:50 5: XiaomiBTLESens (pla00) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,fa 00 00 4c 00 00 00 00 00 00 02 3c 00 fb 34 9b
2018.04.25 00:08:50 4: XiaomiBTLESens (pla00) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,fa 00 00 4c 00 00 00 00 00 00 02 3c 00 fb 34 9b
2018.04.25 00:08:51 5: XiaomiBTLESens (pla00) - ExecGatttool_Done: gatttool return string: pla00|C4:7C:8D:66:1C:4C|ok|read|0x35|{"gtResult":"fa 00 00 4c 00 00 00 00 00 00 02 3c 00 fb 34 9b "}
2018.04.25 00:08:51 4: XiaomiBTLESens (pla00) - ProcessingNotification
2018.04.25 00:08:51 4: XiaomiBTLESens (pla00) - ProcessingNotification: handle 0x35
2018.04.25 00:08:51 4: XiaomiBTLESens (pla00) - FlowerSens Handle0x35
2018.04.25 00:08:51 4: XiaomiBTLESens (pla00) - WriteReadings: Readings were written
2018.04.25 00:11:00 4: XiaomiBTLESens (pla02) - Run CreateParamGatttool with mod: read
2018.04.25 00:11:00 5: XiaomiBTLESens (pla02) - Read XiaomiBTLESens_ExecGatttool_Run pla02|C4:7C:8D:66:20:C7|read|0x38
2018.04.25 00:11:00 4: XiaomiBTLESens (pla02) - stateRequestTimer: Call Request Timer
2018.04.25 00:11:00 5: XiaomiBTLESens (pla02) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:20:C7 --char-read -a 0x38 2>&1 /dev/null and loop 0
2018.04.25 00:11:02 5: XiaomiBTLESens (pla02) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,64 15 32 2e 37 2e 30
2018.04.25 00:11:02 4: XiaomiBTLESens (pla02) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,64 15 32 2e 37 2e 30
2018.04.25 00:11:02 5: XiaomiBTLESens (pla02) - ExecGatttool_Done: gatttool return string: pla02|C4:7C:8D:66:20:C7|ok|read|0x38|{"gtResult":"64 15 32 2e 37 2e 30 "}
2018.04.25 00:11:02 4: XiaomiBTLESens (pla02) - ProcessingNotification
2018.04.25 00:11:02 4: XiaomiBTLESens (pla02) - ProcessingNotification: handle 0x38
2018.04.25 00:11:02 4: XiaomiBTLESens (pla02) - FlowerSens Handle0x38
2018.04.25 00:11:02 4: XiaomiBTLESens (pla02) - WriteReadings: Readings were written
2018.04.25 00:11:02 4: XiaomiBTLESens (pla02) - Run CreateParamGatttool with mod: write
2018.04.25 00:11:02 5: XiaomiBTLESens (pla02) - Write XiaomiBTLESens_ExecGatttool_Run pla02|C4:7C:8D:66:20:C7|write|0x33|A01F
2018.04.25 00:11:03 5: XiaomiBTLESens (pla02) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:20:C7 --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 0
2018.04.25 00:11:03 5: XiaomiBTLESens (pla02) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.04.25 00:11:03 4: XiaomiBTLESens (pla02) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.04.25 00:11:03 5: XiaomiBTLESens (pla02) - ExecGatttool_Done: gatttool return string: pla02|C4:7C:8D:66:20:C7|ok|write|0x33|{"gtResult":"no data response"}
2018.04.25 00:11:03 4: XiaomiBTLESens (pla02) - Run CreateParamGatttool with mod: read
2018.04.25 00:11:03 5: XiaomiBTLESens (pla02) - Read XiaomiBTLESens_ExecGatttool_Run pla02|C4:7C:8D:66:20:C7|read|0x35
2018.04.25 00:11:03 5: XiaomiBTLESens (pla02) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:20:C7 --char-read -a 0x35 2>&1 /dev/null and loop 0
2018.04.25 00:11:03 5: XiaomiBTLESens (pla02) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,ee 00 00 52 00 00 00 00 02 00 02 3c 00 fb 34 9b
2018.04.25 00:11:03 4: XiaomiBTLESens (pla02) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,ee 00 00 52 00 00 00 00 02 00 02 3c 00 fb 34 9b
2018.04.25 00:11:03 5: XiaomiBTLESens (pla02) - ExecGatttool_Done: gatttool return string: pla02|C4:7C:8D:66:20:C7|ok|read|0x35|{"gtResult":"ee 00 00 52 00 00 00 00 02 00 02 3c 00 fb 34 9b "}
2018.04.25 00:11:03 4: XiaomiBTLESens (pla02) - ProcessingNotification
2018.04.25 00:11:03 4: XiaomiBTLESens (pla02) - ProcessingNotification: handle 0x35
2018.04.25 00:11:03 4: XiaomiBTLESens (pla02) - FlowerSens Handle0x35
2018.04.25 00:11:03 4: XiaomiBTLESens (pla02) - WriteReadings: Readings were written
2018.04.25 00:14:33 3: Sub XiaomiBTLESens_Undef (pla02) - delete device pla02
2018.04.25 00:14:33 3: Sub XiaomiBTLESens_Undef (pla01) - delete device pla01
2018.04.25 00:14:33 3: Sub XiaomiBTLESens_Undef (pla00) - delete device pla00
2018.04.25 00:14:42 3: XiaomiBTLESens (pla00) - defined with BTMAC C4:7C:8D:66:1C:4C
2018.04.25 00:14:42 3: XiaomiBTLESens (pla00) - set interval to 3600
2018.04.25 00:14:42 3: XiaomiBTLESens (pla01) - defined with BTMAC C4:7C:8D:66:1E:79
2018.04.25 00:14:42 3: XiaomiBTLESens (pla01) - set interval to 3600
2018.04.25 00:14:42 3: XiaomiBTLESens (pla02) - defined with BTMAC C4:7C:8D:66:20:C7
2018.04.25 00:14:42 3: XiaomiBTLESens (pla02) - set interval to 3600
Letztes Log des Devices:Code Auswählen2018-04-25_00:08:40 pla01 fertility: 0
2018-04-25_00:08:40 pla01 temperature: 24.3
2018-04-25_00:08:40 pla01 moisture: 0
2018-04-25_00:08:40 pla01 active
Zitat von: fhainz am 24 April 2018, 21:03:39
Hallo Leon!
Meine 7 Flower Sensoren laufen derzeit auf einer Ubuntu VM mit einem externem BT-Stick. Nachdem ich ab und zu Probleme mit der Reichweite des Sticks habe, hab ich mir einen Raspi 3+ geholt der auf dem Balkon kommen soll.
Der Pi ist heute angekommen, bei der Inbetriebnahme der Sensoren habe ich aber einige Probleme.
Ich hab die Installations-Prozedur jetzt 2x durch, bei der 2. Installation hab dann ich irgendwann angefangen den Beitrag zu schreiben um so alles genau mitzudokumentieren.
Nach der ersten Installation von raspbian hab ich mit hcitool lescan die Sensoren gleich gefunden. Dann FHEM und MQTT installiert und meine 7 Sensoren eingebunden (Copy+Paste der 7 Definitionen aus und in die fhem.cfg). Das erste abrufen hat geklappt, nach einem manuellen update kam schon der error (Invalid argument (22). Anschließend hab ich viel versucht und anscheinend das Systen kaputt konfiguriert. Gut nochmal von vorne, jetzt aber geziel. ;)
Nach der 2. Installation von raspbian funktioninert hcitool lescan ohne Probleme. 2-3x getestet. Anschließend wieder FHEM laut Debian Anleitung mit apt-get installiert und 5 Sensoren definiert. Wieder nach ein paar Sekunden der gleiche Fehler wie oben. In der Konsole bekomme ich jetzt den FehlerCode AuswählenDisable scan failed: Input/output error
Anschließend hab ich alle 5 Devices gelöscht, google angeschmissen und das gefunden. https://stackoverflow.com/questions/22062037/hcitool-lescan-shows-i-o-error
Also das in der Konsole eingegebenCode Auswählen
hciconfig hci0 down
hciconfig hci0 up
und jetzt funktioniert es auch wieder aus der Konsole. 5-10 Minuten gewartet, immer wieder erneut versucht. Keine Probleme. Anschließend hab ich dann langsam Stück für Stück 5 der 7 Sensoren in der Web-UI definiert, immer wieder ausprobiert, gespeichert und NICHT neugestartet. Abrufen klappt aus FHEM und der Konsole.
Jetzt starte ich FHEM neu, 1-2 Sensoren gehen auf active, der rest error (Invalid argument (22)). In der Konsole bekomme ich jetzt nach ein paar Scans auch wieder den FehlerCode AuswählenDisable scan failed: Input/output error
Die Prozedur nachdem ich hciconfig hci0 ... eingegeben habe, habe ich jetzt 2x wiederholt. Immer mit dem selben Ergebnis. Sobald FHEM und ein neustart ins spiel kommen, fängt hcitool zu zicken an. Beim 2. mal nachstellen hat das Empfangen des ersten Sensors länger gedauert als das empfangen des 2. Sensors. Der 2. Sensor war active, der 1. anschließend gleich mal auf error, ohne neustart.
Ich hab auch auf der Ubuntu-VM alle paar Tage Probleme die Sensoren zu empfangen. Den Fehler kann ich falls gewünscht nachreichen könnte aber "charWrite faild" sein, bin mir aber nicht sicher. Ein neustart von FHEM hilft da nicht mehr, ich muss die komplette Maschine neustarten. Das war unteranderem ein Grund auf den Pi zu wechseln ;)
Kannst du dir das ganze erklären? Falls du verbose 5 Logs benötigst, sag bescheid.
Danke & Grüße
Edit:
hcitool in der konsole funktioniert eigenartigerweise noch, in FHEM aber Invalid argument (22)
Zitat von: majestro84 am 29 April 2018, 11:27:38Das ist ein Device Log ich brauche bitte fhem Log
Hier Mal ein Auszug aus dem logCode Auswählen
2018-04-29_08:13:19 K_Abstellraum_Temperatur active 2018-04-29_08:18:10 K_Abstellraum_Temperatur write sensor data
2018-04-29_08:18:21 K_Abstellraum_Temperatur temperature: 21.7
2018-04-29_08:18:21 K_Abstellraum_Temperatur humidity: 48.1
2018-04-29_08:18:21 K_Abstellraum_Temperatur active 2018-04-29_08:23:32 K_Abstellraum_Temperatur write sensor data
2018-04-29_08:23:41 K_Abstellraum_Temperatur lastGattError: charWrite faild
2018-04-29_08:23:41 K_Abstellraum_Temperatur error 2018-04-29_08:23:41 K_Abstellraum_Temperatur active 2018-04-29_08:29:50 K_Abstellraum_Temperatur write sensor data
2018-04-29_08:29:56 K_Abstellraum_Temperatur lastGattError: charWrite faild
2018-04-29_08:29:56 K_Abstellraum_Temperatur error 2018-04-29_08:29:56 K_Abstellraum_Temperatur active 2018-04-29_08:35:44 K_Abstellraum_Temperatur write sensor data
2018-04-29_08:35:49 K_Abstellraum_Temperatur lastGattError: charWrite faild
2018-04-29_08:35:49 K_Abstellraum_Temperatur error 2018-04-29_08:35:49 K_Abstellraum_Temperatur active 2018-04-29_08:41:46 K_Abstellraum_Temperatur write sensor data
2018-04-29_08:42:33 K_Abstellraum_Temperatur lastGattError: Transport endpoint is not connected (107) 2018-04-29_08:42:33 K_Abstellraum_Temperatur error 2018-04-29_08:47:26 K_Abstellraum_Temperatur write sensor data
2018-04-29_08:48:11 K_Abstellraum_Temperatur lastGattError: Transport endpoint is not connected (107) 2018-04-29_08:48:11 K_Abstellraum_Temperatur error 2018-04-29_08:53:09 K_Abstellraum_Temperatur write sensor data
2018-04-29_08:53:24 K_Abstellraum_Temperatur lastGattError: charWrite faild
2018-04-29_08:53:24 K_Abstellraum_Temperatur error 2018-04-29_08:53:24 K_Abstellraum_Temperatur active 2018-04-29_08:58:19 K_Abstellraum_Temperatur write sensor data
2018-04-29_08:58:29 K_Abstellraum_Temperatur temperature: 21.6
2018-04-29_08:58:29 K_Abstellraum_Temperatur humidity: 46.3
2018-04-29_08:58:29 K_Abstellraum_Temperatur active
Vielleicht kannst du da was mit anfangen.
Danke schon mal im voraus.
Schönen Sonntag noch
Gesendet von meinem Redmi Note 4 mit Tapatalk
2018.04.29 08:47:26 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - Run CreateParamGatttool with mod: write
2018.04.29 08:47:26 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - Write XiaomiBTLESens_ExecGatttool_Run K_Abstellraum_Temperatur|4C:65:A8:D3:EF:EE|write|0x10|0100
2018.04.29 08:47:26 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - stateRequestTimer: Call Request Timer
2018.04.29 08:47:26 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:EF:EE --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.04.29 08:47:36 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool loop result
2018.04.29 08:47:36 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:EF:EE --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 1
2018.04.29 08:47:46 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool loop result
2018.04.29 08:47:46 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:EF:EE --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 2
2018.04.29 08:47:56 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool loop result
2018.04.29 08:47:56 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:EF:EE --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 3
2018.04.29 08:48:06 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool loop result
2018.04.29 08:48:06 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:EF:EE --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 4
2018.04.29 08:48:10 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool loop result connect error,Transport endpoint is not connected (107)
2018.04.29 08:48:10 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool result connect error,Transport endpoint is not connected (107)
2018.04.29 08:48:11 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Done: gatttool return string: K_Abstellraum_Temperatur|4C:65:A8:D3:EF:EE|error|write|0x10|{"gtResult":"Transport endpoint is not connected (107)"}
2018.04.29 08:48:11 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - ProcessingErrors
2018.04.29 08:48:11 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - WriteReadings: Readings were written
2018.04.29 08:53:09 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - Run CreateParamGatttool with mod: write
2018.04.29 08:53:09 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - Write XiaomiBTLESens_ExecGatttool_Run K_Abstellraum_Temperatur|4C:65:A8:D3:EF:EE|write|0x10|0100
2018.04.29 08:53:09 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - stateRequestTimer: Call Request Timer
2018.04.29 08:53:09 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:EF:EE --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.04.29 08:53:19 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool loop result
2018.04.29 08:53:19 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:EF:EE --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 1
2018.04.29 08:53:22 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool loop result connect error,Transport endpoint is not connected (107)
2018.04.29 08:53:22 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:EF:EE --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 2
2018.04.29 08:53:24 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool loop result connect error,Software caused connection abort (103)
2018.04.29 08:53:24 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:EF:EE --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 3
2018.04.29 08:53:24 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool loop result connect,No route to host (113)
2018.04.29 08:53:24 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool result connect,No route to host (113)
2018.04.29 08:53:24 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Done: gatttool return string: K_Abstellraum_Temperatur|4C:65:A8:D3:EF:EE|ok|write|0x10|{"gtResult":"No route to host (113)"}
2018.04.29 08:53:24 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - ProcessingNotification
2018.04.29 08:53:24 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - ProcessingNotification: handle 0x10
2018.04.29 08:53:24 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - Thermo/Hygro Sens Handle0x10
2018.04.29 08:53:24 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - WriteReadings: Readings were written
2018.04.29 08:53:24 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - WriteReadings: Readings were written
2018.04.29 08:58:19 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - Run CreateParamGatttool with mod: write
2018.04.29 08:58:19 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - Write XiaomiBTLESens_ExecGatttool_Run K_Abstellraum_Temperatur|4C:65:A8:D3:EF:EE|write|0x10|0100
2018.04.29 08:58:19 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - stateRequestTimer: Call Request Timer
2018.04.29 08:58:19 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:EF:EE --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.04.29 08:58:21 3: ENIGMA2 WZ_Receiver: ERROR: Unable to read tv bouquet '1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.dbe09.tv" ORDER BY bouquet' from device
2018.04.29 08:58:29 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 31 2e 36 20 48 3d 34 36 2e 33 00
Notification handle = 0x000e value,54 3d 32 31 2e 36 20 48 3d 34 36 2e 32 00
Notification handle = 0x000e value,54 3d 32 31 2e 36 20 48 3d 34 36 2e 35 00
Notification handle = 0x000e value,54 3d 32 31 2e 36 20 48 3d 34 36 2e 34 00
2018.04.29 08:58:29 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 31 2e 36 20 48 3d 34 36 2e 33 00
Notification handle = 0x000e value,54 3d 32 31 2e 36 20 48 3d 34 36 2e 32 00
Notification handle = 0x000e value,54 3d 32 31 2e 36 20 48 3d 34 36 2e 35 00
Notification handle = 0x000e value,54 3d 32 31 2e 36 20 48 3d 34 36 2e 34 00
2018.04.29 08:58:29 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Done: gatttool return string: K_Abstellraum_Temperatur|4C:65:A8:D3:EF:EE|ok|write|0x10|{"gtResult":"54 3d 32 31 2e 36 20 48 3d 34 36 2e 33 00 "}
2018.04.29 08:58:29 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - ProcessingNotification
2018.04.29 08:58:29 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - ProcessingNotification: handle 0x10
2018.04.29 08:58:29 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - Thermo/Hygro Sens Handle0x10
2018.04.29 08:58:29 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - WriteReadings: Readings were written
2018.04.29 09:03:46 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - Run CreateParamGatttool with mod: write
2018.04.29 09:03:46 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - Write XiaomiBTLESens_ExecGatttool_Run K_Abstellraum_Temperatur|4C:65:A8:D3:EF:EE|write|0x10|0100
2018.04.29 09:03:46 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - stateRequestTimer: Call Request Timer
2018.04.29 09:03:46 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:EF:EE --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.04.29 09:03:48 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool loop result connect error,Transport endpoint is not connected (107)
2018.04.29 09:03:48 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:EF:EE --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 1
2018.04.29 09:03:49 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool loop result connect error,Software caused connection abort (103)
2018.04.29 09:03:49 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:EF:EE --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 2
2018.04.29 09:03:49 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool loop result connect,No route to host (113)
2018.04.29 09:03:49 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Run: gatttool result connect,No route to host (113)
2018.04.29 09:03:49 5: XiaomiBTLESens (K_Abstellraum_Temperatur) - ExecGatttool_Done: gatttool return string: K_Abstellraum_Temperatur|4C:65:A8:D3:EF:EE|ok|write|0x10|{"gtResult":"No route to host (113)"}
2018.04.29 09:03:49 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - ProcessingNotification
2018.04.29 09:03:49 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - ProcessingNotification: handle 0x10
2018.04.29 09:03:49 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - Thermo/Hygro Sens Handle0x10
2018.04.29 09:03:49 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - WriteReadings: Readings were written
2018.04.29 09:03:49 4: XiaomiBTLESens (K_Abstellraum_Temperatur) - WriteReadings: Readings were written
2018.04.29 18:30:37 3: XiaomiBTLESens (TestPflanze) - defined with BTMAC C4:7C:8D:66:17:03
2018.04.29 18:32:07 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 6585
2018.04.29 18:32:12 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:13 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:14 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:15 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:17 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:18 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:19 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:20 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:21 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:22 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:23 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:24 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:25 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:26 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:28 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:29 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:30 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:31 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:32 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:33 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:34 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:35 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:36 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:37 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:38 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:39 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:32:41 3: XiaomiBTLESens (TestPflanze) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.04.29 18:33:42 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 6667
2018.04.29 18:37:59 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 6913
root@happyfamilyserver:~# ps ax | grep gatttool
7895 ? S 0:00 sh -c gatttool -i hci0 -b C4:7C:8D:66:17:03 --char-read -a 0x38 2>&1 /dev/null
7896 ? S 0:00 gatttool -i hci0 -b C4:7C:8D:66:17:03 --char-read -a 0x38 /dev/null
7909 pts/0 S+ 0:00 grep gatttool
root@happyfamilyserver:~#
Internals:
BTMAC C4:7C:8D:66:17:03
CHANGED
DEF C4:7C:8D:66:17:03
INTERVAL 300
NAME TestPflanze
NOTIFYDEV global,TestPflanze
NR 234
NTFY_ORDER 50-TestPflanze
STATE 32
TYPE XiaomiBTLESens
VERSION 2.0.12
loglevel 4
READINGS:
2018-04-28 10:30:14 battery ok
2018-04-28 10:30:14 batteryLevel 99
2018-04-28 11:14:39 fertility 0
2018-04-28 10:30:14 firmware 3.1.8
2018-04-29 18:57:11 lastGattError The BlockingCall Process terminated unexpectedly. Timedout
2018-04-28 11:14:39 lux 27476
2018-04-28 11:14:39 moisture 1
2018-04-29 18:59:32 state read sensor data
2018-04-28 11:14:39 temperature 32
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 0
RUNNING_PID:
abortFn XiaomiBTLESens_ExecGatttool_Aborted
arg TestPflanze|C4:7C:8D:66:17:03|read|0x38
bc_pid 48
finishFn XiaomiBTLESens_ExecGatttool_Done
fn XiaomiBTLESens_ExecGatttool_Run
pid 8011
telnet telnetForBlockingFn_1525018483.13791_127.0.0.1_37632
timeout 90
abortArg:
Attributes:
event-on-update-reading fertility,moisture,temperature
model flowerSens
room Balkon,XiaomiBTLESens
stateFormat temperature
root@happyfamilyserver:~# ps ax | grep gatttool
10262 pts/0 S+ 0:00 grep gatttool
root@happyfamilyserver:~#ps -ax
9950 ? S< 0:00 [hci0]
9951 ? S< 0:00 [hci0]
9955 ? Ss 0:00 /usr/lib/bluetooth/bluetoothd
root@happyfamilyserver:~# ps ax | grep gatttool
10386 ? S 0:00 sh -c gatttool -i hci0 -b C4:7C:8D:66:17:03 --char-read -a 0x38 2>&1 /dev/null
10387 ? S 0:00 gatttool -i hci0 -b C4:7C:8D:66:17:03 --char-read -a 0x38 /dev/null
10399 pts/0 S+ 0:00 grep gatttool
root@happyfamilyserver:~#
root@happyfamilyserver:~# ps
PID TTY TIME CMD
7384 pts/0 00:00:00 bash
7463 pts/0 00:00:00 ps
root@happyfamilyserver:~#
Zitat von: CoolTux am 29 April 2018, 21:12:02
Gatttool scheint also auch sauber beendet zu werden. Wie oft hast du diese Einträge, kommen überhaupt saubere Werte?
2018.05.02 20:15:30 4: XiaomiBTLESens (F_Temperatur) - Run CreateParamGatttool with mod: write 2018.05.02 20:15:30 5: XiaomiBTLESens (F_Temperatur) - Write XiaomiBTLESens_ExecGatttool_Run F_Temperatur|4C:65:A8:D3:F4:47|write|0x10|0100 2018.05.02 20:15:30 4: XiaomiBTLESens (F_Temperatur) - stateRequestTimer: Call Request Timer 2018.05.02 20:15:31 5: XiaomiBTLESens (F_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:F4:47 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0 2018.05.02 20:15:37 5: XiaomiBTLESens (F_Temperatur) - ExecGatttool_Run: gatttool loop result connect error,Transport endpoint is not connected (107) 2018.05.02 20:15:37 5: XiaomiBTLESens (F_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:F4:47 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 1 2018.05.02 20:15:38 5: XiaomiBTLESens (F_Temperatur) - ExecGatttool_Run: gatttool loop result connect error,Software caused connection abort (103) 2018.05.02 20:15:38 5: XiaomiBTLESens (F_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:F4:47 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 2 2018.05.02 20:15:38 5: XiaomiBTLESens (F_Temperatur) - ExecGatttool_Run: gatttool loop result connect,No route to host (113) 2018.05.02 20:15:38 4: XiaomiBTLESens (F_Temperatur) - ExecGatttool_Run: gatttool result connect,No route to host (113) 2018.05.02 20:15:39 5: XiaomiBTLESens (F_Temperatur) - ExecGatttool_Done: gatttool return string: F_Temperatur|4C:65:A8:D3:F4:47|ok|write|0x10|{"gtResult":"No route to host (113)"} 2018.05.02 20:15:39 4: XiaomiBTLESens (F_Temperatur) - ProcessingNotification 2018.05.02 20:15:39 4: XiaomiBTLESens (F_Temperatur) - ProcessingNotification: handle 0x10 2018.05.02 20:15:39 4: XiaomiBTLESens (F_Temperatur) - Thermo/Hygro Sens Handle0x10 2018.05.02 20:15:39 4: XiaomiBTLESens (F_Temperatur) - WriteReadings: Readings were written 2018.05.02 20:15:39 4: XiaomiBTLESens (F_Temperatur) - WriteReadings: Readings were written
Zitat von: Steffen am 01 Mai 2018, 07:35:41
Könnte jemand eine USB-Bluetooth Stick empfehlen der eine gute Reichweite hat?
Zitat von: majestro84 am 02 Mai 2018, 20:28:22
Hallo
Habe mal einen Sensor Dichter an den Dongle gepackt. Er bekommt relativ häufig Werte allerdings kommen zwischen durch auch immer diese Fehler.Code Auswählen2018.05.02 20:15:30 4: XiaomiBTLESens (F_Temperatur) - Run CreateParamGatttool with mod: write 2018.05.02 20:15:30 5: XiaomiBTLESens (F_Temperatur) - Write XiaomiBTLESens_ExecGatttool_Run F_Temperatur|4C:65:A8:D3:F4:47|write|0x10|0100 2018.05.02 20:15:30 4: XiaomiBTLESens (F_Temperatur) - stateRequestTimer: Call Request Timer 2018.05.02 20:15:31 5: XiaomiBTLESens (F_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:F4:47 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0 2018.05.02 20:15:37 5: XiaomiBTLESens (F_Temperatur) - ExecGatttool_Run: gatttool loop result connect error,Transport endpoint is not connected (107) 2018.05.02 20:15:37 5: XiaomiBTLESens (F_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:F4:47 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 1 2018.05.02 20:15:38 5: XiaomiBTLESens (F_Temperatur) - ExecGatttool_Run: gatttool loop result connect error,Software caused connection abort (103) 2018.05.02 20:15:38 5: XiaomiBTLESens (F_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:F4:47 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 2 2018.05.02 20:15:38 5: XiaomiBTLESens (F_Temperatur) - ExecGatttool_Run: gatttool loop result connect,No route to host (113) 2018.05.02 20:15:38 4: XiaomiBTLESens (F_Temperatur) - ExecGatttool_Run: gatttool result connect,No route to host (113) 2018.05.02 20:15:39 5: XiaomiBTLESens (F_Temperatur) - ExecGatttool_Done: gatttool return string: F_Temperatur|4C:65:A8:D3:F4:47|ok|write|0x10|{"gtResult":"No route to host (113)"} 2018.05.02 20:15:39 4: XiaomiBTLESens (F_Temperatur) - ProcessingNotification 2018.05.02 20:15:39 4: XiaomiBTLESens (F_Temperatur) - ProcessingNotification: handle 0x10 2018.05.02 20:15:39 4: XiaomiBTLESens (F_Temperatur) - Thermo/Hygro Sens Handle0x10 2018.05.02 20:15:39 4: XiaomiBTLESens (F_Temperatur) - WriteReadings: Readings were written 2018.05.02 20:15:39 4: XiaomiBTLESens (F_Temperatur) - WriteReadings: Readings were written
Was kann ich da machen um diese Fehler weg zubekommen?
Danke schonmal für die Hilfe
Gruß Alex
Gesendet von meinem Redmi Note 4 mit Tapatalk
2018.05.02 20:15:30 4: XiaomiBTLESens (F_Temperatur) - Run CreateParamGatttool with mod: write
2018.05.02 20:15:30 5: XiaomiBTLESens (F_Temperatur) - Write XiaomiBTLESens_ExecGatttool_Run F_Temperatur|4C:65:A8:D3:F4:47|write|0x10|0100
2018.05.02 20:15:30 4: XiaomiBTLESens (F_Temperatur) - stateRequestTimer: Call Request Timer
2018.05.02 20:15:31 5: XiaomiBTLESens (F_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:F4:47 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.05.02 20:15:37 5: XiaomiBTLESens (F_Temperatur) - ExecGatttool_Run: gatttool loop result connect error,Transport endpoint is not connected (107)
2018.05.02 20:15:37 5: XiaomiBTLESens (F_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:F4:47 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 1
2018.05.02 20:15:38 5: XiaomiBTLESens (F_Temperatur) - ExecGatttool_Run: gatttool loop result connect error,Software caused connection abort (103)
2018.05.02 20:15:38 5: XiaomiBTLESens (F_Temperatur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D3:F4:47 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 2
2018.05.02 20:15:38 5: XiaomiBTLESens (F_Temperatur) - ExecGatttool_Run: gatttool loop result connect,No route to host (113)
2018.05.02 20:15:38 4: XiaomiBTLESens (F_Temperatur) - ExecGatttool_Run: gatttool result connect,No route to host (113)
2018.05.02 20:15:39 5: XiaomiBTLESens (F_Temperatur) - ExecGatttool_Done: gatttool return string: F_Temperatur|4C:65:A8:D3:F4:47|ok|write|0x10|{"gtResult":"No route to host (113)"}
2018.05.02 20:15:39 4: XiaomiBTLESens (F_Temperatur) - ProcessingNotification
2018.05.02 20:15:39 4: XiaomiBTLESens (F_Temperatur) - ProcessingNotification: handle 0x10
2018.05.02 20:15:39 4: XiaomiBTLESens (F_Temperatur) - Thermo/Hygro Sens Handle0x10
2018.05.02 20:15:39 4: XiaomiBTLESens (F_Temperatur) - WriteReadings: Readings were written
2018.05.02 20:15:39 4: XiaomiBTLESens (F_Temperatur) - WriteReadings: Readings were written
Internals:
BTMAC C4:7C:8D:65:D8:64
CFGFN ./FHEM/plants.cfg
DEF C4:7C:8D:65:D8:64
INTERVAL 300
NAME plants_xiaomi_schnittlauch
NOTIFYDEV global,plants_xiaomi_schnittlauch
NR 692
NTFY_ORDER 50-plants_xiaomi_schnittlauch
STATE initialized
TYPE XiaomiBTLESens
VERSION 2.0.12
loglevel 4
READINGS:
2018-05-05 10:06:27 battery ok
2018-05-05 10:06:27 batteryLevel 83
2018-05-05 10:06:27 fertility 1434
2018-05-05 10:06:27 firmware 2.7.0
2018-05-04 19:06:03 lastGattError charWrite faild
2018-05-05 10:06:27 lux 8447
2018-05-05 10:06:27 moisture 69
2018-05-05 10:09:01 state initialized
2018-05-05 10:06:27 temperature 16.3
helper:
CallBattery 0
CallSensDataCounter 0
Attributes:
alias Schnittlauch
event-min-interval moisture:1800
event-on-change-reading .*
group Pflanzen
interval 300
model flowerSens
room 7.3_Plants
stateFormat Feuchtigkeit: moisture Licht: lux lm Temperatur: temperature°C Nährstoffe: fertility Batterie: batteryLevel%
Zitat von: christiang am 05 Mai 2018, 14:54:03
P.S. Configgenerierer mit templates :P
Zitat von: christiang am 05 Mai 2018, 10:12:52
Hallo CoolTux,
erstmal vielen Dank für das tolle Modul! Funktioniert bisher einwandfrei mit mittlerweile 10 Sensoren.
Ich habe jedoch das Problem, dass nach einem rereadCfg die Devices im Zustand "initialized" sind und auch bleiben. Nach einem restart von Fhem werden die Messwerte jedoch einwandfrei gelesen.
Ist das ein Problem an meinem Setup oder tritt das bei anderen auch auf?
Viele Grüße,
Christian
Hier ein list von einem Device im Zustand initialized:Code Auswählen
Internals:
BTMAC C4:7C:8D:65:D8:64
CFGFN ./FHEM/plants.cfg
DEF C4:7C:8D:65:D8:64
INTERVAL 300
NAME plants_xiaomi_schnittlauch
NOTIFYDEV global,plants_xiaomi_schnittlauch
NR 692
NTFY_ORDER 50-plants_xiaomi_schnittlauch
STATE initialized
TYPE XiaomiBTLESens
VERSION 2.0.12
loglevel 4
READINGS:
2018-05-05 10:06:27 battery ok
2018-05-05 10:06:27 batteryLevel 83
2018-05-05 10:06:27 fertility 1434
2018-05-05 10:06:27 firmware 2.7.0
2018-05-04 19:06:03 lastGattError charWrite faild
2018-05-05 10:06:27 lux 8447
2018-05-05 10:06:27 moisture 69
2018-05-05 10:09:01 state initialized
2018-05-05 10:06:27 temperature 16.3
helper:
CallBattery 0
CallSensDataCounter 0
Attributes:
alias Schnittlauch
event-min-interval moisture:1800
event-on-change-reading .*
group Pflanzen
interval 300
model flowerSens
room 7.3_Plants
stateFormat Feuchtigkeit: moisture Licht: lux lm Temperatur: temperature°C Nährstoffe: fertility Batterie: batteryLevel%
Internals:
BTMAC C4:7C:8D:65:D8:64
CFGFN ./FHEM/plants.cfg
DEF C4:7C:8D:65:D8:64
INTERVAL 300
NAME plants_xiaomi_schnittlauch
NOTIFYDEV global,plants_xiaomi_schnittlauch
NR 700
NTFY_ORDER 50-plants_xiaomi_schnittlauch
STATE initialized
TYPE XiaomiBTLESens
VERSION 2.0.13
loglevel 4
READINGS:
2018-05-07 10:06:11 battery ok
2018-05-07 10:06:11 batteryLevel 83
2018-05-07 23:57:42 fertility 1628
2018-05-07 10:06:11 firmware 2.7.0
2018-05-08 00:03:24 lastGattError charWrite faild
2018-05-07 23:57:42 lux 150
2018-05-07 23:57:42 moisture 68
2018-05-08 00:06:28 state initialized
2018-05-07 23:57:42 temperature 16.8
helper:
CallBattery 0
CallSensDataCounter 0
Attributes:
alias Schnittlauch
event-min-interval moisture:1800
event-on-change-reading .*
group Pflanzen
interval 300
model flowerSens
room 7.3_Plants
stateFormat Feuchtigkeit: moisture Licht: lux lm Temperatur: temperature°C Nährstoffe: fertility Batterie: batteryLevel%
Zitat von: Tobias am 22 Mai 2018, 17:33:45
Hi,
Ich möchte euch ganz kurz meine Erfahrungen mitteilen.
Der raspi zero w passt perfekt in das Box -Sens Gehäuse, die bohrungen passen exakt zur Befestigung der Platine.
Die Reichweite ist verblüffend, ich bekomme wirklich einen 10m Radius sauber abgedeckt.
Der raspi fragt 6 pflanzensensoren ab und verteilt die Messwerte per mqtt.
So läuft er völlig autark :)
Gesendet von meinem Leap mit Tapatalk
Zitat von: Tobias am 24 Mai 2018, 08:47:20
Auf dem raspi läuft fhem. Dort sind die Sensoren als BTLESens Modul definiert und die Werte per MQTT_Bridge ins mqtt geschoben.
In meiner Haupt fhem Installation sind die Sensoren per mqtt_Device definiert
Gesendet von meinem Leap mit Tapatalk
Zitat von: CoolTux am 24 Mai 2018, 09:01:26
Wäre das mit dem SSH Support nicht einfacher gewesen? So musstest Du ja noch ein FHEM installieren was auch gepflegt werden will.
Ansonsten hätte man auch FHEM2FHEM machen können und im Master FHEM einfach nur einen gleichnamigen Dummy anlegen.
define XiaomiBTLESens XiaomiBTLESens XX:XX:XX:XX:XX:XX
attr XiaomiBTLESens model flowerSens
attr XiaomiBTLESens room Sensors
define XiaomiBTLESens.MQTT MQTT_DEVICE
attr XiaomiBTLESens.MQTT IODev Mosquitto
attr XiaomiBTLESens.MQTT event-on-change-reading .*
attr XiaomiBTLESens.MQTT room MQTT
attr XiaomiBTLESens.MQTT stateFormat transmission-state
attr XiaomiBTLESens.MQTT subscribeReading_battery /XiaomiBTLESens/battery
attr XiaomiBTLESens.MQTT subscribeReading_fertility /XiaomiBTLESens/fertility
attr XiaomiBTLESens.MQTT subscribeReading_lux /XiaomiBTLESens/lux
attr XiaomiBTLESens.MQTT subscribeReading_moisture /XiaomiBTLESens/moisture
attr XiaomiBTLESens.MQTT subscribeReading_temperature /XiaomiBTLESens/temperature
define XiaomiBTLESens.notify notify XiaomiBTLESens:(lux|temperature|battery|moisture|fertility).* {$EVTPART0=~ s/\://g;;;; WriteMQTT("192.168.XXX.XXX","",$NAME,$EVTPART0,$EVTPART1);;;;}
attr XiaomiBTLESens.notify room Sensors
sub
WriteMQTT($$$$$)
{
my ($ip, $port, $topic, $name, $event) = @_;
my $cmd='mosquitto_pub -h '.$ip.' -t /'.$topic.'/'.$name.' -m "'.$event.'"';
system $cmd;
}
Zitat von: jorge am 29 Mai 2018, 14:01:46
Erstmal Danke für das tolle Modul. Bei dem Wetter in Potsdam sehr hilfreich bei der Bewässerungssteuerung...
Ich setze auch auf 'verteilte Intelligenz' bei meiner Home-Automation, schon aufgrund der BT-Reichweite. Also habe ich ein RPiZeroW (Remote) mit einer FHEM-Instanz versehen und XiaomiBTLESens eingebunden:Code Auswählendefine XiaomiBTLESens XiaomiBTLESens XX:XX:XX:XX:XX:XX
attr XiaomiBTLESens model flowerSens
attr XiaomiBTLESens room Sensors
Da ich für andere Sensoren (ESPEasy, sonoff) auch MQTT installiert ist, habe ich die Anbindung folgendermaßen realisiert:
(Weitere) Prerequisites:
- MQTT server irgendwo im Heimnetz installiert
- MQTT Client auf dem Remote
- s.a.https://wiki.fhem.de/wiki/MQTT_Einf%C3%BChrung
In FHEM auf dem zentralen Rechner:Code Auswählen
define XiaomiBTLESens.MQTT MQTT_DEVICE
attr XiaomiBTLESens.MQTT IODev Mosquitto
attr XiaomiBTLESens.MQTT event-on-change-reading .*
attr XiaomiBTLESens.MQTT room MQTT
attr XiaomiBTLESens.MQTT stateFormat transmission-state
attr XiaomiBTLESens.MQTT subscribeReading_battery /XiaomiBTLESens/battery
attr XiaomiBTLESens.MQTT subscribeReading_fertility /XiaomiBTLESens/fertility
attr XiaomiBTLESens.MQTT subscribeReading_lux /XiaomiBTLESens/lux
attr XiaomiBTLESens.MQTT subscribeReading_moisture /XiaomiBTLESens/moisture
attr XiaomiBTLESens.MQTT subscribeReading_temperature /XiaomiBTLESens/temperature
Auf dem Remote in FHEM ein notify definieren:Code Auswählen
define XiaomiBTLESens.notify notify XiaomiBTLESens:(lux|temperature|battery|moisture|fertility).* {$EVTPART0=~ s/\://g;;;; WriteMQTT("192.168.XXX.XXX","",$NAME,$EVTPART0,$EVTPART1);;;;}
attr XiaomiBTLESens.notify room Sensors
...und in 99_myutils eine neue Funktion definierenCode Auswählen
sub
WriteMQTT($$$$$)
{
my ($ip, $port, $topic, $name, $event) = @_;
my $cmd='mosquitto_pub -h '.$ip.' -t /'.$topic.'/'.$name.' -m "'.$event.'"';
system $cmd;
}
Läuft bis jetzt stabil.
LG
Jorge
Zitat von: MadMax-FHEM am 24 Mai 2018, 12:52:06
Wollte mich nicht "auf-/ bzw. dazwischendrängen" aber habe das per ssh und ebenfalls PI ZeroW gelöst... ;)
Gruß, Joachim
no gatttool binary found. Please check if bluez-package is properly installed
Zitat von: CoolTux am 31 Mai 2018, 13:37:32Danke für die schnelle Antwort aber das war schon installiert, den von diesem hatte ich vorher schon das Modul genutzt. Aber die Reichweite
Design bedingt schummelt das Modul da ein bisschen. Bitte installiere auf dem aufrufenden pi ebenfalls das bluez-package
Zitat von: CoolTux am 31 Mai 2018, 13:54:17
Du musst natürlich ssh für passwortlosen Zugang einrichten. Sprich mit Keyfile
root@happyfamilyserver:~# ssh pi@192.168.178.137
Linux raspberrypi 4.14.34+ #1110 Mon Apr 16 14:51:42 BST 2018 armv6l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu May 31 17:34:44 2018 from 91.64.217.22
pi@raspberrypi:~ $
root@happyfamilyserver:~# su - fhem
root@happyfamilyserver:~#
root@happyfamilyserver:~# ls -la /root/.ssh
total 16
drwx------ 1 root root 84 May 31 18:46 .
drwx------ 1 root root 654 May 31 20:18 ..
-rw------- 1 root root 1675 May 31 18:39 id_rsa
-rw-r--r-- 1 root root 404 May 31 18:39 id_rsa.pub
-rw------- 1 root root 222 May 31 18:40 known_hosts
-rw------- 1 root root 222 May 31 18:38 known_hosts.old
root@happyfamilyserver:~#
root@happyfamilyserver:~# ssh pi@192.168.178.137
Linux raspberrypi 4.14.34+ #1110 Mon Apr 16 14:51:42 BST 2018 armv6l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu May 31 18:14:03 2018 from 192.168.178.102
pi@raspberrypi:~ $ ls -la
total 28
drwxr-xr-x 3 pi pi 4096 May 31 16:46 .
drwxr-xr-x 3 root root 4096 Apr 18 00:16 ..
-rw------- 1 pi pi 526 May 31 17:57 .bash_history
-rw-r--r-- 1 pi pi 220 Apr 18 00:16 .bash_logout
-rw-r--r-- 1 pi pi 3523 Apr 18 00:16 .bashrc
-rw-r--r-- 1 pi pi 675 Apr 18 00:16 .profile
drwx------ 2 pi pi 4096 May 31 18:13 .ssh
pi@raspberrypi:~ $ cd .ssh
pi@raspberrypi:~/.ssh $ ls -la
total 28
drwx------ 2 pi pi 4096 May 31 18:13 .
drwxr-xr-x 3 pi pi 4096 May 31 16:46 ..
-rw------- 1 pi pi 404 May 31 16:46 authorized_keys
-rwxrwxrwx 1 pi pi 1675 May 31 17:59 id_rsa
-rwxrwxrwx 1 pi pi 404 May 31 17:59 id_rsa.pub
-rw-r--r-- 1 pi pi 222 May 31 17:59 known_hosts
-rw-r--r-- 1 pi pi 222 May 31 17:59 known_hosts.old
pi@raspberrypi:~/.ssh $
Zitat von: CoolTux am 31 Mai 2018, 20:31:49
Als root geht schon mal.
Nun kopierst du den .ssh von root nach /opt/fhem/ und gibst mit chown -R ./opt/fhem/.ssh dem User fhem und der Gruppe dialout die Rechte des Verzeichnisses und allem darunter.
root@happyfamilyserver:~/.ssh# ls -la /opt/fhem/.ssh
total 16
drwxrwxrwx 1 fhem dialout 84 May 31 19:59 .
drwxr-xr-x 1 fhem dialout 470 May 31 12:53 ..
-rwxrwxrwx 1 fhem dialout 1675 May 31 19:59 id_rsa
-rwxrwxrwx 1 fhem dialout 404 May 31 19:59 id_rsa.pub
-rwxrwxrwx 1 fhem dialout 222 May 31 19:59 known_hosts
-rwxrwxrwx 1 fhem dialout 222 May 31 19:59 known_hosts.old
root@happyfamilyserver:~/.ssh#
Zitat von: CoolTux am 31 Mai 2018, 20:58:35
Bitte einmal als root ausführen
su -s /bin/bash -c "ssh pi@192.168.178.137 'ls /etc/'" fhem
root@happyfamilyserver:~# su -s /bin/bash -c "ssh pi@192.168.178.137 'ls /etc/'" fhem
X11
adduser.conf
alternatives
apt
avahi
bash.bashrc
bash_completion
bash_completion.d
bindresvport.blacklist
binfmt.d
bluetooth
ca-certificates
ca-certificates.conf
calendar
cifs-utils
console-setup
cron.d
cron.daily
cron.hourly
cron.monthly
cron.weekly
crontab
dbus-1
debconf.conf
debian_version
default
deluser.conf
dhcp
dhcpcd.conf
dhcpcd.duid
dhcpcd.secret
dphys-swapfile
dpkg
environment
fake-hwclock.data
fb.modes
fstab
gai.conf
gdb
groff
group
gshadow
gss
host.conf
hostname
hosts
hosts.allow
hosts.deny
idmapd.conf
ifplugd
init
init.d
initramfs-tools
inputrc
insserv.conf.d
iproute2
issue
issue.net
kernel
ld.so.cache
ld.so.conf
ld.so.conf.d
ld.so.preload
ldap
libaudit.conf
libnl-3
locale.alias
locale.gen
localtime
logcheck
login.defs
logrotate.conf
logrotate.d
machine-id
magic
magic.mime
mailcap
mailcap.order
manpath.config
mime.types
mke2fs.conf
modprobe.d
modules
modules-load.d
motd
mtab
nanorc
netconfig
network
networks
newt
nsswitch.conf
opt
os-release
pam.conf
pam.d
passwd
paxctld.conf
perl
plymouth
polkit-1
ppp
profile
profile.d
protocols
python
python2.7
python3
python3.5
rc.local
rc0.d
rc1.d
rc2.d
rc3.d
rc4.d
rc5.d
rc6.d
rcS.d
request-key.conf
request-key.d
resolv.conf
resolv.conf.bak
resolvconf
resolvconf.conf
rmt
rpc
rpi-issue
rsyslog.conf
rsyslog.d
samba
securetty
security
selinux
services
sgml
shadow
shells
skel
ssh
ssl
staff-group-for-usr-local
subgid
subgid-
subuid
subuid-
sudoers
sudoers.d
sysctl.conf
sysctl.d
systemd
terminfo
timezone
tmpfiles.d
triggerhappy
ucf.conf
udev
ufw
update-motd.d
usb_modeswitch.conf
usb_modeswitch.d
vim
wgetrc
wpa_supplicant
xdg
xml
root@happyfamilyserver:~#
root@happyfamilyserver:~# ssh pi@192.168.178.137 gatttool -i hci0 -b C4:7C:8D:66:17:03 --char-read -a 0x38
Characteristic value/descriptor: 64 27 33 2e 31 2e 38
root@happyfamilyserver:~#
Zitat von: Steffen am 31 Mai 2018, 21:43:10
das habe ich jetzt auch mal versucht:Code Auswählen
root@happyfamilyserver:~# ssh pi@192.168.178.137 gatttool -i hci0 -b C4:7C:8D:66:17:03 --char-read -a 0x38
Characteristic value/descriptor: 64 27 33 2e 31 2e 38
root@happyfamilyserver:~#
Zitat von: Steffen am 31 Mai 2018, 21:47:13
Ok jetzt habe ich es wohl, habe dann nochmal bei sshHost "pi@192.168.178.137" eingegeben statt nur "192.168.178.137" und schon kommen die Werte rein.
Vielen Vielen Dank für deine Geduld und Hilfe...
Mfg Steffen
Zitat von: Tobias am 02 Juni 2018, 17:32:06
Ey Leute, warum macht ihr das sooo kompliziert.
Auf dem pi zero w mit aktuellem Image funktioniert das gatttool perfekt. Soll der raspi zero sich doch selbst darum kümmern und die fertigen sensorwerte dem Haupt fhem bereitstellen.
Dieses SSH gewurschtel ist echt nicht mehr nötig.
Bereitstellung der Werte Funktionen mit fhem2fhem oder mein Favorit per mqtt
Gesendet von meinem Leap mit Tapatalk
Internals:
BTMAC C4:7C:8D:61:51:BE
CFGFN
DEF C4:7C:8D:61:51:BE
INTERVAL 300
NAME Feuchtigkeit_Balkon_11
NOTIFYDEV global,Feuchtigkeit_Balkon_11
NR 147226
NTFY_ORDER 50-Feuchtigkeit_Balkon_11
STATE active
TYPE XiaomiBTLESens
VERSION 2.0.12
loglevel 4
READINGS:
2018-06-03 15:15:08 battery ok
2018-06-03 15:15:08 batteryLevel 100
2018-06-03 15:15:14 fertility 0
2018-06-03 15:15:08 firmware 2.6.2
2018-06-03 15:14:34 lastGattError No route to host (113)
2018-06-03 15:15:14 lux 0
2018-06-03 15:15:14 moisture 0
2018-06-03 15:15:14 state active
2018-06-03 15:15:14 temperature 0
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1528031708.35676
updateTimestampCallBattery 2018-06-03 15:15:08
Attributes:
model flowerSens
room XiaomiBTLESens
sshHost jemand@192.168.1.94
Zitat von: Invers am 09 Juni 2018, 20:34:56
Hi, mir ist aufgefallen, dass alle Thermo/Hygrometer in STATE und state
T: 29.2 H: 37.0
eingetragen haben. Das betrifft Homematic und Andere.
Bei den Xiaomis, die ich seit gestern habe, steht hingegen;
active
Ich weiss nicht, wie es bei Geräten anderer Hersteller ist, wollte aber fragen, ob es sinnvoll wäre, das zu vereinheitlichen.
Meine Thermometerliste sieht nun eigenartig aus.
2018.06.12 09:52:18 1: reload: Error:Modul 74_XiaomiBTLESens deactivated:
syntax error at ./FHEM/74_XiaomiBTLESens.pm line 804, near ") if"
2018.06.12 09:52:18 0: syntax error at ./FHEM/74_XiaomiBTLESens.pm line 804, near ") if"
2018.06.12 09:52:18 1: PERL WARNING: Subroutine XiaomiBTLESens_Initialize redefined at ./FHEM/74_XiaomiBTLESens.pm line 112.
2018.06.12 09:52:18 1: PERL WARNING: Subroutine XiaomiBTLESens_Define redefined at ./FHEM/74_XiaomiBTLESens.pm line 148.
2018.06.12 09:52:18 1: PERL WARNING: Subroutine XiaomiBTLESens_Undef redefined at ./FHEM/74_XiaomiBTLESens.pm line 179.
2018.06.12 09:52:18 1: PERL WARNING: Subroutine XiaomiBTLESens_Attr redefined at ./FHEM/74_XiaomiBTLESens.pm line 195.
2018.06.12 09:52:18 1: PERL WARNING: Subroutine XiaomiBTLESens_Notify redefined at ./FHEM/74_XiaomiBTLESens.pm line 262.
2018.06.12 09:52:18 1: PERL WARNING: Subroutine XiaomiBTLESens_stateRequest redefined at ./FHEM/74_XiaomiBTLESens.pm line 294.
2018.06.12 09:52:18 1: PERL WARNING: Subroutine XiaomiBTLESens_stateRequestTimer redefined at ./FHEM/74_XiaomiBTLESens.pm line 331.
2018.06.12 09:52:18 1: PERL WARNING: Subroutine XiaomiBTLESens_Set redefined at ./FHEM/74_XiaomiBTLESens.pm line 346.
2018.06.12 09:52:18 1: PERL WARNING: Subroutine XiaomiBTLESens_Get redefined at ./FHEM/74_XiaomiBTLESens.pm line 381.
2018.06.12 09:52:18 1: PERL WARNING: Subroutine XiaomiBTLESens_CreateParamGatttool redefined at ./FHEM/74_XiaomiBTLESens.pm line 417.
2018.06.12 09:52:18 1: PERL WARNING: Subroutine XiaomiBTLESens_ExecGatttool_Run redefined at ./FHEM/74_XiaomiBTLESens.pm line 442.
2018.06.12 09:52:18 1: PERL WARNING: Subroutine XiaomiBTLESens_ExecGatttool_Done redefined at ./FHEM/74_XiaomiBTLESens.pm line 541.
2018.06.12 09:52:18 1: PERL WARNING: Subroutine XiaomiBTLESens_ExecGatttool_Aborted redefined at ./FHEM/74_XiaomiBTLESens.pm line 573.
2018.06.12 09:52:18 1: PERL WARNING: Subroutine XiaomiBTLESens_ProcessingNotification redefined at ./FHEM/74_XiaomiBTLESens.pm line 588.
2018.06.12 09:52:18 1: PERL WARNING: Subroutine XiaomiBTLESens_FlowerSensHandle0x38 redefined at ./FHEM/74_XiaomiBTLESens.pm line 647.
2018.06.12 09:52:18 1: PERL WARNING: Subroutine XiaomiBTLESens_FlowerSensHandle0x35 redefined at ./FHEM/74_XiaomiBTLESens.pm line 672.
2018.06.12 09:52:18 1: PERL WARNING: Subroutine XiaomiBTLESens_ThermoHygroSensHandle0x18 redefined at ./FHEM/74_XiaomiBTLESens.pm line 702.
2018.06.12 09:52:18 1: PERL WARNING: Subroutine XiaomiBTLESens_ThermoHygroSensHandle0x10 redefined at ./FHEM/74_XiaomiBTLESens.pm line 725.
2018.06.12 09:52:18 1: PERL WARNING: Subroutine XiaomiBTLESens_ThermoHygroSensHandle0x24 redefined at ./FHEM/74_XiaomiBTLESens.pm line 755.
2018.06.12 09:52:18 1: PERL WARNING: Subroutine XiaomiBTLESens_ThermoHygroSensHandle0x3 redefined at ./FHEM/74_XiaomiBTLESens.pm line 773.
2018.06.12 09:52:18 1: reload: Error:Modul 74_XiaomiBTLESens deactivated:
syntax error at ./FHEM/74_XiaomiBTLESens.pm line 804, near ") if"
2018.06.12 09:52:18 0: syntax error at ./FHEM/74_XiaomiBTLESens.pm line 804, near ") if"
2018.06.12 09:52:18 1: reload: Error:Modul 74_XiaomiBTLESens deactivated:
syntax error at ./FHEM/74_XiaomiBTLESens.pm line 804, near ") if"
2018.06.12 09:52:18 0: syntax error at ./FHEM/74_XiaomiBTLESens.pm line 804, near ") if"
2018.06.12 09:52:18 3: [STV] You are using a deprecated MAC detection mechanism using ifconfig.
2018.06.12 09:52:18 3: [STV] Please install Pearl Modules libnet-address-ip-local-perl and libio-interface-perl
2018.06.12 09:52:19 1: configDB: Cannot load module XiaomiBTLESens
Cannot load module XiaomiBTLESens
Cannot load module XiaomiBTLESens
Zitat von: Invers am 09 Juni 2018, 20:34:56
Hi, mir ist aufgefallen, dass alle Thermo/Hygrometer in STATE und state
T: 29.2 H: 37.0
eingetragen haben. Das betrifft Homematic und Andere.
Bei den Xiaomis, die ich seit gestern habe, steht hingegen;
active
Ich weiss nicht, wie es bei Geräten anderer Hersteller ist, wollte aber fragen, ob es sinnvoll wäre, das zu vereinheitlichen.
Meine Thermometerliste sieht nun eigenartig aus.
ZitatWie oft sendet der eigentlich?
Zitat von: ext23 am 20 Juni 2018, 18:25:51
Ahh, sehr schön, das steht aber auch versteckt in der command ref ...
Wie oft sendet der eigentlich? Wenn man die App benutzt sendet der ja im Sekunden Takt so wie das aussieht. Und speichert der Sensor Daten? Weil die App da ein Sync macht...?
/Daniel
Zitat von: ext23 am 21 Juni 2018, 10:19:52
OK und der Sensor arbeitet dann als "Observer", sprich der sende nichts solange kein "Broadcaster" etwas von ihm will, richtig? Schick also keine Advertiser Messages.
Dann schau ich mir das mal an.
Hat einer schon langzeit Erfahrungen mit den Dingern in Sachen Korrosion? Gerade die Messfühler für die Leitfähigkeit. Und dann wundert mich, dass die Platine nicht eingeharzt ist, sondern nur simpler Lack auf der Oberseite und nicht mal an den Seiten ist. Da diffundiert doch früher oder später Wasser durch.....
/Daniel
Zitat von: CoolTux am 21 Juni 2018, 11:14:34
Dir ist schon klar das das Teil offiziell keine 5 Dollar kostet? Bei Bedarf kaufst dir halt alle Jahre ein neues. ;D
Zitat von: ext23 am 21 Juni 2018, 11:17:09
Naja meiner kam 10 aus China, aber ich will eben nicht alle paar Jahre was neues. Und wenn Schwermetalle an die Erst abgegeben werden will ich das auch nicht ;-) Dann nützt mir die gute Pflege er Blume auch nicht ;-) Aber auch wenn es nur 4 Euro sind, macht bei 30 Stück nen batzen Geld...
/Daniel
ZitatIst der Flower Care nun eigentlich Wasserdichtig? Die Dichtung lässt es ja vermuten, das Datenblatt auch. woanders steht aber das die Garantie erlischt wenn man es zu gut meint mit der Gießkanne. Also laufen die Dinger auch unter freiem Himmel?
2018.06.25 11:22:52 1: PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 717.
2018.06.25 11:22:52 3: eval: {XiaomiBTLESens_ExecGatttool_Done('TMP_SZ|4C:65:A8:D2:53:8C|ok|read|0x18|{"gtResult":"64 "}')}
2018.06.25 11:22:52 1: PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 718.
2018.06.25 11:22:52 3: eval: {XiaomiBTLESens_ExecGatttool_Done('TMP_SZ|4C:65:A8:D2:53:8C|ok|read|0x18|{"gtResult":"64 "}')}
Zitat von: Invers am 25 Juni 2018, 11:27:18
Hi, ich hatte heute nach Neustart von fhem folgende Einträge imn Log:Code Auswählen2018.06.25 11:22:52 1: PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 717.
2018.06.25 11:22:52 3: eval: {XiaomiBTLESens_ExecGatttool_Done('TMP_SZ|4C:65:A8:D2:53:8C|ok|read|0x18|{"gtResult":"64 "}')}
2018.06.25 11:22:52 1: PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 718.
2018.06.25 11:22:52 3: eval: {XiaomiBTLESens_ExecGatttool_Done('TMP_SZ|4C:65:A8:D2:53:8C|ok|read|0x18|{"gtResult":"64 "}')}
Scheint dennoch zu funktionieren.
Zitat von: ext23 am 25 Juni 2018, 15:43:02
Hi,
also mit ssh das blockiert ja alles, da braucht der 15 Sekunden bis ein Ergebnis kommt, wenn es denn kommt. Ich glaube das ist keine so gute Lösung. Da werd ich mir mal die ESP32 Geschichte anschauen.
/Daniel
Zitat von: CoolTux am 25 Juni 2018, 16:06:46
Dein FHEM arbeitet in der Zeit der Abfrage also nicht mehr? Du kannst z.B. die WebGui nicht mehr aufrufen?
Zitat von: ext23 am 25 Juni 2018, 15:43:02
Hi,
also mit ssh das blockiert ja alles, da braucht der 15 ...
Zitat von: ext23 am 25 Juni 2018, 16:47:12Ich habe auch die G-Tags und für lepresence und den Xiaomi Flower Sensoren bisher zwei BT Sticks verwendet.
Mhh liegt wirklich an den G-Tags. Das ist wohl zu viel des Guten. Ich schau mir mal die Sache mit dem ESP32 an, dann ist das etwas getrennt.
/Daniel
Zitat von: mark79 am 25 Juni 2018, 22:15:17
Bzgl. Abruf via ESP32 (openmqttgateway), das funktioniert bei mir gut, was nur fehlt ist das Battery Reading.
Zitat von: ext23 am 25 Juni 2018, 22:32:49Hast eine PN :)
Hast du mal ein Binary für mich, oder gibt es die irgendwo? (Sofern die WLAN Daten nicht hardcoded sind.) Battery Reading, naja, unwichtig, merkt man ja wenn die tot sind.
Zitat von: ext23 am 25 Juni 2018, 23:02:26
Danke,
(Ich hab den ESP32 noch nicht in meiner Arduino IDE drin, daher reicht mir das erst mal zu probieren!)
Danke.
ssh 192.168.XX.XX 'gatttool -b C4:7C:8D:66:XX:XX --char-write-req -a 0x33 --value=A01F 2>&1 >/dev/null && gatttool -b C4:7C:8D:66:XX:XX --char-read --handle=0x35'
2018.06.27 10:15:12.066 4: XiaomiBTLESens (Rosen) - Run CreateParamGatttool with mod: read
2018.06.27 10:15:12.066 1: PERL WARNING: Use of uninitialized value $handle in concatenation (.) or string at ./FHEM/74_XiaomiBTLESens.pm line 427.
...
2018.06.27 10:15:12.085 1: PERL WARNING: Use of uninitialized value $handle in concatenation (.) or string at ./FHEM/74_XiaomiBTLESens.pm line 431.
2018.06.27 10:15:12.086 5: XiaomiBTLESens (Rosen) - Read XiaomiBTLESens_ExecGatttool_Run Rosen|C4:7C:8D:66:2B:51|read|
...
2018.06.27 11:31:54.046 5: XiaomiBTLESens (Rosen) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:XX:XX --char-read -a 2>&1 /dev/null and loop 0
2018.06.27 11:31:54.046 5: XiaomiBTLESens (Oleander) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:XX:XX --char-read -a 2>&1 /dev/null and loop 0
2018.06.27 11:31:54.060 5: XiaomiBTLESens (Rosen) - ExecGatttool_Run: gatttool loop result Cannot parse integer value '/dev/null' for -a
Usage:
gatttool [OPTION...]
Help Options:
-h, --help Show help options
--help-all Show all help options
--help-gatt Show all GATT commands
--help-params Show all Primary Services/Characteristics arguments
--help-char-read-write Show all Characteristics Value/Descriptor Read/Write arguments
define Rosen XiaomiBTLESens C4:7C:8D:66:XX:XX
attr Rosen model flowerSense
attr Rosen interval 1800
attr Rosen room Pflanzen
attr sshHost 192.168.X.XX
attr Rosen stateFormat Temp: temperature °C, Dünger: fertility µS/cm, Feuchtigkeit: moisture %, Licht: lux Lux, Batterie: batteryLevel %
define FileLog_Rosen FileLog ./log/Rosen-%Y-%m.log Rosen:batteryLevel:.*|Rosen:fertility:.*|Rosen:lux:.*|Rosen:moisture:.*|Rosen:temperature:.*
call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:XX:XX --char-read -a 2>&1 /dev/null and loop 0
nternals:
BTMAC C4:7C:8D:66:2B:51
CFGFN include/xiaomi-plant-monitor.cfg
CHANGED
DEF C4:7C:8D:66:2B:51
INTERVAL 1800
NAME Rosen
NOTIFYDEV global,Rosen
NR 107
NTFY_ORDER 50-Rosen
STATE Temp: 16.0 °C, Dünger: 147 µS/cm, Feuchtigkeit: 26 %, Licht: 839 Lux, Batterie: 99 %
TYPE XiaomiBTLESens
VERSION 2.0.14
loglevel 4
READINGS:
2018-06-28 17:08:42 batteryLevel 99
2018-06-28 17:08:41 fertility 147
2018-06-28 17:08:42 firmware 3.1.8
2018-06-28 17:08:41 lux 839
2018-06-28 17:08:41 moisture 26
2018-06-28 18:24:43 state read sensor data
2018-06-28 17:08:40 temperature 16.0
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 0
Attributes:
interval 1800
model flowerSense
room Pflanzen
stateFormat Temp: temperature °C, Dünger: fertility µS/cm, Feuchtigkeit: moisture %, Licht: lux Lux, Batterie: batteryLevel %
2018.06.28 19:43:01.671 5: XiaomiBTLESens (Rosen) - ExecGatttool_Run: call gatttool with command: ssh pi@192.168.3.61 'gatttool -i hci0 -b C4:7C:8D:66:2B:51 --char-read -a 2>&1 /dev/null' and loop 0
2018.06.28 19:43:01.754 4: Connection accepted from WEB_192.168.3.41_48804
2018.06.28 19:43:01.906 4: WEB_192.168.3.41_48804 GET /fhem?XHR=1&inform=type=status;filter=Rosen;since=1530207621.236;fmt=JSON&fw_id=119×tamp=1530207781746; BUFLEN:0
2018.06.28 19:43:02.097 5: XiaomiBTLESens (Rosen) - ExecGatttool_Run: gatttool loop result Cannot parse integer value '/dev/null' for -a
Usage:
gatttool [OPTION...]
Help Options:
-h, --help Show help options
--help-all Show all help options
--help-gatt Show all GATT commands
--help-params Show all Primary Services/Characteristics arguments
--help-char-read-write Show all Characteristics Value/Descriptor Read/Write arguments
Application Options:
-i, --adapter=hciX Specify local adapter interface
-b, --device=MAC Specify remote Bluetooth address
-t, --addr-type=[public | random] Set LE address type. Default,public
-m, --mtu=MTU Specify the MTU size
-p, --psm=PSM Specify the PSM for GATT/ATT over BR/EDR
-l, --sec-level=[low | medium | high] Set security level. Default,low
-I, --interactive Use interactive mode
Internals:
BTMAC C4:7C:8D:66:2B:51
CFGFN include/xiaomi-plant-monitor.cfg
CHANGED
DEF C4:7C:8D:66:2B:51
INTERVAL 1800
NAME Rosen
NOTIFYDEV global,Rosen
NR 107
NTFY_ORDER 50-Rosen
STATE Temp: 15.6 °C, Dünger: 151 µS/cm, Feuchtigkeit: 26 %, Licht: 584 Lux, Batterie: 99 %
TYPE XiaomiBTLESens
VERSION 2.0.14
loglevel 4
READINGS:
2018-06-28 19:22:54 batteryLevel 99
2018-06-28 19:22:54 fertility 151
2018-06-28 19:22:55 firmware 3.1.8
2018-06-28 19:22:53 lux 584
2018-06-28 19:22:54 moisture 26
2018-06-28 19:42:58 state read sensor data
2018-06-28 19:22:53 temperature 15.6
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 0
Attributes:
interval 1800
model flowerSense
room Pflanzen
sshHost pi@192.168.3.61
stateFormat Temp: temperature °C, Dünger: fertility µS/cm, Feuchtigkeit: moisture %, Licht: lux Lux, Batterie: batteryLevel %
define Rosen XiaomiBTLESens C4:7C:8D:66:XX:XX
attr loglevel 5
attr Rosen model flowerSense
attr Rosen interval 1800
attr Rosen room Pflanzen
attr Rosen sshHost pi@192.168.3.61
attr Rosen stateFormat Temp: temperature °C, Dünger: fertility µS/cm, Feuchtigkeit: moisture %, Licht: lux Lux, Batterie: batteryLevel %
define FileLog_Rosen FileLog ./log/Rosen-%Y-%m.log Rosen:batteryLevel:.*|Rosen:fertility:.*|Rosen:lux:.*|Rosen:moisture:.*|Rosen:temperature:.*
gatttool -i hci0 -b C4:7C:8D:66:2B:51 --char-read -a
list Tomate2
Internals:
BTMAC C4:7C:8D:63:5A:87
DEF C4:7C:8D:63:5A:87
INTERVAL 3600
NAME Tomate2
NR 26
STATE Temp: 16.9 °C, Dünger: 87 µS/cm, Feuchtigkeit: 43 %, Licht: 3668 Lux, Batterie: 99 %
TYPE XiaomiFlowerSens
VERSION 1.0.3
READINGS:
2018-07-07 07:37:04 battery ok
2018-07-07 07:37:04 batteryLevel 99
2018-07-07 07:37:04 fertility 87
2018-07-07 07:37:04 firmware 3.1.8
2018-05-12 11:00:20 lastGattError Unknown Error, look at verbose 5 output
2018-07-07 07:37:04 lux 3668
2018-07-07 07:37:04 moisture 43
2018-07-07 07:37:04 state active
2017-08-29 20:44:59 stateSoilMoisture ok
2018-07-07 07:37:04 temperature 16.9
helper:
Attributes:
disabledForIntervals 21:00-24:00 00:00-07:00
event-aggregator moisture:10800:none:max
interval 3600
minMoisture 40
room 1.0_Tomatenhaus
stateFormat Temp: temperature °C, Dünger: fertility µS/cm, Feuchtigkeit: moisture %, Licht: lux Lux, Batterie: batteryLevel %
list PumpEin
Internals:
DEF Tomate2:minMoisture.low set Pumpe on-for-timer 60
NAME PumpeEin
NOTIFYDEV Tomate2
NR 38
NTFY_ORDER 50-PumpeEin
REGEXP Tomate2:minMoisture.low
STATE 2018-07-07 07:37:04
TYPE notify
READINGS:
2018-07-03 17:31:35 state active
Attributes:
room 1.0_Tomatenhaus
2018.07.07 19:10:59 4: Sub XiaomiFlowerSens_Run (Tomate2) - start blocking call
2018.07.07 19:11:00 4: Sub XiaomiFlowerSens_BlockingRun (Tomate2) - Running nonBlocking
2018.07.07 19:11:00 5: Sub XiaomiFlowerSens_stateRequestTimer (Tomate2) - Request Timer wird aufgerufen
2018.07.07 19:11:00 5: Sub XiaomiFlowerSens_callGatttool (Tomate2) - WFR: 1
2018.07.07 19:11:02 4: Sub XiaomiFlowerSens_callGatttool (Tomate2) - write data to local host
2018.07.07 19:11:02 4: Sub XiaomiFlowerSens_callGatttool (Tomate2) - call gatttool charWrite loop 1
2018.07.07 19:11:02 4: Sub XiaomiFlowerSens_callGatttool (Tomate2) - charWrite wresp: Characteristic value was written successfully
2018.07.07 19:11:02 4: Sub XiaomiFlowerSens_callGatttool (Tomate2) - run gatttool
2018.07.07 19:11:02 4: Sub XiaomiFlowerSens_callGatttool (Tomate2) - call data from local host
2018.07.07 19:11:02 4: Sub XiaomiFlowerSens_callGatttool (Tomate2) - call gatttool charRead loop 1
2018.07.07 19:11:02 4: Sub XiaomiFlowerSens_callGatttool (Tomate2) - processing gatttool response. sensData[0]: Characteristic value/descriptor
2018.07.07 19:11:02 4: Sub XiaomiFlowerSens_callGatttool (Tomate2) - processing gatttool response. sensData: 06 01 00 e3 1b 00 00 23 7b 00 02 3c 00 fb 34 9b
2018.07.07 19:11:02 4: Sub XiaomiFlowerSens_callGatttool (Tomate2) - call firm/batt data from host local host
2018.07.07 19:11:02 4: Sub XiaomiFlowerSens (Tomate2) - call gatttool readBatFw loop 1
2018.07.07 19:11:02 4: Sub XiaomiFlowerSens_callGatttool (Tomate2) - processing gatttool response. batFwData: 63 27 33 2e 31 2e 38
2018.07.07 19:11:02 4: Sub XiaomiFlowerSens_BlockingRun (Tomate2) - Processing response data: 06 01 00 e3 1b 00 00 23 7b 00 02 3c 00 fb 34 9b
2018.07.07 19:11:02 4: Sub XiaomiFlowerSens_BlockingRun (Tomate2) - no dataerror, create encode json: {"lux":7139,"blevel":99,"fertility":123,"firmware":"3.1.8","temp":262,"moisture":35}
2018.07.07 19:11:02 1: sendEmail RCP: xxx@xxx.de
2018.07.07 19:11:02 1: sendEmail Subject: Tomate2 ist trocken Wert: 41
2018.07.07 19:11:02 1: sendEmail Text: Tomate2 Feuchtewert: 41
2018.07.07 19:11:02 1: sendEmail Anhang:
2018.07.07 19:11:09 1: sendEmail returned: Jul 07 19:11:09 tomatenpi sendEmail[31605]: Email was sent successfully!
2018.07.07 19:11:09 4: Sub XiaomiFlowerSens_BlockingDone (Tomate2) - Abschluss!
list Tomate2nachricht
Internals:
DEF Tomate2:minMoisture.low {DebianMail('xxx@xxx.de',$NAME.' ist trocken Wert: '.ReadingsVal("Tomate2","moisture",0),$NAME.' Feuchtewert: '.ReadingsVal("Tomate2","moisture",0));;}
NAME Tomate2nachricht
NOTIFYDEV Tomate2
NR 29
NTFY_ORDER 50-Tomate2nachricht
REGEXP Tomate2:minMoisture.low
STATE 2018-07-08 15:57:01
TYPE notify
READINGS:
2018-07-04 09:18:52 state active
Zitat von: u.becker am 09 Juli 2018, 08:39:13
Falls es relevant ist, ich nutze noch das "alte" 74_XiaomiFlowerSens Modul
Danke
2018.07.11 13:03:24 4: XiaomiBTLESens (Tomate2) - Run CreateParamGatttool with mod: write
2018.07.11 13:03:25 5: XiaomiBTLESens (Tomate2) - Write XiaomiBTLESens_ExecGatttool_Run Tomate2|C4:7C:8D:63:5A:87|write|0x33|A01F
2018.07.11 13:03:25 4: XiaomiBTLESens (Tomate2) - stateRequestTimer: Call Request Timer
2018.07.11 13:03:25 5: XiaomiBTLESens (Tomate2) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:63:5A:87 --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 0
2018.07.11 13:03:29 5: XiaomiBTLESens (Tomate2) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.07.11 13:03:29 4: XiaomiBTLESens (Tomate2) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.07.11 13:03:29 5: XiaomiBTLESens (Tomate2) - ExecGatttool_Done: gatttool return string: Tomate2|C4:7C:8D:63:5A:87|ok|write|0x33|{"gtResult":"no data response"}
2018.07.11 13:03:29 4: XiaomiBTLESens (Tomate2) - Run CreateParamGatttool with mod: read
2018.07.11 13:03:29 5: XiaomiBTLESens (Tomate2) - Read XiaomiBTLESens_ExecGatttool_Run Tomate2|C4:7C:8D:63:5A:87|read|0x35
2018.07.11 13:03:29 5: XiaomiBTLESens (Tomate2) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:63:5A:87 --char-read -a 0x35 2>&1 /dev/null and loop 0
2018.07.11 13:03:29 5: XiaomiBTLESens (Tomate2) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,bc 00 00 86 27 00 00 26 81 00 02 3c 00 fb 34 9b
2018.07.11 13:03:29 4: XiaomiBTLESens (Tomate2) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,bc 00 00 86 27 00 00 26 81 00 02 3c 00 fb 34 9b
2018.07.11 13:03:29 5: XiaomiBTLESens (Tomate2) - ExecGatttool_Done: gatttool return string: Tomate2|C4:7C:8D:63:5A:87|ok|read|0x35|{"gtResult":"bc 00 00 86 27 00 00 26 81 00 02 3c 00 fb 34 9b "}
2018.07.11 13:03:29 4: XiaomiBTLESens (Tomate2) - ProcessingNotification
2018.07.11 13:03:29 4: XiaomiBTLESens (Tomate2) - ProcessingNotification: handle 0x35
2018.07.11 13:03:29 4: XiaomiBTLESens (Tomate2) - FlowerSens Handle0x35
2018.07.11 13:03:29 1: sendEmail RCP: lane@pbf.de
2018.07.11 13:03:29 1: sendEmail Subject: Tomate2 ist trocken Wert: 50
2018.07.11 13:03:29 1: sendEmail Text: Tomate2 Feuchtewert: 50
2018.07.11 13:03:29 1: sendEmail Anhang:
2018.07.11 13:03:36 1: sendEmail returned: Jul 11 13:03:36 tomatenpi sendEmail[20411]: Email was sent successfully!
2018.07.11 13:03:36 4: XiaomiBTLESens (Tomate2) - WriteReadings: Readings were written
2018.07.07 19:11:02 4: Sub XiaomiFlowerSens_callGatttool (Tomate2) - processing gatttool response. batFwData: 63 27 33 2e 31 2e 38
2018.07.07 19:11:02 4: Sub XiaomiFlowerSens_BlockingRun (Tomate2) - Processing response data: 06 01 00 e3 1b 00 00 23 7b 00 02 3c 00 fb 34 9b
2018.07.07 19:11:02 4: Sub XiaomiFlowerSens_BlockingRun (Tomate2) - no dataerror, create encode json: {"lux":7139,"blevel":99,"fertility":123,"firmware":"3.1.8","temp":262,"moisture":35}
2018.07.11 13:03:29 5: XiaomiBTLESens (Tomate2) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:63:5A:87 --char-read -a 0x35 2>&1 /dev/null and loop 0
2018.07.11 13:03:29 5: XiaomiBTLESens (Tomate2) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,bc 00 00 86 27 00 00 26 81 00 02 3c 00 fb 34 9b
2018.07.11 13:03:29 4: XiaomiBTLESens (Tomate2) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,bc 00 00 86 27 00 00 26 81 00 02 3c 00 fb 34 9b
2018.07.11 13:03:29 5: XiaomiBTLESens (Tomate2) - ExecGatttool_Done: gatttool return string: Tomate2|C4:7C:8D:63:5A:87|ok|read|0x35|{"gtResult":"bc 00 00 86 27 00 00 26 81 00 02 3c 00 fb 34 9b "}
2018.07.11 13:03:29 4: XiaomiBTLESens (Tomate2) - ProcessingNotification
2018.07.11 13:03:29 4: XiaomiBTLESens (Tomate2) - ProcessingNotification: handle 0x35
2018.07.11 13:03:29 4: XiaomiBTLESens (Tomate2) - FlowerSens Handle0x35
Zitat von: u.becker am 15 Juli 2018, 12:30:39
Beim "alten" Modul gab's in der Ausgabe einen Eintrag mit "create encode json", worin die erkannten Werte lesbar warenCode Auswählen2018.07.07 19:11:02 4: Sub XiaomiFlowerSens_callGatttool (Tomate2) - processing gatttool response. batFwData: 63 27 33 2e 31 2e 38
2018.07.07 19:11:02 4: Sub XiaomiFlowerSens_BlockingRun (Tomate2) - Processing response data: 06 01 00 e3 1b 00 00 23 7b 00 02 3c 00 fb 34 9b
2018.07.07 19:11:02 4: Sub XiaomiFlowerSens_BlockingRun (Tomate2) - no dataerror, create encode json: {"lux":7139,"blevel":99,"fertility":123,"firmware":"3.1.8","temp":262,"moisture":35}
Beim aktuellen Modul sehe ich das nichtCode Auswählen
2018.07.11 13:03:29 5: XiaomiBTLESens (Tomate2) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:63:5A:87 --char-read -a 0x35 2>&1 /dev/null and loop 0
2018.07.11 13:03:29 5: XiaomiBTLESens (Tomate2) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,bc 00 00 86 27 00 00 26 81 00 02 3c 00 fb 34 9b
2018.07.11 13:03:29 4: XiaomiBTLESens (Tomate2) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,bc 00 00 86 27 00 00 26 81 00 02 3c 00 fb 34 9b
2018.07.11 13:03:29 5: XiaomiBTLESens (Tomate2) - ExecGatttool_Done: gatttool return string: Tomate2|C4:7C:8D:63:5A:87|ok|read|0x35|{"gtResult":"bc 00 00 86 27 00 00 26 81 00 02 3c 00 fb 34 9b "}
2018.07.11 13:03:29 4: XiaomiBTLESens (Tomate2) - ProcessingNotification
2018.07.11 13:03:29 4: XiaomiBTLESens (Tomate2) - ProcessingNotification: handle 0x35
2018.07.11 13:03:29 4: XiaomiBTLESens (Tomate2) - FlowerSens Handle0x35
Muss ich da noch irgendwas einstellen oder fehlt diese Ausgabe einfach?
Zitat
2018.07.17 08:17:22 4: XiaomiBTLESens (PflanzenSensor1) - Run CreateParamGatttool with mod: write
2018.07.17 08:17:29 4: XiaomiBTLESens (PflanzenSensor1) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.07.17 08:17:29 4: XiaomiBTLESens (PflanzenSensor1) - Run CreateParamGatttool with mod: read
2018.07.17 08:17:29 4: XiaomiBTLESens (PflanzenSensor1) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,dd 00 00 aa 01 00 00 29 c6 02 02 3c 00 fb 34 9b
2018.07.17 08:17:29 4: XiaomiBTLESens (PflanzenSensor1) - ProcessingNotification
2018.07.17 08:17:29 4: XiaomiBTLESens (PflanzenSensor1) - ProcessingNotification: handle 0x35
2018.07.17 08:17:29 4: XiaomiBTLESens (PflanzenSensor1) - FlowerSens Handle0x35
2018.07.17 08:17:29 4: XiaomiBTLESens (PflanzenSensor1) - FlowerSens Handle0x35 - lux: 426, moisture: 41, fertility: 710
2018.07.17 08:17:30 4: XiaomiBTLESens (PflanzenSensor1) - WriteReadings: Readings were written
Zitat von: FEHMPiDi am 17 Juli 2018, 13:19:33
Hallo,
kann jemand etwas zur Reichweite der Bluetooth thermo- Hygrometer in Verbindung mit einem RasPi 3 sagen.
Wieviel der Bluetooth devices kann man den eigentlich gleichzeitig mit dem RasPi koppeln. Gibt es da ein maximum?
Danke
Zitat von: FEHMPiDi am 17 Juli 2018, 13:19:33
Wieviel der Bluetooth devices kann man den eigentlich gleichzeitig mit dem RasPi koppeln. Gibt es da ein maximum?
Zitat von: Invers am 18 Juli 2018, 08:54:31
Ich habe 2 Hygro- Thermometer im Einsatz. Eine 73 qm grosse Wohnung kann man damit bezüglich Reichweite nicht abdecken, zumindest, wenn eine Wand dazwischen liegt. Für die Nachbarzimmer reicht es aber schon. Somit fällt bei mir eigentlich nur die Küche raus. Ich war verblüfft, dass die Abweichung beider Thermometer nur 0,2 Grad betragen. Da lagen sie natürlich direkt nebeneinander. Bei der Feuchte gab es gar keine Abweichung. Ich werde mir wohl noch 2 Stück zulegen. Die Batterien stehen nach etwa einem Monat Betriebszeit auf 98 Prozent. Ich denke aber, das ist meine Schuld, weil ich zu häufig abfrage.
[70:28:45:5E:FC:73][LE]> char-read-hnd 0x0011
Characteristic value/descriptor: 60
[70:28:45:5E:FC:73][LE]> char-read-hnd 0x0011
Characteristic value/descriptor: 5e
root@rocki:~# gatttool -i hci0 -b 70:28:45:5E:FC:73 -I
[70:28:45:5E:FC:73][LE]> connect
Attempting to connect to 70:28:45:5E:FC:73
Connection successful
[70:28:45:5E:FC:73][LE]> primary
attr handle: 0x0001, end grp handle: 0x0007 uuid: 00001800-0000-1000-8000-00805f9b34fb
attr handle: 0x0008, end grp handle: 0x0008 uuid: 00001801-0000-1000-8000-00805f9b34fb
attr handle: 0x0009, end grp handle: 0x000b uuid: 00001802-0000-1000-8000-00805f9b34fb
attr handle: 0x000c, end grp handle: 0x000e uuid: 00001803-0000-1000-8000-00805f9b34fb
attr handle: 0x000f, end grp handle: 0x0012 uuid: 0000180f-0000-1000-8000-00805f9b34fb
attr handle: 0x0013, end grp handle: 0x0016 uuid: 0783b03e-8535-b5a0-7140-a304d2495cd7
attr handle: 0x0017, end grp handle: 0x0026 uuid: 8082caa8-41a6-4021-91c6-56f9b954cc18
attr handle: 0x0027, end grp handle: 0x0036 uuid: 0000fef5-0000-1000-8000-00805f9b34fb
attr handle: 0x0037, end grp handle: 0x0043 uuid: 0000180a-0000-1000-8000-00805f9b34fb
[70:28:45:5E:FC:73][LE]>
[70:28:45:5E:FC:73][LE]> char-desc
handle: 0x0001, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0002, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0003, uuid: 00002a00-0000-1000-8000-00805f9b34fb
handle: 0x0004, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0005, uuid: 00002a01-0000-1000-8000-00805f9b34fb
handle: 0x0006, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0007, uuid: 00002a04-0000-1000-8000-00805f9b34fb
handle: 0x0008, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0009, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x000a, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x000b, uuid: 00002a06-0000-1000-8000-00805f9b34fb
handle: 0x000c, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x000d, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x000e, uuid: 00002a06-0000-1000-8000-00805f9b34fb
handle: 0x000f, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0010, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0011, uuid: 00002a19-0000-1000-8000-00805f9b34fb
handle: 0x0012, uuid: 00002902-0000-1000-8000-00805f9b34fb
handle: 0x0013, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0014, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0015, uuid: 0783b03e-8535-b5a0-7140-a304d2495cd8
handle: 0x0016, uuid: 00002902-0000-1000-8000-00805f9b34fb
handle: 0x0017, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0018, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0019, uuid: 9d84b9a3-000c-49d8-9183-855b673fbb85
handle: 0x001a, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x001b, uuid: 5f78df94-798c-46f5-990a-855b673fbb86
handle: 0x001c, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x001d, uuid: 5f78df94-798c-46f5-990a-855b673fbb87
handle: 0x001e, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x001f, uuid: 5f78df94-798c-46f5-990a-855b673fbb88
handle: 0x0020, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0021, uuid: 5f78df94-798c-46f5-990a-855b673fbb89
handle: 0x0022, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0023, uuid: 5f78df94-798c-46f5-990a-855b673fbb90
handle: 0x0024, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0025, uuid: 5f78df94-798c-46f5-990a-b3eb6a065c78
handle: 0x0026, uuid: 00002902-0000-1000-8000-00805f9b34fb
handle: 0x0027, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0028, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0029, uuid: 8082caa8-41a6-4021-91c6-56f9b954cc34
handle: 0x002a, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x002b, uuid: 724249f0-5ec3-4b5f-8804-42345af08651
handle: 0x002c, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x002d, uuid: 6c53db25-47a1-45fe-a022-7c92fb334fd4
handle: 0x002e, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x002f, uuid: 9d84b9a3-000c-49d8-9183-855b673fda31
handle: 0x0030, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0031, uuid: 457871e8-d516-4ca1-9116-57d0b17b9cb2
handle: 0x0032, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0033, uuid: 5f78df94-798c-46f5-990a-b3eb6a065c88
handle: 0x0034, uuid: 00002902-0000-1000-8000-00805f9b34fb
handle: 0x0035, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0036, uuid: 61c8849c-f639-4765-946e-5c3419bebb2a
handle: 0x0037, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0038, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0039, uuid: 00002a29-0000-1000-8000-00805f9b34fb
handle: 0x003a, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x003b, uuid: 00002a24-0000-1000-8000-00805f9b34fb
handle: 0x003c, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x003d, uuid: 00002a25-0000-1000-8000-00805f9b34fb
handle: 0x003e, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x003f, uuid: 00002a27-0000-1000-8000-00805f9b34fb
handle: 0x0040, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0041, uuid: 00002a26-0000-1000-8000-00805f9b34fb
handle: 0x0042, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0043, uuid: 00002a28-0000-1000-8000-00805f9b34fb
Zitat von: mark79 am 28 Juli 2018, 17:05:59
Hallo CoolTux,
wenn du mal Zeit hast, könntest du vielleicht die Xiaomi Oclean SE Zahnbürste mit in dein Modul einbinden? :)
https://www.chinahandys.net/oclean-one-schallzahnbuerste-im-test/
Diese ist noch im Angebot, für 34,19€ https://www.mydealz.de/deals/xiaomi-oclean-se-sonic-elektrische-zahnburste-1193722
Ich habe etwas mit gatttool rumgespielt und mit "char-read-hnd 0x0011" lässt sich der Akku stand auslesen:
Akku 96%Code Auswählen[70:28:45:5E:FC:73][LE]> char-read-hnd 0x0011
Characteristic value/descriptor: 60
Akku 94%Code Auswählen[70:28:45:5E:FC:73][LE]> char-read-hnd 0x0011
Characteristic value/descriptor: 5eCode Auswählenroot@rocki:~# gatttool -i hci0 -b 70:28:45:5E:FC:73 -I
[70:28:45:5E:FC:73][LE]> connect
Attempting to connect to 70:28:45:5E:FC:73
Connection successful
[70:28:45:5E:FC:73][LE]> primary
attr handle: 0x0001, end grp handle: 0x0007 uuid: 00001800-0000-1000-8000-00805f9b34fb
attr handle: 0x0008, end grp handle: 0x0008 uuid: 00001801-0000-1000-8000-00805f9b34fb
attr handle: 0x0009, end grp handle: 0x000b uuid: 00001802-0000-1000-8000-00805f9b34fb
attr handle: 0x000c, end grp handle: 0x000e uuid: 00001803-0000-1000-8000-00805f9b34fb
attr handle: 0x000f, end grp handle: 0x0012 uuid: 0000180f-0000-1000-8000-00805f9b34fb
attr handle: 0x0013, end grp handle: 0x0016 uuid: 0783b03e-8535-b5a0-7140-a304d2495cd7
attr handle: 0x0017, end grp handle: 0x0026 uuid: 8082caa8-41a6-4021-91c6-56f9b954cc18
attr handle: 0x0027, end grp handle: 0x0036 uuid: 0000fef5-0000-1000-8000-00805f9b34fb
attr handle: 0x0037, end grp handle: 0x0043 uuid: 0000180a-0000-1000-8000-00805f9b34fb
[70:28:45:5E:FC:73][LE]>
[70:28:45:5E:FC:73][LE]> char-desc
handle: 0x0001, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0002, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0003, uuid: 00002a00-0000-1000-8000-00805f9b34fb
handle: 0x0004, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0005, uuid: 00002a01-0000-1000-8000-00805f9b34fb
handle: 0x0006, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0007, uuid: 00002a04-0000-1000-8000-00805f9b34fb
handle: 0x0008, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0009, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x000a, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x000b, uuid: 00002a06-0000-1000-8000-00805f9b34fb
handle: 0x000c, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x000d, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x000e, uuid: 00002a06-0000-1000-8000-00805f9b34fb
handle: 0x000f, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0010, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0011, uuid: 00002a19-0000-1000-8000-00805f9b34fb
handle: 0x0012, uuid: 00002902-0000-1000-8000-00805f9b34fb
handle: 0x0013, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0014, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0015, uuid: 0783b03e-8535-b5a0-7140-a304d2495cd8
handle: 0x0016, uuid: 00002902-0000-1000-8000-00805f9b34fb
handle: 0x0017, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0018, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0019, uuid: 9d84b9a3-000c-49d8-9183-855b673fbb85
handle: 0x001a, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x001b, uuid: 5f78df94-798c-46f5-990a-855b673fbb86
handle: 0x001c, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x001d, uuid: 5f78df94-798c-46f5-990a-855b673fbb87
handle: 0x001e, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x001f, uuid: 5f78df94-798c-46f5-990a-855b673fbb88
handle: 0x0020, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0021, uuid: 5f78df94-798c-46f5-990a-855b673fbb89
handle: 0x0022, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0023, uuid: 5f78df94-798c-46f5-990a-855b673fbb90
handle: 0x0024, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0025, uuid: 5f78df94-798c-46f5-990a-b3eb6a065c78
handle: 0x0026, uuid: 00002902-0000-1000-8000-00805f9b34fb
handle: 0x0027, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0028, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0029, uuid: 8082caa8-41a6-4021-91c6-56f9b954cc34
handle: 0x002a, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x002b, uuid: 724249f0-5ec3-4b5f-8804-42345af08651
handle: 0x002c, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x002d, uuid: 6c53db25-47a1-45fe-a022-7c92fb334fd4
handle: 0x002e, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x002f, uuid: 9d84b9a3-000c-49d8-9183-855b673fda31
handle: 0x0030, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0031, uuid: 457871e8-d516-4ca1-9116-57d0b17b9cb2
handle: 0x0032, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0033, uuid: 5f78df94-798c-46f5-990a-b3eb6a065c88
handle: 0x0034, uuid: 00002902-0000-1000-8000-00805f9b34fb
handle: 0x0035, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0036, uuid: 61c8849c-f639-4765-946e-5c3419bebb2a
handle: 0x0037, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0038, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0039, uuid: 00002a29-0000-1000-8000-00805f9b34fb
handle: 0x003a, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x003b, uuid: 00002a24-0000-1000-8000-00805f9b34fb
handle: 0x003c, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x003d, uuid: 00002a25-0000-1000-8000-00805f9b34fb
handle: 0x003e, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x003f, uuid: 00002a27-0000-1000-8000-00805f9b34fb
handle: 0x0040, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0041, uuid: 00002a26-0000-1000-8000-00805f9b34fb
handle: 0x0042, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0043, uuid: 00002a28-0000-1000-8000-00805f9b34fb
Viele Grüße
Mark
Zitat von: CoolTux am 28 Juli 2018, 19:57:20
Hallo Mark,
Ich schaue es mir die Wochen einmal an.
Zitat von: mark79 am 28 Juli 2018, 23:59:26
Hi Cooltux, das wäre super. Wenn du noch was brauchst, sag bescheid und es hat Zeit, der Akku soll angeblich 2 Monate durchhalten. :D
Gibt es eigentlich einen besseren Weg, um so was herauszufinden?
So etwas wie ein Sniffer, also das man die Kommunikation der APP mit dem Device mitschneiden kann...
Viele Grüße
Mark
defmod Pflanze_07 XiaomiBTLESens C4:XX:XX:XX:XX:XX
attr Pflanze_07 DbLogExclude .*
attr Pflanze_07 alias Gasteria
attr Pflanze_07 disabledForIntervals 21:00-24:00 00:00-06:00
attr Pflanze_07 interval 3600
attr Pflanze_07 maxFertility 1000
attr Pflanze_07 maxLux 30000
attr Pflanze_07 maxMoisture 50
attr Pflanze_07 maxTemp 35
attr Pflanze_07 minFertility 300
attr Pflanze_07 minLux 3500
attr Pflanze_07 minMoisture 7
attr Pflanze_07 minTemp 5
attr Pflanze_07 model flowerSens
attr Pflanze_07 room FlowerSens
attr Pflanze_07 userReadings moistureFeeling:moisture.* {\
if (ReadingsVal($name, "moisture", -1) < AttrVal($name, "minMoisture", 0)) {\
return "too dry";;\
}\
elsif (ReadingsVal($name, "moisture", -1) > AttrVal($name, "maxMoisture", 100)) {\
return "too wet";;\
}\
else {\
return "good";;\
}\
}
setstate Pflanze_07 disabled
setstate Pflanze_07 2018-06-14 20:36:07 battery ok
setstate Pflanze_07 2018-06-14 20:36:07 batteryLevel 100
setstate Pflanze_07 2018-07-31 20:33:29 batteryPercent 100
setstate Pflanze_07 2018-07-31 20:33:29 batteryState ok
setstate Pflanze_07 2018-07-31 20:33:31 fertility 1332
setstate Pflanze_07 2018-07-31 20:33:29 firmware 3.1.8
setstate Pflanze_07 2018-07-28 19:14:27 lastGattError charWrite faild
setstate Pflanze_07 2018-07-31 20:33:31 lux 164
setstate Pflanze_07 2018-07-31 20:33:31 moisture 24
setstate Pflanze_07 2018-07-31 20:33:31 moistureFeeling good
setstate Pflanze_07 2018-08-01 21:31:20 state disabled
setstate Pflanze_07 2018-07-31 20:33:31 temperature 28.2
ZitatDeine aktuelle Konfiguration ist korrekt. Wie äußert sich denn das nicht funktionieren? Wird außerhalb des Zeitintervalls nicht abgefragt?[/quote
Ja genau. Du siehst ja, er hat um 21:31:20 den Status geändert und das Device disabled, jedoch wird es am nächsten Tag um 06:00 bzw. nach 06:00 nicht wieder enabled. Da der Abfrage-Intervall auf eine Stunde steht, würde ich erwarten dass spätestens gegen 07:00 die Abfrage ausgeführt werden müsste. Aber selbst um 08:00 hat sich nichts getan. Wenn ich dann manuell abfrage, geht's.
VG, Thomas
ZitatDa braucht ich dann aber bitte ein list vom Device, die raw definitions helfen mir da nicht.
Internals:
BTMAC C4:XX:XX:XX:XX:70
DEF C4:XX:XX:XX:XX:70
INTERVAL 3600
NAME Pflanze_07
NOTIFYDEV global,Pflanze_07
NR 1007
NTFY_ORDER 50-Pflanze_07
STATE disabled
TYPE XiaomiBTLESens
VERSION 2.2.0
loglevel 4
READINGS:
2018-06-14 20:36:07 battery ok
2018-06-14 20:36:07 batteryLevel 100
2018-07-31 20:33:29 batteryPercent 100
2018-07-31 20:33:29 batteryState ok
2018-07-31 20:33:31 fertility 1332
2018-07-31 20:33:29 firmware 3.1.8
2018-07-28 19:14:27 lastGattError charWrite faild
2018-07-31 20:33:31 lux 164
2018-07-31 20:33:31 moisture 24
2018-07-31 20:33:31 moistureFeeling good
2018-08-01 21:31:20 state disabled
2018-07-31 20:33:31 temperature 28.2
helper:
CallBattery 0
CallSensDataCounter 0
Attributes:
DbLogExclude .*
alias Gasteria
disabledForIntervals 21:00-24:00 00:00-06:00
interval 3600
maxFertility 1000
maxLux 30000
maxMoisture 50
maxTemp 35
minFertility 300
minLux 3500
minMoisture 7
minTemp 5
model flowerSens
room FlowerSens
userReadings moistureFeeling:moisture.* {
if (ReadingsVal($name, "moisture", -1) < AttrVal($name, "minMoisture", 0)) {
return "too dry";
}
elsif (ReadingsVal($name, "moisture", -1) > AttrVal($name, "maxMoisture", 100)) {
return "too wet";
}
else {
return "good";
}
}
Internals:
BTMAC C4:XX:XX:XX:XX:70
DEF C4:XX:XX:XX:XX:70
INTERVAL 3600
NAME Pflanze_07
NOTIFYDEV global,Pflanze_07
NR 1007
NTFY_ORDER 50-Pflanze_07
STATE active
TYPE XiaomiBTLESens
VERSION 2.2.0
loglevel 4
READINGS:
2018-06-14 20:36:07 battery ok
2018-06-14 20:36:07 batteryLevel 100
2018-08-02 18:53:42 batteryPercent 100
2018-08-02 18:53:42 batteryState ok
2018-08-03 06:01:28 fertility 1496
2018-08-02 18:53:42 firmware 3.1.8
2018-07-28 19:14:27 lastGattError charWrite faild
2018-08-03 06:01:28 lux 21
2018-08-03 06:01:28 moisture 22
2018-08-03 06:01:28 moistureFeeling good
2018-08-03 06:01:28 state active
2018-08-03 06:01:28 temperature 27.8
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1533228822.27665
updateTimestampCallBattery 2018-08-02 18:53:42
Attributes:
DbLogExclude .*
alias Gasteria
disabledForIntervals 21:00-24:00 00:00-04:00
interval 3600
maxFertility 1000
maxLux 30000
maxMoisture 50
maxTemp 35
minFertility 300
minLux 3500
minMoisture 7
minTemp 5
model flowerSens
room FlowerSens
userReadings moistureFeeling:moisture.* {
if (ReadingsVal($name, "moisture", -1) < AttrVal($name, "minMoisture", 0)) {
return "too dry";
}
elsif (ReadingsVal($name, "moisture", -1) > AttrVal($name, "maxMoisture", 100)) {
return "too wet";
}
else {
return "good";
}
}
hciconfig hci0 reset
bringt dann Can't get device info: No such deviceZitatStatt reset mal up und down nehmen.
fhem@bananapi:~$ sudo hciconfig hci0 up
Can't get device info: No such device
fhem@bananapi:~$
ZitatVielleicht hilft dir so was, ein USB Reset
modprobe -r btusb && sleep 1 && modprobe btusb
Internals:
BTMAC C4:XX:XX:XX:XX:70
DEF C4:XX:XX:XX:XX:70
INTERVAL 3600
NAME Pflanze_07
NOTIFYDEV global,Pflanze_07
NR 1005
NTFY_ORDER 50-Pflanze_07
STATE disabled
TYPE XiaomiBTLESens
VERSION 2.2.0
loglevel 4
READINGS:
2018-06-14 20:36:07 battery ok
2018-06-14 20:36:07 batteryLevel 100
2018-08-10 18:54:20 batteryPercent 100
2018-08-10 18:54:20 batteryState ok
2018-08-10 20:54:55 fertility 1182
2018-08-10 18:54:20 firmware 3.1.8
2018-08-10 18:32:35 lastGattError No route to host (113)
2018-08-10 20:54:55 lux 115
2018-08-10 20:54:55 moisture 21
2018-08-10 20:54:55 moistureFeeling good
2018-08-11 00:58:08 state disabled
2018-08-10 20:54:55 temperature 27.1
helper:
CallBattery 0
CallSensDataCounter 0
Attributes:
DbLogExclude .*
alias Gasteria
disabledForIntervals 21:00-24:00 00:00-06:00
interval 3600
maxFertility 1000
maxLux 30000
maxMoisture 50
maxTemp 35
minFertility 300
minLux 3500
minMoisture 7
minTemp 5
model flowerSens
room FlowerSens
userReadings moistureFeeling:moisture.* {
if (ReadingsVal($name, "moisture", -1) < AttrVal($name, "minMoisture", 0)) {
return "too dry";
}
elsif (ReadingsVal($name, "moisture", -1) > AttrVal($name, "maxMoisture", 100)) {
return "too wet";
}
else {
return "good";
}
}
Internals:
BTMAC C4:YY:YY:YY:YY:4B
DEF C4:YY:YY:YY:YY:4B
INTERVAL 3600
NAME Pflanze_01
NOTIFYDEV global
NR 411
NTFY_ORDER 50-Pflanze_01
STATE disabled
TYPE XiaomiFlowerSens
VERSION 1.4.1
loglevel 4
READINGS:
2018-08-10 18:54:12 battery ok
2018-08-10 18:54:12 batteryLevel 98
2018-08-10 19:58:40 fertility 253
2018-08-10 18:54:12 firmware 3.1.4
2018-08-10 18:32:30 lastGattError No route to host (113)
2018-08-10 19:58:40 lux 1289
2018-08-10 19:58:40 moisture 23
2018-08-10 19:58:40 moistureFeeling good
2018-08-11 00:57:57 state disabled
2018-08-10 19:58:40 temperature 29.2
helper:
CallBatteryFirmware 0
CallSensDataCounter 0
Attributes:
DbLogInclude batteryLevel:86400,fertility,lux,moisture,temperature
alias Kalanchoe
disabledForIntervals 21:00-24:00 00:00-06:00
hciDevice hci0
interval 3600
maxFertility 2000
maxLux 60000
maxMoisture 60
maxTemp 32
minFertility 350
minLux 3000
minMoisture 7
minTemp 10
room FlowerSens
userReadings moistureFeeling:moisture.* {
if (ReadingsVal($name, "moisture", -1) < AttrVal($name, "minMoisture", 0)) {
return "too dry";
}
elsif (ReadingsVal($name, "moisture", -1) > AttrVal($name, "maxMoisture", 100)) {
return "too wet";
}
else {
return "good";
}
}
verbose 0
Zitat von: CoolTux am 29 Juli 2018, 07:24:07Ich bin heute zufällig auf so etwas gestoßen:
Es gibt da so die ein oder andere App. Musst bitte mal schauen. Oder eventuell findest Du sogar schon Infos im Netz.
Zitat von: mark79 am 13 August 2018, 23:47:56
Ich bin heute zufällig auf so etwas gestoßen:
https://www.heise.de/security/meldung/Btlejack-Neues-Gratis-Tool-zum-Belauschen-von-Bluetooth-Verbindungen-4134142.html
https://github.com/virtualabs/btlejack
Man benötigt allerdings ein Micro:Bit, der kostet jedoch nur ~16€.
Zitat von: ToM_ToM am 11 August 2018, 10:26:07
Gegen 0:58 hatte ich FHEM neu gestartet da ich gestern noch bisschen was gebastelt hatte. Kann es sein dass ich das System in der Zeit wo die Geräte disabled sind, nicht neu starten darf da dann die Timer die das Gerät wieder enablen sollen, verloren gehen?
Internals:
BTMAC C4:XX:XX:XX:XX:70
DEF C4:XX:XX:XX:XX:70
INTERVAL 3600
NAME Pflanze_07
NOTIFYDEV global,Pflanze_07
NR 1005
NTFY_ORDER 50-Pflanze_07
STATE active
TYPE XiaomiBTLESens
VERSION 2.2.0
loglevel 4
READINGS:
2018-06-14 20:36:07 battery ok
2018-06-14 20:36:07 batteryLevel 100
2018-08-11 11:39:47 batteryPercent 100
2018-08-11 11:39:47 batteryState ok
2018-08-11 11:39:48 fertility 1149
2018-08-11 11:39:47 firmware 3.1.8
2018-08-10 18:32:35 lastGattError No route to host (113)
2018-08-11 11:39:48 lux 624
2018-08-11 11:39:48 moisture 21
2018-08-11 11:39:48 moistureFeeling good
2018-08-11 11:39:48 state active
2018-08-11 11:39:48 temperature 26.7
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1533980387.58388
updateTimestampCallBattery 2018-08-11 11:39:47
Attributes:
DbLogExclude .*
alias Gasteria
disabledForIntervals 21:00-24:00 00:00-06:00
interval 3600
maxFertility 1000
maxLux 30000
maxMoisture 50
maxTemp 35
minFertility 300
minLux 3500
minMoisture 7
minTemp 5
model flowerSens
room FlowerSens
userReadings moistureFeeling:moisture.* {
if (ReadingsVal($name, "moisture", -1) < AttrVal($name, "minMoisture", 0)) {
return "too dry";
}
elsif (ReadingsVal($name, "moisture", -1) < AttrVal($name, "minMoisture", 100) + 3) {
return "getting dry";
}
elsif (ReadingsVal($name, "moisture", -1) > AttrVal($name, "maxMoisture", 100)) {
return "too wet";
}
else {
return "good";
}
}
get Pflanze_07 sensorData
Internals:
BTMAC C4:XX:XX:XX:XX:70
DEF C4:XX:XX:XX:XX:70
INTERVAL 3600
NAME Pflanze_07
NOTIFYDEV global,Pflanze_07
NR 1005
NTFY_ORDER 50-Pflanze_07
STATE active
TYPE XiaomiBTLESens
VERSION 2.2.0
loglevel 4
READINGS:
2018-06-14 20:36:07 battery ok
2018-06-14 20:36:07 batteryLevel 100
2018-08-17 07:19:58 batteryPercent 100
2018-08-17 07:19:58 batteryState ok
2018-08-17 07:20:46 fertility 950
2018-08-17 07:19:58 firmware 3.1.8
2018-08-10 18:32:35 lastGattError No route to host (113)
2018-08-17 07:20:46 lux 217
2018-08-17 07:20:46 moisture 20
2018-08-17 07:20:46 moistureFeeling good
2018-08-17 07:20:46 state active
2018-08-17 07:20:46 temperature 25.9
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1534483198.95201
updateTimestampCallBattery 2018-08-17 07:19:58
Attributes:
DbLogExclude .*
alias Gasteria
disabledForIntervals 21:00-24:00 00:00-06:00
interval 3600
maxFertility 1000
maxLux 30000
maxMoisture 50
maxTemp 35
minFertility 300
minLux 3500
minMoisture 7
minTemp 5
model flowerSens
room FlowerSens
userReadings moistureFeeling:moisture.* {
if (ReadingsVal($name, "moisture", -1) < AttrVal($name, "minMoisture", 0)) {
return "too dry";
}
elsif (ReadingsVal($name, "moisture", -1) < AttrVal($name, "minMoisture", 100) + 3) {
return "getting dry";
}
elsif (ReadingsVal($name, "moisture", -1) > AttrVal($name, "maxMoisture", 100)) {
return "too wet";
}
else {
return "good";
}
}
2018.09.01 14:58:59 3: XiaomiBTLESens (Heidelbeeren_FlowerCare) - defined with BTMAC C4:7C:8D:65:FF:E4
2018.09.01 14:58:59 1: XiaomiBTLESens (Heidelbeeren_FlowerCare) - readings battery and batteryLevel a deprecated and will be remove in future
2018.09.01 14:58:59 3: XiaomiBTLESens (Rhabarber_FlowerCare) - defined with BTMAC C4:7C:8D:66:01:EA
2018.09.01 19:29:45 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 1833
2018.09.01 19:31:55 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 1994
2018.09.01 19:35:39 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 2119
2018.09.01 19:37:43 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 2262
2018.09.01 19:41:07 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 2459
2018.09.01 19:44:02 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 2621
2018.09.01 19:46:12 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 2704
2018.09.01 19:49:08 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 2877
2018.09.01 19:51:30 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 2958
2018.09.01 19:54:34 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 3058
2018.09.01 19:57:24 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 3224
Zitat von: CoolTux am 03 September 2018, 22:59:27
Die oberen Meldungen sind normal.
Das untere bedeutet daß der Abrufenprozess nach 2 min beendet werden musste, es also zu keiner Verbindung kam. Zum testen empfehle ich die Geräte neben dem Pi mit dem BT Single zu legen und noch mal ab zu rufen.
Zitat von: CoolTux am 05 September 2018, 21:53:34
Alles was mit Funk zu tun hat ist Wetter und Witterungsabhängig. Da reicht schon bisschen feuchte Wand oder Luft.
Zitat von: nanocosmos am 08 September 2018, 21:13:57
Guten Abend,
bei mir zeigen sowohl die Flower Care, als auch die Temp Hygro Sensoren die Fehlermeldung :
Function not implemented (38)
Gleicher Fehler erscheint auch, wenn ich die Sensoren aus der Konsole abrufe.
Habt ihr vielleicht einen Rat für mich?
Besten Dank und viele Grüße!
Zitat von: nanocosmos am 08 September 2018, 22:18:24
Direkt neben dem PI gehen die Flower Care Sensoren. Die anderen habe ich noch nicht ausprobiert.
Aber komisch, dass es monatelang trotz der anscheinend zu großen Entfernung funktioniert hat.
Habe übrigens noch eine neue Meldung: Transport endpoint is not connected (107)
Auch wieder ein Reichweitenproblem?
Die Sache mit der ssh Anbindung habe ich schon oft gelesen, wie genau funktioniert das denn?
Besten Dank euch!
Zitat von: CoolTux am 05 September 2018, 21:53:34Ja, aber wenn das Teil INNEN angebracht ist und 2 Wochen mit so ziemlich keinem Verbrauch läuft und dann innerhalb eines Tages (ohne Veränderung des Ortes und der Bedingungen) von 96% auf 0% geht, dann erzeugt das doch schon einige Fragezeichen über meinem Kopf
Alles was mit Funk zu tun hat ist Wetter und Witterungsabhängig. Da reicht schon bisschen feuchte Wand oder Luft.
Zitat von: onkel_joerg am 09 September 2018, 00:07:59
Ja, aber wenn das Teil INNEN angebracht ist und 2 Wochen mit so ziemlich keinem Verbrauch läuft und dann innerhalb eines Tages (ohne Veränderung des Ortes und der Bedingungen) von 96% auf 0% geht, dann erzeugt das doch schon einige Fragezeichen über meinem Kopf
Zitat von: CoolTux am 09 September 2018, 00:24:52Ah, ok. ;)
Meine Aussage bezog sich nicht auf Deinen Post!
...
2018.09.10 21:01:16 4: XiaomiBTLESens (FlowerCareWohnzimmerKastanie) - Run CreateParamGatttool with mod: read
2018.09.10 21:01:16 5: XiaomiBTLESens (FlowerCareWohnzimmerKastanie) - Read XiaomiBTLESens_ExecGatttool_Run FlowerCareWohnzimmerKastanie|C4:7C:8D:66:CA:A0|read|0x38
2018.09.10 21:01:16 4: XiaomiBTLESens (FlowerCareWohnzimmerKastanie) - stateRequestTimer: Call Request Timer
2018.09.10 21:01:16 3: XiaomiBTLESens (FlowerCareWohnzimmerKastanie) - ExecGatttool_Run: another gatttool process is running. waiting...
...
...
2018.09.10 21:02:46 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 6876
2018.09.10 21:02:46 4: XiaomiBTLESens (FlowerCareWohnzimmerKastanie) - WriteReadings: Readings were written
2018.09.10 21:02:46 4: XiaomiBTLESens (FlowerCareWohnzimmerKastanie) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
...
root@Heimhirn:/# ps ax | grep gatttool
920 pts/0 S 0:00 sh -c gatttool -i hci0 -b C4:7C:8D:66:CA:A0 --char-read -a 0x35 2>&1 /dev/null
921 pts/0 S 0:00 gatttool -i hci0 -b C4:7C:8D:66:CA:A0 --char-read -a 0x35 /dev/null
7589 pts/0 S+ 0:00 grep --color=auto gatttool
root@Heimhirn:/# ps ax | grep gatttool
45 pts/0 S+ 0:00 grep --color=auto gatttool
root@Heimhirn:/# gatttool -i hci0 -b C4:7C:8D:66:CA:A0 --char-read -a 0x35
Characteristic value/descriptor: aa bb cc dd ee ff 99 88 77 66 00 00 00 00 00 00
root@Heimhirn:/# gatttool -i hci0 -b C4:7C:8D:66:CA:A0 --char-read -a 0x38
Characteristic value/descriptor: 64 28 33 2e 31 2e 39
Zitat von: Clue am 10 September 2018, 21:38:47
Hallo zusammen,
ich habe das Problem, dass ich nach einer unbestimmten Zeit einen Error bekomme. Verbose 5 gibt folgendes Log:Code Auswählen
...
2018.09.10 21:01:16 4: XiaomiBTLESens (FlowerCareWohnzimmerKastanie) - Run CreateParamGatttool with mod: read
2018.09.10 21:01:16 5: XiaomiBTLESens (FlowerCareWohnzimmerKastanie) - Read XiaomiBTLESens_ExecGatttool_Run FlowerCareWohnzimmerKastanie|C4:7C:8D:66:CA:A0|read|0x38
2018.09.10 21:01:16 4: XiaomiBTLESens (FlowerCareWohnzimmerKastanie) - stateRequestTimer: Call Request Timer
2018.09.10 21:01:16 3: XiaomiBTLESens (FlowerCareWohnzimmerKastanie) - ExecGatttool_Run: another gatttool process is running. waiting...
...
...
2018.09.10 21:02:46 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 6876
2018.09.10 21:02:46 4: XiaomiBTLESens (FlowerCareWohnzimmerKastanie) - WriteReadings: Readings were written
2018.09.10 21:02:46 4: XiaomiBTLESens (FlowerCareWohnzimmerKastanie) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
...
die Distanz spielt keine Rolle.
Ob ich das Device disable oder nicht spielt für "ps ax | grep gatttool" keine Rolle. Beides liefert folgende Ausgabe:Code Auswählen
root@Heimhirn:/# ps ax | grep gatttool
920 pts/0 S 0:00 sh -c gatttool -i hci0 -b C4:7C:8D:66:CA:A0 --char-read -a 0x35 2>&1 /dev/null
921 pts/0 S 0:00 gatttool -i hci0 -b C4:7C:8D:66:CA:A0 --char-read -a 0x35 /dev/null
7589 pts/0 S+ 0:00 grep --color=auto gatttool
Einem früheren Beitrag von CoolTux habe ich entnommen, dass das heisst, dass eventuell mein Gatttool nicht sauber beendet wird(?).
Mein Fhem läuft in einem Docker Container ohne sonstige Probleme. Wenn ich den Docker Container neu starte funktioniert auch wieder alles und ich habe folgende Ausgabe:Code Auswählen
root@Heimhirn:/# ps ax | grep gatttool
45 pts/0 S+ 0:00 grep --color=auto gatttool
Mit der App geht alles tadellos, natürlich wird diese auch sauber von mir beendet.
Ein wenig Unterstützung wäre total super, ihr rettet Pflanzenleben damit ;). Auf jeden Fall aber super Arbeit.
Grüße
Christoph
Edit:
Während ich im Error bin kann ich aber anscheinend mittels Konsole auf das Gerät zugreifen:Code Auswählen
root@Heimhirn:/# gatttool -i hci0 -b C4:7C:8D:66:CA:A0 --char-read -a 0x35
Characteristic value/descriptor: aa bb cc dd ee ff 99 88 77 66 00 00 00 00 00 00
root@Heimhirn:/# gatttool -i hci0 -b C4:7C:8D:66:CA:A0 --char-read -a 0x38
Characteristic value/descriptor: 64 28 33 2e 31 2e 39
Internals:
BTMAC C4:7C:8D:66:CA:A0
DEF C4:7C:8D:66:CA:A0
INTERVAL 1800
NAME FlowerCareWohnzimmerKastanie
NOTIFYDEV global,FlowerCareWohnzimmerKastanie
NR 122
NTFY_ORDER 50-FlowerCareWohnzimmerKastanie
STATE active
TYPE XiaomiBTLESens
VERSION 2.2.0
loglevel 4
READINGS:
2018-09-10 22:55:34 batteryPercent 100
2018-09-10 22:55:34 batteryState ok
2018-09-11 07:09:46 fertility 0
2018-09-10 22:55:34 firmware 3.1.9
2018-09-10 21:09:06 lastGattError The BlockingCall Process terminated unexpectedly. Timedout
2018-09-11 07:09:46 lux 102
2018-09-11 07:09:46 moisture 0
2018-09-11 07:09:46 state active
2018-09-11 07:09:46 temperature 22.9
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1536612934.89746
updateTimestampCallBattery 2018-09-10 22:55:34
Attributes:
interval 1800
model flowerSens
room XiaomiBTLESens
verbose 1
Internals:
BTMAC C4:7C:8D:66:2A:77
CHANGED
DEF C4:7C:8D:66:2A:77
INTERVAL 1800
NAME FlowerSens_Kamelie
NOTIFYDEV global,FlowerSens_Kamelie
NR 467
NTFY_ORDER 50-FlowerSens_Kamelie
STATE Feuchtigkeit: 10 %
TYPE XiaomiBTLESens
VERSION 2.2.0
loglevel 4
OLDREADINGS:
READINGS:
2018-09-10 21:47:57 batteryPercent 99
2018-09-10 21:47:57 batteryState ok
2018-09-11 19:56:45 fertility 68
2018-09-10 21:47:57 firmware 3.1.9
2018-09-07 13:55:36 lastGattError charWrite faild
2018-09-11 19:56:45 lux 194
2018-09-11 19:56:45 moisture 10
2018-09-11 20:08:40 state disabled
2018-09-11 19:56:45 temperature 20.5
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1536608877.60954
updateTimestampCallBattery 2018-09-10 21:47:57
Attributes:
alias Kamelie
batteryFirmwareAge 48h
disabledForIntervals 22:00-24:00 00:00-06:00
event-min-interval temperature:3600,moisture:3600,fertility:3600,lux:3600
event-on-change-reading batteryState,fertility,lastGattError,lux,moisture,temperature
interval 1800
maxFertility 2000
maxMoisture 60
minFertility 350
minMoisture 5
minTemp 0
model flowerSens
room Garten
sshHost -p 45147 oelidoc@192.168.178.57
stateFormat Feuchtigkeit: moisture %
Zitat von: oelidoc am 11 September 2018, 20:20:56
Danke CoolTux - tolle Unterstützung wie immer.
Gruß
oelidoc
2018.09.13 20:10:21 4: XiaomiBTLESens (FlowerCareWohnzimmerKastanie) - Run CreateParamGatttool with mod: write
2018.09.13 20:10:21 5: XiaomiBTLESens (FlowerCareWohnzimmerKastanie) - Write XiaomiBTLESens_ExecGatttool_Run FlowerCareWohnzimmerKastanie|C4:7C:8D:66:CA:A0|write|0x33|A01F
2018.09.13 20:10:21 4: XiaomiBTLESens (FlowerCareWohnzimmerKastanie) - stateRequestTimer: Call Request Timer
2018.09.13 20:10:21 5: XiaomiBTLESens (FlowerCareWohnzimmerKastanie) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:CA:A0 --char-write-req -a 0x33 -n A01F 2>&1 /dev/null and loop 0
2018.09.13 20:10:32 5: XiaomiBTLESens (FlowerCareWohnzimmerKastanie) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2018.09.13 20:10:32 4: XiaomiBTLESens (FlowerCareWohnzimmerKastanie) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2018.09.13 20:10:32 5: XiaomiBTLESens (FlowerCareWohnzimmerKastanie) - ExecGatttool_Done: gatttool return string: FlowerCareWohnzimmerKastanie|C4:7C:8D:66:CA:A0|ok|write|0x33|{"gtResult":"no data response"}
2018.09.13 20:10:32 4: XiaomiBTLESens (FlowerCareWohnzimmerKastanie) - Run CreateParamGatttool with mod: read
2018.09.13 20:10:32 5: XiaomiBTLESens (FlowerCareWohnzimmerKastanie) - Read XiaomiBTLESens_ExecGatttool_Run FlowerCareWohnzimmerKastanie|C4:7C:8D:66:CA:A0|read|0x35
2018.09.13 20:10:32 5: XiaomiBTLESens (FlowerCareWohnzimmerKastanie) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:CA:A0 --char-read -a 0x35 2>&1 /dev/null and loop 0
2018.09.13 20:12:02 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 799
2018.09.13 20:12:02 4: XiaomiBTLESens (FlowerCareWohnzimmerKastanie) - WriteReadings: Readings were written
2018.09.13 20:12:02 4: XiaomiBTLESens (FlowerCareWohnzimmerKastanie) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
2018.09.13 20:44:22 4: XiaomiBTLESens (FlowerCareWohnzimmerKastanie) - Run CreateParamGatttool with mod: write
2018.09.13 20:44:22 5: XiaomiBTLESens (FlowerCareWohnzimmerKastanie) - Write XiaomiBTLESens_ExecGatttool_Run FlowerCareWohnzimmerKastanie|C4:7C:8D:66:CA:A0|write|0x33|A01F
2018.09.13 20:44:22 4: XiaomiBTLESens (FlowerCareWohnzimmerKastanie) - stateRequestTimer: Call Request Timer
2018.09.13 20:44:22 3: XiaomiBTLESens (FlowerCareWohnzimmerKastanie) - ExecGatttool_Run: another gatttool process is running. waiting...
... usw....
018.09.13 20:45:51 3: XiaomiBTLESens (FlowerCareWohnzimmerKastanie) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.09.13 20:45:52 1: Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 808
2018.09.13 20:45:52 4: XiaomiBTLESens (FlowerCareWohnzimmerKastanie) - WriteReadings: Readings were written
2018.09.13 20:45:52 4: XiaomiBTLESens (FlowerCareWohnzimmerKastanie) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
Latest Revision: 17334
File Rev Last Change
fhem.pl 17329 2018-09-12 07:03:11Z rudolfkoenig
96_allowed.pm 17179 2018-08-20 15:49:33Z rudolfkoenig
90_at.pm 17252 2018-09-02 09:35:58Z rudolfkoenig
98_autocreate.pm 15620 2017-12-16 18:10:36Z rudolfkoenig
57_Calendar.pm 16742 2018-05-15 19:20:16Z neubert
98_DOIF.pm 17291 2018-09-06 18:37:03Z Damian
98_dummy.pm 16965 2018-07-09 07:59:58Z rudolfkoenig
91_eventTypes.pm 14888 2017-08-13 12:07:12Z rudolfkoenig
72_FB_CALLLIST.pm 16433 2018-03-18 08:20:35Z markusbloch
72_FB_CALLMONITOR.pm 16709 2018-05-08 20:14:58Z markusbloch
01_FHEMWEB.pm 17307 2018-09-09 13:42:47Z rudolfkoenig
92_FileLog.pm 17181 2018-08-20 17:23:26Z rudolfkoenig
98_help.pm 15223 2017-10-10 10:14:24Z betateilchen
98_HTTPMOD.pm 16951 2018-07-06 18:02:15Z StefanStrobel
02_HTTPSRV.pm 16874 2018-06-15 17:18:55Z neubert
98_JsonList2.pm 17230 2018-08-30 13:03:48Z rudolfkoenig
91_notify.pm 17225 2018-08-29 12:34:29Z rudolfkoenig
59_PROPLANTA.pm 17079 2018-08-02 17:47:03Z tupol
33_readingsGroup.pm 16299 2018-03-01 08:06:55Z justme1968
00_SONOS.pm 16658 2018-04-25 06:00:12Z Reinerlein
21_SONOSPLAYER.pm 16478 2018-03-24 22:47:43Z Reinerlein
99_SUNRISE_EL.pm 16632 2018-04-17 19:00:21Z rudolfkoenig
50_TelegramBot.pm 16382 2018-03-11 13:20:55Z viegener
98_telnet.pm 17116 2018-08-10 11:52:49Z rudolfkoenig
59_Twilight.pm 16005 2018-01-27 06:05:51Z igami
99_Utils.pm 15713 2017-12-28 11:01:02Z rudolfkoenig
98_version.pm 15140 2017-09-26 09:20:09Z markusbloch
74_XiaomiBTLESens.pm 17328 2018-09-12 06:40:06Z CoolTux
10_ZWave.pm 17186 2018-08-20 20:10:55Z rudolfkoenig
00_ZWDongle.pm 17186 2018-08-20 20:10:55Z rudolfkoenig
Blocking.pm 16985 2018-07-15 14:08:15Z rudolfkoenig
Color.pm 11159 2016-03-30 16:08:06Z justme1968
Common.pm 10759 2016-02-07 20:00:12Z rleins
ControlPoint.pm 16658 2018-04-25 06:00:12Z Reinerlein
DevIo.pm 16623 2018-04-15 18:44:05Z rudolfkoenig
FritzBoxUtils.pm 16691 2018-05-05 17:11:26Z rudolfkoenig
HttpUtils.pm 17034 2018-07-27 05:47:13Z rudolfkoenig
Info.pm 28 2008-11-09 01:08:44Z dsully
myUtilsTemplate.pm 7570 2015-01-14 18:31:44Z rudolfkoenig
myUtilsTemplate.pm 7570 2015-01-14 18:31:44Z rudolfkoenig
myUtilsTemplate.pm 7570 2015-01-14 18:31:44Z rudolfkoenig
myUtilsTemplate.pm 7570 2015-01-14 18:31:44Z rudolfkoenig
myUtilsTemplate.pm 7570 2015-01-14 18:31:44Z rudolfkoenig
RTypes.pm 10476 2016-01-12 21:03:33Z borisneubert
SetExtensions.pm 17100 2018-08-07 07:40:20Z rudolfkoenig
SubProcess.pm 14334 2017-05-20 23:11:06Z neubert
TcpServerUtils.pm 17124 2018-08-11 06:54:58Z rudolfkoenig
ZWLib.pm 17186 2018-08-20 20:10:55Z rudolfkoenig
doif.js 15546 2017-12-03 09:57:42Z Ellert
f18.js 17318 2018-09-10 16:25:56Z rudolfkoenig
fhemweb.js 17308 2018-09-09 13:43:37Z rudolfkoenig
fhemweb_readingsGroup.js 15189 2017-10-03 17:53:27Z justme1968
root@Heimhirn:/# ps -u fhem
PID TTY TIME CMD
733 pts/0 00:04:10 perl
741 pts/0 00:21:52 perl
804 pts/0 00:00:00 sh
805 pts/0 00:00:00 gatttool
21070 pts/0 00:00:00 perl
delete($hash->{helper}{RUNNING_PID});
Zitat von: Clue am 15 September 2018, 13:34:38
Nur "ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout" innerhalb dieses Monats.
So wie ich es verstanden habe sollteCode Auswählen
delete($hash->{helper}{RUNNING_PID});
in jedem Fall den Prozess killen oder? Soll ich mal lokal hier in "XiaomiBTLESens_ExecGatttool_Aborted" nen Log ausgeben lassen? Wie sollte der aussehen um sinnvolle Infos zu bekommen?
Edit: Oder woanders falls hilfreich natürlich :).
BlockingKill($)
{
my $h = shift;
return if($h->{terminated});
# if($^O !~ m/Win/) {
if($h->{pid} && $h->{pid} !~ m/:/ && kill(9, $h->{pid})) {
my $ll = (defined($h->{loglevel}) ? $h->{loglevel} : 1); # Forum #77057
Log $ll, "Timeout for $h->{fn} reached, terminated process $h->{pid}";
$h->{terminated} = 1;
if($h->{abortFn}) {
no strict "refs";
my $ret = &{$h->{abortFn}}($h->{abortArg},
"Timeout: process terminated");
use strict "refs";
} elsif($h->{finishFn}) {
no strict "refs";
my $ret = &{$h->{finishFn}}();
use strict "refs";
}
delete($BC_hash{$h->{bc_pid}});
InternalTimer(gettimeofday()+1, "BlockingStart", \%BC_hash, 0)
if(looks_like_number($h->{pid}) && kill(0, $h->{pid})); # Forum #58867
}
# }
BlockingStart();
}
Zitat von: Clue am 17 September 2018, 18:43:32
Hi,
habe noch immer korrektes Verhalten nach gelegentlichen Timeouts. Auskommentieren der BlockingStart schien tatsächlich die Lösung. Dann verfolge ich das Thema mal nicht weiter und lasse es bei dir CoolTux wenn es okay ist.
Grüße
Christoph
2018.09.17 20:39:12 1 : PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 712.
2018.09.17 20:39:12 3 : eval: {XiaomiBTLESens_ExecGatttool_Done('EG_FL_TF|4C:65:A8:D4:B6:0F|ok|read|0x18|{"gtResult":"64 "}')}
2018.09.17 20:39:12 1 : PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 713.
2018.09.17 20:39:12 3 : eval: {XiaomiBTLESens_ExecGatttool_Done('EG_FL_TF|4C:65:A8:D4:B6:0F|ok|read|0x18|{"gtResult":"64 "}')}
Zitat von: skyline am 17 September 2018, 20:41:28Code Auswählen2018.09.17 20:39:12 1 : PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 712.
2018.09.17 20:39:12 3 : eval: {XiaomiBTLESens_ExecGatttool_Done('EG_FL_TF|4C:65:A8:D4:B6:0F|ok|read|0x18|{"gtResult":"64 "}')}
2018.09.17 20:39:12 1 : PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 713.
2018.09.17 20:39:12 3 : eval: {XiaomiBTLESens_ExecGatttool_Done('EG_FL_TF|4C:65:A8:D4:B6:0F|ok|read|0x18|{"gtResult":"64 "}')}
Ist das denn so normal?
2018.09.17 20:45:52 1 : PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 712.
2018.09.17 20:45:52 3 : eval: {XiaomiBTLESens_ExecGatttool_Done('EG_BZ_TF|4C:65:A8:D4:08:B1|ok|read|0x18|{"gtResult":"64 "}')}
2018.09.17 20:45:52 1 : PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 713.
2018.09.17 20:45:52 3 : eval: {XiaomiBTLESens_ExecGatttool_Done('EG_BZ_TF|4C:65:A8:D4:08:B1|ok|read|0x18|{"gtResult":"64 "}')}
2018.09.17 20:47:13 1 : Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 9599
2018.09.17 21:00:02 1 : Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 9757
2018.09.17 21:12:45 1 : Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 9862
2018.09.17 21:24:21 1 : Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 10007
Zitat von: skyline am 17 September 2018, 20:47:05Code Auswählen2018.09.17 20:45:52 1 : PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 712.
2018.09.17 20:45:52 3 : eval: {XiaomiBTLESens_ExecGatttool_Done('EG_BZ_TF|4C:65:A8:D4:08:B1|ok|read|0x18|{"gtResult":"64 "}')}
2018.09.17 20:45:52 1 : PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 713.
2018.09.17 20:45:52 3 : eval: {XiaomiBTLESens_ExecGatttool_Done('EG_BZ_TF|4C:65:A8:D4:08:B1|ok|read|0x18|{"gtResult":"64 "}')}
Kommt wohl nach jedem Start (shutdown restart)
EDIT:Code Auswählen2018.09.17 20:47:13 1 : Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 9599
2018.09.17 21:00:02 1 : Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 9757
2018.09.17 21:12:45 1 : Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 9862
2018.09.17 21:24:21 1 : Timeout for XiaomiBTLESens_ExecGatttool_Run reached, terminated process 10007
Igendwo ist da wohl noch der Wurm drin, hatte ich aber vor ein paar Tagen nicht.
Erst nach einem Update.
Zitat von: CoolTux am 17 September 2018, 20:16:27
Also BlockingStart ist da korrekt, es geht darum das mittels BlockingStart eine queue abgearbeitet wird.
Du kannst ja global mittels maxBlockingCall oder so festlegen wie viele BlockingCall Aufrufe gleichzeitig erlaubt sind. Daher muss immer wieder geschaut werden ob noch ein Aufruf in der queue liegt.
Wie eng ist denn Timer gesetzt und von wie vielen Geräten sprechen wir?
Zitat von: Clue am 18 September 2018, 19:34:44
Dann habe ich bestimmt nur Glück die letzten 2 Tage, dass es nicht aufgetaucht ist. Interval habe ich immer auf 1800 (30 min). Ich habe aktuell nur ein einziges Gerät in Betrieb, wenn es ohne Probleme läuft werden weitere angeschafft. Ich beobachte es mal weiter, wenn sonst niemand anderes das Problem hat muss es irgendwie an meinem Setup liegen, dann werde ich es entweder sein lassen oder einen Workaround überlegen der den Prozess killt.
Zitat von: CoolTux am 18 September 2018, 19:40:20
Wo liegt den der Sensor? Ist er weit weg vom FHEM Rechner? Lege ihn zum testen doch mal für einen Tag daneben.
Zitat von: skyline am 01 Oktober 2018, 10:32:32
Hallo CoolTux,
könnte man nicht noch ein Timer-Attribut und Schleifen-Attribut hinzufügen um das Error-Problem vielleicht etwas mehr in den Griff zu bekommen?
Somit könnten man an der einzelnen Sensoren unterschiedlich tunen.
Hier gibt es auch für den Hygrotermograph ein Modul für homebridge:
https://github.com/hannseman/homebridge-mi-hygrothermograph (https://github.com/hannseman/homebridge-mi-hygrothermograph)
ZitatIch dachte eigentlich wir unterstützen dieses Hygrotermograph bereits. Jedenfalls haben wir so ein Device in unserer Liste. Ist das ein anderes?Es ist genau das und das Modul unterstützt es perfekt. Ich habe bereits drei davon angebunden - ohne Probleme.
Zitat von: skyline am 02 Oktober 2018, 13:14:31
Es wird ja auch vom Modul gut unterstützt.
Nur tauchen hin und zu Errors auf.
Das wird auch sicher mit der Reichweite zusammen hängen, aber oft geht und dann mal wieder nicht.
Da ich die Sensoren für den PID20 nehme, würde ich mir schon etwas mehr Stabilität wünschen.
Das Modul ist schon echt super!!!
Zitat von: smurphy am 03 Oktober 2018, 17:06:56
Hallo Liebe Gemeinde,
ich hoffe, meine Frage so zu stellen, wie es sich gehört. Ich habe natürlich vorher auch die Suchfunktion benutzt, jedoch konnte ich keine Lösungsansätze für mich adaptieren.
Was ich gemacht habe:
Ich habe ein Temperatur/Luftfeichtigskeits-Sensor von Xiaomi über das Modul XiaomiBTLESens eingebunden.
define xiaomi1 XiaomiBTLESens xx:xx:xx:d8:ae:ef
Ich erhalte folgende Readings:
Readings
batteryPercent
76
batteryState
ok
firmware
00.00.66
humidity
=7.6
state
T: 14.9 H: =7.4
temperature
14.9
Leider komme ich mit = bei der Luftfeuchtigkeit nicht klar. die Graphen funktionieren damit einfach nicht und die dewpoint Berechnung auch nicht.
Im Logfile erscheint folgende Fehlermeldung:
2018.10.03 16:22:06 1: Error dewpoint: humidity invalid: 0
2018.10.03 16:25:46 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at (eval 113) line 1.
2018.10.03 16:25:46 3: eval: { "Xiaomi Humidity Min $data{min2}, Max $data{max2}, Last $data{currval2}, Taupunkt $data{currval3}" }
Komischerweise scheinen beim Neustart des Raspberry die ersten Werte ohne das blöde = übermittelt zu werden.
Siehe Logfile:
2018-10-03_16:26:03 xiaomi1 batteryPercent: 76
2018-10-03_16:26:03 xiaomi1 T: 0 H: 0
2018-10-03_16:26:03 xiaomi1 write sensor data
2018-10-03_16:26:13 xiaomi1 T: 15.1 H: 47.7 D: 4.1
2018-10-03_16:28:16 xiaomi1 write sensor data
2018-10-03_16:28:29 xiaomi1 T: 15.0 H: 11.9 D: -14.3
2018-10-03_16:31:14 xiaomi1 write sensor data
2018-10-03_16:31:24 xiaomi1 T: 14.9 H: =9.4
2018-10-03_16:37:00 xiaomi1 write sensor data
2018-10-03_16:37:10 xiaomi1 T: 15.0 H: =8.0
2018-10-03_16:41:55 xiaomi1 write sensor data
Kann mir jemand helfen?
Vielen Dank und Gruß
attr xiaomi1 userReadings Luftfeuchte:humidity:.* { ReadingsNum($name,"humidity",0) }
Zitat von: CoolTux am 03 Oktober 2018, 21:04:38
Du könntest bitte bei Gelegenheit das Teil mal auf verbose 5 stellen, also direkt am FHEM Device und mir den Auszug aus dem Log hier in Codetags einstellen.
2018.10.03 21:21:26 4: XiaomiBTLESens (xiaomi1) - Run CreateParamGatttool with mod: write
2018.10.03 21:21:26 5: XiaomiBTLESens (xiaomi1) - Write XiaomiBTLESens_ExecGatttool_Run xiaomi1|4c:65:a8:d8:ae:ef|write|0x10|0100
2018.10.03 21:21:26 5: XiaomiBTLESens (xiaomi1) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4c:65:a8:d8:ae:ef --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.10.03 21:21:36 5: XiaomiBTLESens (xiaomi1) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 31 34 2e 37 20 48 3d 36 2e 31 00
Notification handle = 0x000e value,54 3d 31 34 2e 37 20 48 3d 36 2e 30 00
Notification handle = 0x000e value,54 3d 31 34 2e 37 20 48 3d 36 2e 31 00
2018.10.03 21:21:36 4: XiaomiBTLESens (xiaomi1) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 31 34 2e 37 20 48 3d 36 2e 31 00
Notification handle = 0x000e value,54 3d 31 34 2e 37 20 48 3d 36 2e 30 00
Notification handle = 0x000e value,54 3d 31 34 2e 37 20 48 3d 36 2e 31 00
2018.10.03 21:21:36 5: XiaomiBTLESens (xiaomi1) - ExecGatttool_Done: gatttool return string: xiaomi1|4c:65:a8:d8:ae:ef|ok|write|0x10|{"gtResult":"54 3d 31 34 2e 37 20 48 3d 36 2e 31 00 "}
2018.10.03 21:21:36 4: XiaomiBTLESens (xiaomi1) - ProcessingNotification
2018.10.03 21:21:36 4: XiaomiBTLESens (xiaomi1) - ProcessingNotification: handle 0x10
2018.10.03 21:21:36 4: XiaomiBTLESens (xiaomi1) - Thermo/Hygro Sens Handle0x10
2018.10.03 21:21:36 4: XiaomiBTLESens (xiaomi1) - WriteReadings: Readings were written
Zitat von: CoolTux am 03 Oktober 2018, 22:08:54
Sieht gut aus. Kannst Du bitte noch ein list vom Device geben.
FHEMWEB Kommandozeile
list xiaomi1
eingeben
Internals:
BTMAC 4c:65:a8:d8:ae:ef
DEF 4c:65:a8:d8:ae:ef
INTERVAL 120
NAME xiaomi1
NOTIFYDEV global,xiaomi1
NR 232
NTFY_ORDER 50-xiaomi1
STATE T: 14.7 H: =6.1
TYPE XiaomiBTLESens
VERSION 2.2.2
loglevel 4
READINGS:
2018-10-03 22:13:59 Luftfeuchtigkeit 6.1
2018-10-03 20:22:50 batteryPercent 76
2018-10-03 20:22:50 batteryState ok
2018-10-03 22:13:59 dewpoint -22.4
2018-10-03 16:22:06 firmware 00.00.66
2018-10-03 22:13:59 humidity =6.1
2018-10-03 22:13:59 state T: 14.7 H: =6.1
2018-10-03 22:13:59 temperature 14.7
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1538590970.06001
updateTimestampCallBattery 2018-10-03 20:22:50
Attributes:
event-on-change-reading batteryPercent,temperature,Luftfeuchtigkeit
event-on-update-reading batteryPercent,temperature,Luftfeuchtigkeit
interval 120
model thermoHygroSens
room XiaomiBTLESens
userReadings Luftfeuchtigkeit { my $luft = ReadingsVal("xiaomi1","humidity",0);$luft=~s/=//;$luft;}
Zitat von: smurphy am 03 Oktober 2018, 22:16:33Code AuswählenInternals:
BTMAC 4c:65:a8:d8:ae:ef
DEF 4c:65:a8:d8:ae:ef
INTERVAL 120
NAME xiaomi1
NOTIFYDEV global,xiaomi1
NR 232
NTFY_ORDER 50-xiaomi1
STATE T: 14.7 H: =6.1
TYPE XiaomiBTLESens
VERSION 2.2.2
loglevel 4
READINGS:
2018-10-03 22:13:59 Luftfeuchtigkeit 6.1
2018-10-03 20:22:50 batteryPercent 76
2018-10-03 20:22:50 batteryState ok
2018-10-03 22:13:59 dewpoint -22.4
2018-10-03 16:22:06 firmware 00.00.66
2018-10-03 22:13:59 humidity =6.1
2018-10-03 22:13:59 state T: 14.7 H: =6.1
2018-10-03 22:13:59 temperature 14.7
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1538590970.06001
updateTimestampCallBattery 2018-10-03 20:22:50
Attributes:
event-on-change-reading batteryPercent,temperature,Luftfeuchtigkeit
event-on-update-reading batteryPercent,temperature,Luftfeuchtigkeit
interval 120
model thermoHygroSens
room XiaomiBTLESens
userReadings Luftfeuchtigkeit { my $luft = ReadingsVal("xiaomi1","humidity",0);$luft=~s/=//;$luft;}
,,The BlockingCall Process terminated unexpectedly. Timedout"
T: 20.0 H: 55.2 D: 10.7
ZitatWas mir aber auf fällt das der letzte Timestamp aller Readings kurz vor dem setzen und abrufen des Batteriestatus endet. Muss nichts heißen aber ich schaue da mal.
Internals:
BTMAC C4:7C:8D:66:04:70
DEF C4:7C:8D:66:04:70
INTERVAL 3600
NAME Pflanze_07
NOTIFYDEV global,Pflanze_07
NR 1002
NTFY_ORDER 50-Pflanze_07
STATE set attribute model first
TYPE XiaomiBTLESens
VERSION 2.2.2
loglevel 4
READINGS:
2018-06-14 20:36:07 battery ok
2018-06-14 20:36:07 batteryLevel 100
2018-10-16 11:23:43 batteryPercent 100
2018-10-16 11:23:43 batteryState ok
2018-10-16 20:46:15 fertility 479
2018-10-16 11:23:43 firmware 3.1.8
2018-10-14 13:49:41 lastGattError charWrite faild
2018-10-16 20:46:15 lux 121
2018-10-16 20:46:15 moisture 27
2018-10-16 20:46:15 moistureFeeling good
2018-10-16 21:00:48 state set attribute model first
2018-10-16 20:46:15 temperature 21.8
helper:
CallBattery 0
CallSensDataCounter 0
Attributes:
DbLogExclude .*
alias Gasteria
disabledForIntervals 21:00-24:00 00:00-06:00
interval 3600
maxFertility 1000
maxLux 30000
maxMoisture 50
maxTemp 35
minFertility 300
minLux 3500
minMoisture 7
minTemp 5
model flowerSens
room FlowerSens
userReadings moistureFeeling:moisture.* {
if (ReadingsVal($name, "moisture", -1) < AttrVal($name, "minMoisture", 0)) {
return "too dry";
}
elsif (ReadingsVal($name, "moisture", -1) < AttrVal($name, "minMoisture", 100) + 3) {
return "getting dry";
}
elsif (ReadingsVal($name, "moisture", -1) > AttrVal($name, "maxMoisture", 100)) {
return "too wet";
}
else {
return "good";
}
}
Internals:
BTMAC C4:7C:8D:64:47:67
CFGFN
DEF C4:7C:8D:64:47:67
INTERVAL 300
NAME Ficus
NOTIFYDEV global,Ficus
NR 56
NTFY_ORDER 50-Ficus
STATE active
TYPE XiaomiBTLESens
VERSION 2.2.2
loglevel 4
READINGS:
2018-10-17 22:59:11 batteryPercent 99
2018-10-17 22:59:11 batteryState ok
2018-10-18 10:44:30 fertility 777
2018-10-17 22:59:11 firmware 3.1.9
2018-10-18 10:20:48 lastGattError charWrite faild
2018-10-18 10:44:30 lux 2581
2018-10-18 10:44:30 moisture 47
2018-10-18 10:44:30 state active
2018-10-18 10:44:30 temperature 21.4
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1539809951.40486
updateTimestampCallBattery 2018-10-17 22:59:11
Attributes:
event-on-update-reading moisture,temperature,lux,fertility
model flowerSens
room XiaomiBTLESens
Internals:
CFGFN
NAME Ficus
NR 3961
STATE write sensor data
TYPE dummy
Helper:
DBLOG:
fertility:
myDbLog:
TIME 1539852270.6456
VALUE 777
lux:
myDbLog:
TIME 1539852270.69482
VALUE 2581
moisture:
myDbLog:
TIME 1539852270.62049
VALUE 47
state:
myDbLog:
TIME 1539808234.50414
VALUE write sensor data
temperature:
myDbLog:
TIME 1539852270.67003
VALUE 21.4
READINGS:
2018-10-18 10:44:30 fertility 777
2018-10-18 10:44:30 lux 2581
2018-10-18 10:44:30 moisture 47
2018-10-17 22:30:34 state write sensor data
2018-10-18 10:44:30 temperature 21.4
Attributes:
room Flur
2018-10-18 11:16:16 XiaomiBTLESens Ficus write sensor data
2018-10-18 11:16:19 XiaomiBTLESens Ficus read sensor data
2018-10-18 11:16:19 XiaomiBTLESens Ficus lux: 2553
2018-10-18 11:16:19 XiaomiBTLESens Ficus moisture: 47
2018-10-18 11:16:19 XiaomiBTLESens Ficus fertility: 753
2018-10-18 11:16:19 XiaomiBTLESens Ficus temperature: 22.5
2018-10-18 11:16:19 XiaomiBTLESens Ficus active
2018-10-18 11:16:16 dummy Ficus write sensor data
2018-10-18 11:24:44 XiaomiBTLESens Ficus lux: 2734
2018-10-18 11:24:44 XiaomiBTLESens Ficus temperature: 22.9
2018-10-18 11:24:44 XiaomiBTLESens Ficus moisture: 47
2018-10-18 11:24:44 XiaomiBTLESens Ficus fertility: 753
2018-10-18 11:24:44 dummy Ficus lux: 2734
2018-10-18 11:24:44 dummy Ficus temperature: 22.9
2018-10-18 11:24:44 dummy Ficus moisture: 47
2018-10-18 11:24:44 dummy Ficus fertility: 753
Internals:
CFGFN
DEF 192.168.178.86:7027 LOG:Ficus.*
FD 29
Host 192.168.178.86:7027
NAME FHEM3
NR 3507
PARTIAL
STATE connected
TYPE FHEM2FHEM
informType LOG
regexp Ficus.*
Helper:
DBLOG:
state:
myDbLog:
TIME 1539854181.41746
VALUE CONNECTED
Attributes:
room System
DEF 192.168.178.86:7027 LOG:Ficus:(lux|moisture|fertility|temperature):.*
Zitat von: ToM_ToM am 17 Oktober 2018, 06:46:32
Guten Morgen Leon,
da ich aktuell wieder den Fall habe dass die Sensoren nicht automatisch reenablen nachdem ich innderhal des disabled intervalls neu gestartet habe, die Frage: Hast du hier schon was zu herausfinden können? :)
Zusätzlich ist mir heute noch etwas aufgefallen. Einer meiner Pflanzensensoren hängt im Status "set attribute model first". Das Attribut ist jedoch gesetzt und das manuelle Abrufen funktioniert auch.Code Auswählen
Internals:
BTMAC C4:7C:8D:66:04:70
DEF C4:7C:8D:66:04:70
INTERVAL 3600
NAME Pflanze_07
NOTIFYDEV global,Pflanze_07
NR 1002
NTFY_ORDER 50-Pflanze_07
STATE set attribute model first
TYPE XiaomiBTLESens
VERSION 2.2.2
loglevel 4
READINGS:
2018-06-14 20:36:07 battery ok
2018-06-14 20:36:07 batteryLevel 100
2018-10-16 11:23:43 batteryPercent 100
2018-10-16 11:23:43 batteryState ok
2018-10-16 20:46:15 fertility 479
2018-10-16 11:23:43 firmware 3.1.8
2018-10-14 13:49:41 lastGattError charWrite faild
2018-10-16 20:46:15 lux 121
2018-10-16 20:46:15 moisture 27
2018-10-16 20:46:15 moistureFeeling good
2018-10-16 21:00:48 state set attribute model first
2018-10-16 20:46:15 temperature 21.8
helper:
CallBattery 0
CallSensDataCounter 0
Attributes:
DbLogExclude .*
alias Gasteria
disabledForIntervals 21:00-24:00 00:00-06:00
interval 3600
maxFertility 1000
maxLux 30000
maxMoisture 50
maxTemp 35
minFertility 300
minLux 3500
minMoisture 7
minTemp 5
model flowerSens
room FlowerSens
userReadings moistureFeeling:moisture.* {
if (ReadingsVal($name, "moisture", -1) < AttrVal($name, "minMoisture", 0)) {
return "too dry";
}
elsif (ReadingsVal($name, "moisture", -1) < AttrVal($name, "minMoisture", 100) + 3) {
return "getting dry";
}
elsif (ReadingsVal($name, "moisture", -1) > AttrVal($name, "maxMoisture", 100)) {
return "too wet";
}
else {
return "good";
}
}
VG, Thomas
ZitatÄndere mal bitte das FHEM2FEHM Define nach
Code: [Auswählen]
DEF 192.168.178.86:7027 LOG:Ficus:(lux|moisture|fertility|temperature):.*
Es ist eher ein Hilferuf, da ich keinen Ansatz habe wieso das so ist.
DEF 192.168.178.86:7027 LOG:Ficus:(\s[a-z]+|(lux|moisture|fertility|temperature):\s[0-9]+)
ZitatVersuche mal bitte
DEF 192.168.178.86:7027 LOG:Ficus:(\s[a-z]+|(lux|moisture|fertility|temperature):\s[0-9]+)
2018-10-18 14:31:50 XiaomiBTLESens Ficus write sensor data
2018-10-18 14:31:53 XiaomiBTLESens Ficus read sensor data
2018-10-18 14:31:54 XiaomiBTLESens Ficus temperature: 24.9
2018-10-18 14:31:54 XiaomiBTLESens Ficus fertility: 659
2018-10-18 14:31:54 XiaomiBTLESens Ficus moisture: 45
2018-10-18 14:31:54 XiaomiBTLESens Ficus lux: 2259
2018-10-18 14:31:54 XiaomiBTLESens Ficus active
2018-10-18 14:31:54 dummy Ficus fertility: 659
2018-10-18 14:31:54 dummy Ficus moisture: 45
2018-10-18 14:31:54 dummy Ficus lux: 2259
DEF 192.168.178.86:7027 LOG:Ficus:.*
2018-10-18 14:38:48 dummy Ficus write sensor data
2018-10-18 14:38:53 dummy Ficus temperature: 25
2018-10-18 14:38:53 dummy Ficus moisture: 45
2018-10-18 14:38:53 dummy Ficus fertility: 657
2018-10-18 14:38:53 dummy Ficus lux: 2344
2018-10-18 14:38:53 dummy Ficus active
DEF 192.168.178.86:7027 LOG:Ficus.(((lux|moisture|fertility|temperature):\s[0-9].+)|([a-z]+\s?)+)
DEF 192.168.178.86:7027 LOG:Ficus:.*
Zitat von: smurphy am 15 Oktober 2018, 20:20:42
Guten Abend Cooltux,
Jetzt ist es bestätigt. Einstellige Werte werden mit dem Gleichheitszeichen ausgegeben.
Zumindest ist jetzt die Ursache gefunden!
Gruß
Smurphy
ZitatHattest Du
Code: [Auswählen]
DEF 192.168.178.86:7027 LOG:Ficus:.*
nicht ganz am Anfang?
DEF 192.168.178.82:7027 LOG:^Heizung.*|Pin13.*|Luftdruckmesser.*|Flow_01
DEF 192.168.178.86:7027 LOG:Ficus.(((lux|moisture|fertility|temperature):\s[0-9].+)|([a-z]+\s?)+)
ZitatWas ist damit
DEF 192.168.178.86:7027 LOG:Ficus.(((lux|moisture|fertility|temperature):\s[0-9].+)|([a-z]+\s?)+)
2018-10-18 15:27:23 dummy Ficus write sensor data
Internals:
CFGFN
DEF 10.6.6.21:7072 LOG:PflanzenSensor1.*
FD 7
Host 10.6.6.21:7072
NAME FHEM02toFHEM01
NR 15
PARTIAL
STATE connected
TYPE FHEM2FHEM
informType LOG
regexp PflanzenSensor1.*
Attributes:
room EDV
Internals:
CFGFN
NAME PflanzenSensor1
NR 2110
STATE maxTemp ok
TYPE dummy
READINGS:
2018-10-18 15:38:06 fertility 1111
2018-10-18 15:38:06 lux 331
2018-10-18 15:38:06 moisture 51
2018-10-18 15:38:06 state maxTemp ok
2018-10-18 15:38:06 temperature 18.9
Attributes:
room Test
Internals:
CFGFN
DEF 10.6.6.21:7072 LOG:PflanzenSensor1.(((lux|moisture|fertility|temperature):\s[0-9].+)|([a-z]+\s?)+)
FD 7
Host 10.6.6.21:7072
NAME FHEM02toFHEM01
NR 15
PARTIAL
STATE connected
TYPE FHEM2FHEM
informType LOG
regexp PflanzenSensor1.(((lux|moisture|fertility|temperature):\s[0-9].+)|([a-z]+\s?)+)
Attributes:
room EDV
Internals:
CFGFN
NAME PflanzenSensor1
NR 2110
STATE active
TYPE dummy
READINGS:
2018-10-18 15:41:12 fertility 1113
2018-10-18 15:41:12 lux 348
2018-10-18 15:41:12 moisture 51
2018-10-18 15:41:12 state active
2018-10-18 15:41:12 temperature 18.8
Attributes:
room Test
DEF LOG:Ficus:(lux|moisture|fertility|temperature|.*):.*
DEF 192.168.178.86:7027 LOG:Ficus.*
Zitat von: JWRu am 19 Oktober 2018, 10:10:57Ich werde die Commandref eindeutiger schreiben. Habe beim lesen festgestellt das es nicht wirklich deutlich genug rüber kommt.
Danke!
Ich hatte nicht versucht, das Attribut zu setzen, sondern nur in der Commandref gelesen.
Zitat von: smurphy am 15 Oktober 2018, 20:20:42
Guten Abend Cooltux,
Jetzt ist es bestätigt. Einstellige Werte werden mit dem Gleichheitszeichen ausgegeben.
Zumindest ist jetzt die Ursache gefunden!
Gruß
Smurphy
Server started with 179 defined entities (fhem.pl:17528/2018-10-14 perl:5.024001 os:linux user:fhem pid:1949)
2018.10.21 21:18:49 1: PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 865.
2018.10.21 21:18:49 3: eval: {XiaomiBTLESens::ExecGatttool_Done('xiaomi1|4c:65:a8:d8:ae:ef|ok|read|0x18|{"gtResult":"45 "}')}
2018.10.21 21:18:49 1: PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 866.
2018.10.21 21:18:49 3: eval: {XiaomiBTLESens::ExecGatttool_Done('xiaomi1|4c:65:a8:d8:ae:ef|ok|read|0x18|{"gtResult":"45 "}')}
2018.10.21 21:18:51 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at (eval 193) line 1.
2018.10.21 21:18:51 3: eval: { "Xiaomi Humidity Min $data{min2}, Max $data{max2}, Last $data{currval2}, Taupunkt $data{currval3}" }
2018.10.21 21:19:02 1: PERL WARNING: Argument "5.0\0" isn't numeric in numeric le (<=) at ./FHEM/98_dewpoint.pm line 278.
2018.10.21 21:20:55 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at (eval 236) line 1.
2018.10.21 21:20:56 3: eval: { "Xiaomi Humidity Min $data{min2}, Max $data{max2}, Last $data{currval2}, Taupunkt $data{currval3}" }
2018.10.21 21:26:25 1: PERL WARNING: Argument "4.8\0" isn't numeric in numeric le (<=) at ./FHEM/98_dewpoint.pm line 278.
2018.10.21 21:18:49 3: eval: {XiaomiBTLESens::ExecGatttool_Done('xiaomi1|4c:65:a8:d8:ae:ef|ok|read|0x18|{"gtResult":"45 "}')}
2018.10.21 21:18:49 1: PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 866.
2018.10.21 21:18:49 3: eval: {XiaomiBTLESens::ExecGatttool_Done('xiaomi1|4c:65:a8:d8:ae:ef|ok|read|0x18|{"gtResult":"45 "}')}
Example lines for input:
2018-10-22_14:42:40 xiaomi1 Luftfeuchtigkeit: 4.9
2018-10-22_14:42:40 xiaomi1 T: 14.9 H: 4.9 D: -24.8
2018-10-22_14:42:40 xiaomi1 dewpoint: -24.8
2018-10-22_14:42:40 xiaomi1 humidity: 4.9
2018-10-22_14:42:40 xiaomi1 temperature: 14.9
2018-10-22_14:42:28 xiaomi1 write sensor data
#File_LOG_xiaomi1 4:xiaomi1.temperature\x3a:10:
#File_LOG_xiaomi1 4:xiaomi1.humidity\x3a:50:
plot "<IN>" using 1:2 axes x1y2 title 'Measured temperature' ls l0 lw 1 with lines,\
"<IN>" using 1:2 axes x1y1 title 'Humidity_(%)' ls l2 lw 2 with lines
2018.10.21 21:18:49 3: eval: {XiaomiBTLESens::ExecGatttool_Done('xiaomi1|4c:65:a8:d8:ae:ef|ok|read|0x18|{"gtResult":"45 "}')}
2018.10.21 21:18:49 1: PERL WARNING: Illegal hexadecimal digit ' ' ignored at ./FHEM/74_XiaomiBTLESens.pm line 866.
2018.10.21 21:18:49 3: eval: {XiaomiBTLESens::ExecGatttool_Done('xiaomi1|4c:65:a8:d8:ae:ef|ok|read|0x18|{"gtResult":"45 "}')}
2018.10.24 08:35:29 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at (eval 194) line 1.
2018.10.24 08:35:29 3: eval: { "Xiaomi Humidity Min $data{min2}, Max $data{max2}, Last $data{currval2}, Taupunkt $data{currval3}" }
2018.10.24 08:35:31 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at (eval 196) line 1.
2018.10.24 08:35:31 3: eval: { "Xiaomi Humidity Min $data{min2}, Max $data{max2}, Last $data{currval2}, Taupunkt $data{currval3}" }
2018.10.24 08:35:35 1: PERL WARNING: Argument "4.7\0" isn't numeric in numeric le (<=) at ./FHEM/98_dewpoint.pm line 278.
2018.10.24 08:35:51 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at (eval 229) line 1.
2018.10.24 08:35:51 3: eval: { "Xiaomi Humidity Min $data{min2}, Max $data{max2}, Last $data{currval2}, Taupunkt $data{currval3}" }
Zitat von: smurphy am 24 Oktober 2018, 08:57:36
Habe heute leider den ganzen Tag zwei externe im Büro hocken und nach Feierabend gehen wir noch in die Stadt. Wird also leider spät oder erst morgen früh.
2018.10.24 12:10:58 5 : XiaomiBTLESens (Benjamini_Fenster) - ExecGatttool_Done: gatttool return string: Benjamini_Fenster|C4:7C:8D:66:D2:80|error|read|0x38|{"gtResult":"Connection refused (111)"}
2018.10.24 12:10:58 4 : XiaomiBTLESens (Benjamini_Fenster) - ProcessingErrors
2018.10.24 12:10:58 4 : XiaomiBTLESens (Benjamini_Fenster) - WriteReadings: Readings were written
user@fhem-VM:~$ gatttool -i hci0 -b C4:7C:8D:66:D2:80 --char-read -a 0x38
connect: Connection refused (111)
sudo hciconfig hci0 down; sudo hciconfig hci0 up
user@fhem-VM:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.5 (stretch)
Release: 9.5
Codename: stretch
user@fhem-VM:~$ bluetoothctl --version
5.43
list Benjamini_Fenster:
Internals:
BTMAC C4:7C:8D:66:D2:80
DEF C4:7C:8D:66:D2:80
INTERVAL 300
NAME Benjamini_Fenster
NOTIFYDEV global,Benjamini_Fenster
NR 264
NTFY_ORDER 50-Benjamini_Fenster
STATE Temperatur: 20.3 °C<br/>Helligkeit: 24 lx<br/>Bodenfeuchte: 19 %<br/>Dünger: 44 us/cm
TYPE XiaomiBTLESens
VERSION 2.4.3
loglevel 4
Helper:
DBLOG:
lastGattError:
DBLogging:
TIME 1540376913.49599
VALUE Connection refused (111)
state:
DBLogging:
TIME 1540376913.49599
VALUE error
READINGS:
2018-10-20 07:20:25 batteryPercent 100
2018-10-20 07:20:25 batteryState ok
2018-10-20 19:57:15 fertility 44
2018-10-20 07:20:25 firmware 3.1.8
2018-10-24 12:28:33 lastGattError Connection refused (111)
2018-10-20 19:57:15 lux 24
2018-10-20 19:57:15 moisture 19
2018-10-24 12:28:33 state error
2018-10-20 19:57:15 temperature 20.3
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 0
Attributes:
maxFertility 2000
maxLux 35000
maxMoisture 60
maxTemp 32
minFertility 350
minLux 2500
minMoisture 15
minTemp 8
model flowerSens
room MiSmartHome,Pflanzen,Wohnzimmer
stateFormat {"Temperatur: " . ReadingsVal($name, "temperature", 0) . " °C" . "<br/>" . "Helligkeit: " . ReadingsVal($name, "lux", 0) . " lx" . "<br/>" . "Bodenfeuchte: " . ReadingsVal($name, "moisture", 0) . " %" . "<br/>" . "Dünger: " . ReadingsVal($name, "fertility", 0) . " us/cm"}
verbose 5
Zitat von: CoolTux am 24 Oktober 2018, 12:37:48Hi! Danke schonmal für deine Antwort. Lepresenced läuft tatsächlich. Aber bis vor ein paar Tagen hat es damit auch funktioniert. Ich hab lepresenced gerade Mal gestoppt, was aber keinen Unterschied macht.
Wird die Schnittstelle von einer anderen Anwendung verwendet? lepresenced zum Beispiel. Ist die APP immer noch mit dem Sensor gekoppelt? Hast Du den Server mal neugestartet?
testwert {ReadingsVal ("xiaomi1","temperature",0) + ReadingsVal ("xiaomi1","humidity",0)}
2018.10.24 14:57:18 1: PERL WARNING: Argument "4.6\0" isn't numeric in addition (+) at (eval 16625) line 1.
2018.10.24 14:57:18 3: eval: {ReadingsVal ("xiaomi1","temperature",0) + ReadingsVal ("xiaomi1","humidity",0)}
testwert {ReadingsVal ("xiaomi1","temperature",0) + ReadingsVal ("xiaomi1","temperature",0)}
print $readings{humidity} . "\n";
2018.10.24 15:44:27 1: PERL WARNING: Argument "=44." isn't numeric in sprintf at ./FHEM/33_readingsGroup.pm line 543.
2018.10.24 15:44:27 1: PERL WARNING: Argument "=44." isn't numeric in numeric gt (>) at (eval 1261) line 32.
201
Zitat von: Invers am 24 Oktober 2018, 15:47:09
Hab ich mal gemacxht, da ich den selben fehler habe.
Luftfeuchted steht immer bei 0.0.
Fehler bleibt leider mit der Änderung im Modul bestehen.
Altes Modul luft aber.Code Auswählen2018.10.24 15:44:27 1: PERL WARNING: Argument "=44." isn't numeric in sprintf at ./FHEM/33_readingsGroup.pm line 543.
2018.10.24 15:44:27 1: PERL WARNING: Argument "=44." isn't numeric in numeric gt (>) at (eval 1261) line 32.
201
Zitat von: CoolTux am 24 Oktober 2018, 15:33:25
die Datei liegt unter FHEM/
meist unter /opt/fhem/FHEM/
sie heißt 74_XiaomiBTLESens.pm
Aber bitte nur machen wenn Du Dich dazu technisch in der Lage siehst. Ansonsten muss ich mir was einfallen lassen.
Zitat von: smurphy am 24 Oktober 2018, 15:53:04
Das ist wirklich kein Problem.
Ich komme vom Büro aus leider nicht auf die bash. Und per Handy + VPN + Terminal ist mir das zu frickelig.
ZitatIch befürchte Du hast nur die hälfte mit bekommen.Kann schon sein. Sorry für das Missverständnis.
2018.10.24 16:13:47 1: Logfile gelöscht
2018.10.24 16:17:59 4: XiaomiBTLESens (TMP_Bu) - Run CreateParamGatttool with mod: write
2018.10.24 16:17:59 5: XiaomiBTLESens (TMP_Bu) - Write XiaomiBTLESens_ExecGatttool_Run TMP_Bu|4C:65:A8:D2:9B:E3|write|0x10|0100
2018.10.24 16:17:59 5: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D2:9B:E3 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.10.24 16:18:09 5: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 31 39 2e 36 20 48 3d 34 34 2e 32 00
Notification handle = 0x000e value,54 3d 31 39 2e 36 20 48 3d 34 34 2e 30 00
Notification handle = 0x000e value,54 3d 31 39 2e 35 20 48 3d 34 34 2e 32 00
Notification handle = 0x000e value,54 3d 31 39 2e 36 20 48 3d 34 34 2e 34 00
Notification handle = 0x000e value,54 3d 31 39 2e 37 20 48 3d 34 34 2e 32 00
Notification handle = 0x000e value,54 3d 31 39 2e 36 20 48 3d 34 34 2e 32 00
Notification handle = 0x000e value,54 3d 31 39 2e 36 20 48 3d 34 34 2e 31 00
Notification handle = 0x000e value,54 3d 31 39 2e 36 20 48 3d 34 34 2e 32 00
Notification handle = 0x000e value,54 3d 31 39 2e 37 20 48 3d 34 34 2e 34 00
Notification handle = 0x000e value,54 3d 31 39 2e 37 20 48 3d 34 34 2e 33 00
2018.10.24 16:18:09 4: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 31 39 2e 36 20 48 3d 34 34 2e 32 00
Notification handle = 0x000e value,54 3d 31 39 2e 36 20 48 3d 34 34 2e 30 00
Notification handle = 0x000e value,54 3d 31 39 2e 35 20 48 3d 34 34 2e 32 00
Notification handle = 0x000e value,54 3d 31 39 2e 36 20 48 3d 34 34 2e 34 00
Notification handle = 0x000e value,54 3d 31 39 2e 37 20 48 3d 34 34 2e 32 00
Notification handle = 0x000e value,54 3d 31 39 2e 36 20 48 3d 34 34 2e 32 00
Notification handle = 0x000e value,54 3d 31 39 2e 36 20 48 3d 34 34 2e 31 00
Notification handle = 0x000e value,54 3d 31 39 2e 36 20 48 3d 34 34 2e 32 00
Notification handle = 0x000e value,54 3d 31 39 2e 37 20 48 3d 34 34 2e 34 00
Notification handle = 0x000e value,54 3d 31 39 2e 37 20 48 3d 34 34 2e 33 00
2018.10.24 16:18:09 5: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Done: gatttool return string: TMP_Bu|4C:65:A8:D2:9B:E3|ok|write|0x10|{"gtResult":"54 3d 31 39 2e 36 20 48 3d 34 34 2e 32 00 "}
2018.10.24 16:18:09 4: XiaomiBTLESens (TMP_Bu) - ProcessingNotification
2018.10.24 16:18:09 4: XiaomiBTLESens (TMP_Bu) - ProcessingNotification: handle 0x10
2018.10.24 16:18:09 4: XiaomiBTLESens (TMP_Bu) - Thermo/Hygro Sens Handle0x10
2018.10.24 16:18:09 4: XiaomiBTLESens (TMP_Bu) - WriteReadings: Readings were written
Internals:
BTMAC 4C:65:A8:D2:9B:E3
CFGFN
DEF 4C:65:A8:D2:9B:E3
INTERVAL 300
NAME TMP_Bu
NOTIFYDEV global,TMP_Bu
NR 451
NTFY_ORDER 50-TMP_Bu
STATE T: 19.6 H: =44.
TYPE XiaomiBTLESens
VERSION 2.4.3
loglevel 4
READINGS:
2018-10-24 08:39:05 battery ok
2018-10-24 08:39:05 batteryLevel 79
2018-10-24 16:12:26 batteryPercent 79
2018-10-24 16:12:26 batteryState ok
2018-06-12 10:14:03 firmware 00.00.66
2018-10-24 16:18:09 humidity =44.
2018-10-24 13:56:42 lastGattError charWrite faild
2018-10-24 16:18:09 state T: 19.6 H: =44.
2018-10-24 16:18:09 temperature 19.6
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1540390346.67417
updateTimestampCallBattery 2018-10-24 16:12:26
Attributes:
alias Büro
hciDevice hci0
model thermoHygroSens
room XiaomiBTLESens
verbose 5
Zitat von: CoolTux am 24 Oktober 2018, 15:12:33
die 4.6 sind bestimmt die Luftfeuchte, oder?
Wieso steht da "4.6\0" Irgendwoher muß die /0 kommen.
Kannst Du bitte einmal das hierCode Auswählen
print $readings{humidity} . "\n";
In Zeile 898 einfügen und dann einen reload 74_XiaomiBTLESens machen.
2018.10.24 22:37:20 1: PERL WARNING: Argument "4.7\0" isn't numeric in addition (+) at (eval 581) line 1.
2018.10.24 22:37:20 3: eval: {ReadingsVal ("xiaomi1","temperature",0) + ReadingsVal ("xiaomi1","humidity",0)}
2018.10.24 22:37:20 1: PERL WARNING: Argument "4.7\0" isn't numeric in addition (+) at (eval 582) line 1.
2018.10.24 22:37:20 3: eval: {ReadingsVal ("xiaomi1","temperature",0) + ReadingsVal ("xiaomi1","humidity",0)}
2018.10.24 22:37:20 1: PERL WARNING: Argument "4.7\0" isn't numeric in addition (+) at (eval 583) line 1.
2018.10.24 22:37:20 3: eval: {ReadingsVal ("xiaomi1","temperature",0) + ReadingsVal ("xiaomi1","humidity",0)}
Zitat
Zitat:CoolTux
Es wird doch im state des Devices error geschrieben wenn es Probleme gab. Du kannst gerne ein Notify darauf ansetzen und einfach das holen der Daten noch einmal anstoßen. Solltest aber einen Zähler einbauen das nach 3-4 mal nichts mehr weiter gemacht wird.
define TF_RETRY notify EG_TF_.*:error {
my $loops = "3";
my $sleeptime = "10";
for(my $i = 1;$i <= $loops;$i++) { fhem "sleep $sleeptime; get $NAME sensorData;" }
}
for(my $i = 1;$i <= $loops;$i++) { fhem "sleep $sleeptime; get $NAME sensorData;" }
if ( ReadingsVal($NAME,'count',1) == 5 ) {
CommandSet(undef, $self . ' inactive');
fhem('sleep 15; set ' . $self . ' active');
}
elsif ( ReadingsVal($NAME,'count',1) < 5 ) {
CommandGet(undef, $NAME . ' sensorData');
readingsSingleUpdate( $defs{$shuttersDev} , 'count', ReadingsVal($NAME,'count',1) + 1, 0 );
}
define TF_RETRY notify EG_TF_.*:error {\
my $loops = "3";\
my $sleeptime = "10";\
for(my $i = 1;$i <= $loops;$i++) { \
if ('$EVENT' eq 'error'){\
fhem "sleep $sleeptime; get $NAME sensorData" }\
}
define TF_RETRY notify EG_TF_.*:error {\
my $loops = "3";\
my $sleeptime = "10";\
for(my $i = 1;$i <= $loops;$i++) { \
if ( ReadingsVal('$NAME', 'state', 'undef') eq 'error'{\
fhem "sleep $sleeptime; get $NAME sensorData" }\
}
ZitatDavon ab ist hier $EVENT nie Error, da $EVENT aus "READING: READINGVALUE" besteht.
if ( ReadingsVal($NAME,'count',1) == 5 ) {
CommandSet(undef, $self . ' inactive');
fhem('sleep 15; set ' . $self . ' active');
}
elsif ( ReadingsVal($NAME,'count',1) < 5 ) {
CommandGet(undef, $NAME . ' sensorData');
readingsSingleUpdate( $defs{$shuttersDev} , 'count', ReadingsVal($NAME,'count',1) + 1, 0 );
}
Zitat von: skyline am 08 November 2018, 09:23:23Code Auswählenif ( ReadingsVal($NAME,'count',1) == 5 ) {
CommandSet(undef, $self . ' inactive');
fhem('sleep 15; set ' . $self . ' active');
}
elsif ( ReadingsVal($NAME,'count',1) < 5 ) {
CommandGet(undef, $NAME . ' sensorData');
readingsSingleUpdate( $defs{$shuttersDev} , 'count', ReadingsVal($NAME,'count',1) + 1, 0 );
}
Aber hier würde doch nie etwas den Zähler (Count) wieder auf 0 setzen.
Würde dann doch nur beim ersten mal klappen....oder?
if ( ReadingsVal($NAME,'count',1) == 5 ) {
CommandSet(undef, $self . ' inactive');
fhem('sleep 900; set ' . $self . ' active');
readingsSingleUpdate( $defs{$NAME} ,'count',0,0);
}
elsif ( ReadingsVal($NAME,'count',1) < 5 ) {
CommandGet(undef, $NAME . ' sensorData');
readingsSingleUpdate( $defs{$NAME} , 'count', ReadingsVal($NAME,'count',1) + 1, 0 );
}
Zitat von: Typ1er am 19 November 2018, 10:10:30
Ich habe neuerdings relativ viele Probleme die Sensoren abzufragen.
- lastGattError: The BlockingCall Process terminated unexpectedly. Timedout
- lastGattError: Transport endpoint is not connected (107)
- ExecGatttool_Run: another gatttool process is running. waiting...
- unreachable
XiaomiBTLESens 2.4.4
Firmware ist 3.1.9
das "hcitool lescan" lief jetzt nicht mehr, nur mit sudo und nach dem Neustart vom Bluetooth, da habe irgendwie was zerschossen, gibt es eine Möglichkeit hier alles auf Werkseinstellungen zu reseten ohne Neuinstallation?
Internals:
BTMAC 4C:65:A8:D1:7D:DC
DEF 4C:65:A8:D1:7D:DC
INTERVAL 120
NAME Schuurtemp
NOTIFYDEV global,Schuurtemp
NR 23
NTFY_ORDER 50-Schuurtemp
STATE T: 7.5 H: 6.7
TYPE XiaomiBTLESens
VERSION 2.4.4
loglevel 4
READINGS:
2018-11-20 06:53:52 batteryPercent 36
2018-11-20 06:53:52 batteryState ok
2018-02-11 11:47:33 firmware 00.00.66
2018-11-20 16:06:40 humidity 6.7
2018-11-19 19:45:58 lastGattError charWrite faild
2018-11-20 16:06:40 state T: 7.5 H: 6.7
2018-11-20 16:06:40 temperature 7.5
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1542693232.29015
updateTimestampCallBattery 2018-11-20 06:53:52
Attributes:
interval 120
model thermoHygroSens
room XiaomiBTLESens
fhem>
Zitat von: kroonen am 20 November 2018, 16:39:15
Hi
I think have a bug. When the temperature is below 10 degrees, the humitiy is not ok. The humidity should be 66.7 and not 6.7Code AuswählenInternals:
BTMAC 4C:65:A8:D1:7D:DC
DEF 4C:65:A8:D1:7D:DC
INTERVAL 120
NAME Schuurtemp
NOTIFYDEV global,Schuurtemp
NR 23
NTFY_ORDER 50-Schuurtemp
STATE T: 7.5 H: 6.7
TYPE XiaomiBTLESens
VERSION 2.4.4
loglevel 4
READINGS:
2018-11-20 06:53:52 batteryPercent 36
2018-11-20 06:53:52 batteryState ok
2018-02-11 11:47:33 firmware 00.00.66
2018-11-20 16:06:40 humidity 6.7
2018-11-19 19:45:58 lastGattError charWrite faild
2018-11-20 16:06:40 state T: 7.5 H: 6.7
2018-11-20 16:06:40 temperature 7.5
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1542693232.29015
updateTimestampCallBattery 2018-11-20 06:53:52
Attributes:
interval 120
model thermoHygroSens
room XiaomiBTLESens
fhem>
2018.11.20 22:48:55 5: XiaomiBTLESens (Schuurtemp) - 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.11.20 22:48:58 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,24
2018.11.20 22:48:58 4: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,24
2018.11.20 22:48:58 5: Cmd: >{BlockingStart('1')}<
2018.11.20 22:48:58 5: Cmd: >{XiaomiBTLESens::ExecGatttool_Done('Schuurtemp|4C:65:A8:D1:7D:DC|ok|read|0x18|{"gtResult":"24 "}')}<
2018.11.20 22:48:58 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Done: gatttool return string: Schuurtemp|4C:65:A8:D1:7D:DC|ok|read|0x18|{"gtResult":"24 "}
2018.11.20 22:48:58 4: XiaomiBTLESens (Schuurtemp) - ProcessingNotification
2018.11.20 22:48:58 4: XiaomiBTLESens (Schuurtemp) - ProcessingNotification: handle 0x18
2018.11.20 22:48:58 4: XiaomiBTLESens (Schuurtemp) - Thermo/Hygro Sens Handle0x18
2018.11.20 22:48:58 5: Starting notify loop for Schuurtemp, 3 event(s), first is batteryPercent: 36
2018.11.20 22:48:58 5: Notify for Schuurtemp
2018.11.20 22:48:58 5: batteryPercent: 36, 'batteryPercent', '36'
2018.11.20 22:48:58 5: MQTT mqtt message sent: Publish/at-most-once,retain /Schuurtemp/Schuurtemp/Batt
33 36 36
2018.11.20 22:48:58 5: SW: 311f001b2f53636875757274656d702f53636875757274656d702f426174743336
2018.11.20 22:48:58 5: Starting notify loop for schuurtemp_mqtt, 1 event(s), first is transmission-state: outgoing publish sent
2018.11.20 22:48:58 5: End notify loop for schuurtemp_mqtt
2018.11.20 22:48:58 5: batteryState: ok, 'batteryState', 'ok'
2018.11.20 22:48:58 5: T: 7.3 H: 7.6, 'T', '7.3 H: 7.6'
2018.11.20 22:48:58 5: End notify loop for Schuurtemp
2018.11.20 22:48:58 4: XiaomiBTLESens (Schuurtemp) - WriteReadings: Readings were written
2018.11.20 22:48:58 4: XiaomiBTLESens (Schuurtemp) - Run CreateParamGatttool with mod: write
2018.11.20 22:48:58 4: BlockingCall (XiaomiBTLESens::ExecGatttool_Run): created child (28777), uses telnetPort to connect back
2018.11.20 22:48:58 5: Starting notify loop for Schuurtemp, 1 event(s), first is write sensor data
2018.11.20 22:48:58 5: Notify for Schuurtemp
2018.11.20 22:48:58 5: write sensor data, 'write sensor data', ''
2018.11.20 22:48:58 5: End notify loop for Schuurtemp
2018.11.20 22:48:58 5: XiaomiBTLESens (Schuurtemp) - Write XiaomiBTLESens_ExecGatttool_Run Schuurtemp|4C:65:A8:D1:7D:DC|write|0x10|0100
2018.11.20 22:48:58 4: Connection accepted from telnetPort_127.0.0.1_54422
2018.11.20 22:48:58 5: Cmd: >{BlockingRegisterTelnet($cl,2)}<
2018.11.20 22:48:58 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: call gatttool with command: timeout 10 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.11.20 22:49:08 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 34 00
Notification handle = 0x000e value,54 3d 37 2e 32 20 48 3d 36 37 2e 36 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 38 00
Notification handle = 0x000e value,54 3d 37 2e 34 20 48 3d 36 37 2e 37 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 37 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 38 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 37 00
2018.11.20 22:49:08 4: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 34 00
Notification handle = 0x000e value,54 3d 37 2e 32 20 48 3d 36 37 2e 36 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 38 00
Notification handle = 0x000e value,54 3d 37 2e 34 20 48 3d 36 37 2e 37 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 37 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 38 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 37 00
2018.11.20 22:49:08 5: Cmd: >{BlockingStart('2')}<
2018.11.20 22:49:08 5: Cmd: >{XiaomiBTLESens::ExecGatttool_Done('Schuurtemp|4C:65:A8:D1:7D:DC|ok|write|0x10|{"gtResult":"54 3d 37 2e 33 20 48 3d 36 37 2e 34 00 "}')}<
2018.11.20 22:49:08 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Done: gatttool return string: Schuurtemp|4C:65:A8:D1:7D:DC|ok|write|0x10|{"gtResult":"54 3d 37 2e 33 20 48 3d 36 37 2e 34 00 "}
2018.11.20 22:49:08 4: XiaomiBTLESens (Schuurtemp) - ProcessingNotification
2018.11.20 22:49:08 4: XiaomiBTLESens (Schuurtemp) - ProcessingNotification: handle 0x10
2018.11.20 22:49:08 4: XiaomiBTLESens (Schuurtemp) - Thermo/Hygro Sens Handle0x10
2018.11.20 22:49:08 5: Starting notify loop for Schuurtemp, 3 event(s), first is temperature: 7.3
2018.11.20 22:49:08 5: Notify for Schuurtemp
2018.11.20 22:49:08 5: temperature: 7.3 , 'temperature', '7.3 '
2018.11.20 22:49:08 5: MQTT mqtt message sent: Publish/at-most-once,retain /Schuurtemp/Schuurtemp/Temperature
37 2e 33 20 7.3
2018.11.20 22:49:08 5: SW: 312800222f53636875757274656d702f53636875757274656d702f54656d7065726174757265372e3320
2018.11.20 22:49:08 5: Starting notify loop for schuurtemp_mqtt, 1 event(s), first is transmission-state: outgoing publish sent
2018.11.20 22:49:08 5: End notify loop for schuurtemp_mqtt
2018.11.20 22:49:08 5: humidity: 7.4, 'humidity', '7.4'
2018.11.20 22:49:08 5: MQTT mqtt message sent: Publish/at-most-once,retain /Schuurtemp/Schuurtemp/Humidity
37 2e 34 00 7.4.
2018.11.20 22:49:08 5: SW: 3125001f2f53636875757274656d702f53636875757274656d702f48756d6964697479372e3400
2018.11.20 22:49:08 5: Starting notify loop for schuurtemp_mqtt, 1 event(s), first is transmission-state: outgoing publish sent
2018.11.20 22:49:08 5: End notify loop for schuurtemp_mqtt
2018.11.20 22:49:08 5: T: 7.3 H: 7.4, 'T', '7.3 H: 7.4'
2018.11.20 22:49:08 5: End notify loop for Schuurtemp
2018.11.20 22:49:08 4: XiaomiBTLESens (Schuurtemp) - WriteReadings: Readings were written
2018.11.20 22:49:12 4: Connection accepted from WEB_192.168.180.32_56849
2018.11.20 22:49:12 4: WEB_192.168.180.32_56849 GET /fhem; BUFLEN:0
2018.11.20 22:49:12 4: WEB: /fhem / RL:1256 / text/html; charset=UTF-8 / Content-Encoding: gzip
/
Zitat von: kroonen am 20 November 2018, 22:53:34
Here an verbose log 5Code Auswählen
2018.11.20 22:48:55 5: XiaomiBTLESens (Schuurtemp) - 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.11.20 22:48:58 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,24
2018.11.20 22:48:58 4: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,24
2018.11.20 22:48:58 5: Cmd: >{BlockingStart('1')}<
2018.11.20 22:48:58 5: Cmd: >{XiaomiBTLESens::ExecGatttool_Done('Schuurtemp|4C:65:A8:D1:7D:DC|ok|read|0x18|{"gtResult":"24 "}')}<
2018.11.20 22:48:58 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Done: gatttool return string: Schuurtemp|4C:65:A8:D1:7D:DC|ok|read|0x18|{"gtResult":"24 "}
2018.11.20 22:48:58 4: XiaomiBTLESens (Schuurtemp) - ProcessingNotification
2018.11.20 22:48:58 4: XiaomiBTLESens (Schuurtemp) - ProcessingNotification: handle 0x18
2018.11.20 22:48:58 4: XiaomiBTLESens (Schuurtemp) - Thermo/Hygro Sens Handle0x18
2018.11.20 22:48:58 5: Starting notify loop for Schuurtemp, 3 event(s), first is batteryPercent: 36
2018.11.20 22:48:58 5: Notify for Schuurtemp
2018.11.20 22:48:58 5: batteryPercent: 36, 'batteryPercent', '36'
2018.11.20 22:48:58 5: MQTT mqtt message sent: Publish/at-most-once,retain /Schuurtemp/Schuurtemp/Batt
33 36 36
2018.11.20 22:48:58 5: SW: 311f001b2f53636875757274656d702f53636875757274656d702f426174743336
2018.11.20 22:48:58 5: Starting notify loop for schuurtemp_mqtt, 1 event(s), first is transmission-state: outgoing publish sent
2018.11.20 22:48:58 5: End notify loop for schuurtemp_mqtt
2018.11.20 22:48:58 5: batteryState: ok, 'batteryState', 'ok'
2018.11.20 22:48:58 5: T: 7.3 H: 7.6, 'T', '7.3 H: 7.6'
2018.11.20 22:48:58 5: End notify loop for Schuurtemp
2018.11.20 22:48:58 4: XiaomiBTLESens (Schuurtemp) - WriteReadings: Readings were written
2018.11.20 22:48:58 4: XiaomiBTLESens (Schuurtemp) - Run CreateParamGatttool with mod: write
2018.11.20 22:48:58 4: BlockingCall (XiaomiBTLESens::ExecGatttool_Run): created child (28777), uses telnetPort to connect back
2018.11.20 22:48:58 5: Starting notify loop for Schuurtemp, 1 event(s), first is write sensor data
2018.11.20 22:48:58 5: Notify for Schuurtemp
2018.11.20 22:48:58 5: write sensor data, 'write sensor data', ''
2018.11.20 22:48:58 5: End notify loop for Schuurtemp
2018.11.20 22:48:58 5: XiaomiBTLESens (Schuurtemp) - Write XiaomiBTLESens_ExecGatttool_Run Schuurtemp|4C:65:A8:D1:7D:DC|write|0x10|0100
2018.11.20 22:48:58 4: Connection accepted from telnetPort_127.0.0.1_54422
2018.11.20 22:48:58 5: Cmd: >{BlockingRegisterTelnet($cl,2)}<
2018.11.20 22:48:58 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: call gatttool with command: timeout 10 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.11.20 22:49:08 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 34 00
Notification handle = 0x000e value,54 3d 37 2e 32 20 48 3d 36 37 2e 36 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 38 00
Notification handle = 0x000e value,54 3d 37 2e 34 20 48 3d 36 37 2e 37 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 37 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 38 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 37 00
2018.11.20 22:49:08 4: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 34 00
Notification handle = 0x000e value,54 3d 37 2e 32 20 48 3d 36 37 2e 36 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 38 00
Notification handle = 0x000e value,54 3d 37 2e 34 20 48 3d 36 37 2e 37 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 37 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 38 00
Notification handle = 0x000e value,54 3d 37 2e 33 20 48 3d 36 37 2e 37 00
2018.11.20 22:49:08 5: Cmd: >{BlockingStart('2')}<
2018.11.20 22:49:08 5: Cmd: >{XiaomiBTLESens::ExecGatttool_Done('Schuurtemp|4C:65:A8:D1:7D:DC|ok|write|0x10|{"gtResult":"54 3d 37 2e 33 20 48 3d 36 37 2e 34 00 "}')}<
2018.11.20 22:49:08 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Done: gatttool return string: Schuurtemp|4C:65:A8:D1:7D:DC|ok|write|0x10|{"gtResult":"54 3d 37 2e 33 20 48 3d 36 37 2e 34 00 "}
2018.11.20 22:49:08 4: XiaomiBTLESens (Schuurtemp) - ProcessingNotification
2018.11.20 22:49:08 4: XiaomiBTLESens (Schuurtemp) - ProcessingNotification: handle 0x10
2018.11.20 22:49:08 4: XiaomiBTLESens (Schuurtemp) - Thermo/Hygro Sens Handle0x10
2018.11.20 22:49:08 5: Starting notify loop for Schuurtemp, 3 event(s), first is temperature: 7.3
2018.11.20 22:49:08 5: Notify for Schuurtemp
2018.11.20 22:49:08 5: temperature: 7.3 , 'temperature', '7.3 '
2018.11.20 22:49:08 5: MQTT mqtt message sent: Publish/at-most-once,retain /Schuurtemp/Schuurtemp/Temperature
37 2e 33 20 7.3
2018.11.20 22:49:08 5: SW: 312800222f53636875757274656d702f53636875757274656d702f54656d7065726174757265372e3320
2018.11.20 22:49:08 5: Starting notify loop for schuurtemp_mqtt, 1 event(s), first is transmission-state: outgoing publish sent
2018.11.20 22:49:08 5: End notify loop for schuurtemp_mqtt
2018.11.20 22:49:08 5: humidity: 7.4, 'humidity', '7.4'
2018.11.20 22:49:08 5: MQTT mqtt message sent: Publish/at-most-once,retain /Schuurtemp/Schuurtemp/Humidity
37 2e 34 00 7.4.
2018.11.20 22:49:08 5: SW: 3125001f2f53636875757274656d702f53636875757274656d702f48756d6964697479372e3400
2018.11.20 22:49:08 5: Starting notify loop for schuurtemp_mqtt, 1 event(s), first is transmission-state: outgoing publish sent
2018.11.20 22:49:08 5: End notify loop for schuurtemp_mqtt
2018.11.20 22:49:08 5: T: 7.3 H: 7.4, 'T', '7.3 H: 7.4'
2018.11.20 22:49:08 5: End notify loop for Schuurtemp
2018.11.20 22:49:08 4: XiaomiBTLESens (Schuurtemp) - WriteReadings: Readings were written
2018.11.20 22:49:12 4: Connection accepted from WEB_192.168.180.32_56849
2018.11.20 22:49:12 4: WEB_192.168.180.32_56849 GET /fhem; BUFLEN:0
2018.11.20 22:49:12 4: WEB: /fhem / RL:1256 / text/html; charset=UTF-8 / Content-Encoding: gzip
/
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
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
Zitat von: CoolTux am 20 November 2018, 09:43:42Das hatte ich schon mehrfach gemacht.
Starte bitte einmal den kompletten Rechner neu und schaue ob es dann besser läuft.
Zitat von: Zenz am 24 November 2018, 16:49:11Code Auswählenzuerst einmal recht herzlichen Dank für deine Hilfe!
[/code]
Hoffe, dass ich das von dir benötigte, richtige gemacht habe :-\
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 Zitrone sensorData
lastGattError
The BlockingCall Process terminated unexpectedly. Timedout
2018-11-24 16:56:45
state
read sensor data
2018-11-24 16:58:47
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
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
Zitat von: CoolTux am 24 November 2018, 13:43:17Oh oh, das nicht, aber ich habe eine Lampe von Xiaomi die die Sensoren auch abfragt.
Du lässt aber nicht die App gleichzeitig laufen wie das Modul oder?
Das geht nämlich nicht, dann blockiert die App.
Zitat von: Typ1er am 24 November 2018, 20:19:33
Oh oh, das nicht, aber ich habe eine Lampe von Xiaomi die die Sensoren auch abfragt.
Zitat von: Zenz am 25 November 2018, 12:58:03
@ CoolTux
vielen, vielen Dank für deine Geduld und Hilfe.
Habe soeben meine SD Karte in einen zweiten Raspberry gesteckt und es läuft ohne Probleme :-)
Bei der Gegenprobe wieder Error => RPI ist wohl ein Fall für die Tonne.
LG
Zenz
Too many levels of symbolic links (40)
Zitat von: Teamdrachen am 11 Dezember 2018, 12:01:21
Hallo,
ich habe die Xiaomi Temperatur/Feuchtesensoren im Einsatz und leider immer wieder Probleme.
eigentlich nur ein ProblemCode AuswählenToo many levels of symbolic links (40)
Raspbery pi 3B
bluetoothctl 5.47
Manchmal liest FHEM Daten aus, in 99% der Fälle jedoch nicht.
Mir ist klar. Liegt nicht am Modul, aber ich hab bisher noch keine wirkliche Lösung gefunden und evtl hat jemand hier das Problem erfolgreich behoben.
Zitat von: CoolTux am 21 Dezember 2018, 08:05:07
Wenn ich das richtig gelesen habe ist das ein Branding. Original soll es Xiaomi sein. Kannst Du mir bitte ein verbose 5 geben. Brauche die ausgelesenen Werte.
Zitat von: CoolTux am 21 Dezember 2018, 08:05:07
Wenn ich das richtig gelesen habe ist das ein Branding. Original soll es Xiaomi sein. Kannst Du mir bitte ein verbose 5 geben. Brauche die ausgelesenen Werte.
2018.12.23 06:53:41 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
32 20 48 3d 36 36 2e 35 00 "}
2018.12.23 06:53:41 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 06:53:41 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 06:53:41 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 06:53:41 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 06:56:11 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 06:56:11 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 06:56:11 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 06:56:11 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 06:56:21 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 06:56:21 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 06:56:21 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
32 20 48 3d 36 36 2e 37 00 "}
2018.12.23 06:56:21 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 06:56:21 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 06:56:21 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 06:56:21 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 07:00:58 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 07:00:58 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 07:00:58 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 07:00:58 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 07:01:01 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result connect error,Transport endpoint is not connected (107)
2018.12.23 07:01:01 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 1
2018.12.23 07:01:11 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 07:01:11 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 07:01:11 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
32 20 48 3d 36 36 2e 38 00 "}
2018.12.23 07:01:11 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 07:01:11 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 07:01:11 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 07:01:11 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 07:04:05 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 07:04:05 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 07:04:05 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 07:04:05 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 07:04:15 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 07:04:15 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 07:04:15 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
32 20 48 3d 36 36 2e 38 00 "}
2018.12.23 07:04:15 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 07:04:15 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 07:04:15 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 07:04:15 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 07:07:03 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 07:07:03 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 07:07:03 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 07:07:04 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 07:07:14 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 07:07:14 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 07:07:14 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 39 00 "}
2018.12.23 07:07:14 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 07:07:14 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 07:07:14 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 07:07:14 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 07:11:26 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 07:11:26 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 07:11:26 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 07:11:26 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 07:11:37 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 07:11:37 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 07:11:37 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 37 00 "}
2018.12.23 07:11:37 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 07:11:37 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 07:11:37 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 07:11:37 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 07:14:49 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 07:14:49 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 07:14:49 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 07:14:50 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 07:15:00 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 07:15:00 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 07:15:00 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
32 20 48 3d 36 36 2e 35 00 "}
2018.12.23 07:15:00 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 07:15:00 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 07:15:00 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 07:15:00 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 07:19:54 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 07:19:54 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 07:19:54 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 07:19:55 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 07:20:05 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 07:20:05 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 07:20:05 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 37 00 "}
2018.12.23 07:20:05 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 07:20:05 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 07:20:05 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 07:20:05 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 07:26:26 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 07:26:26 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 07:26:26 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 07:26:27 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 07:26:37 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 07:26:37 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 07:26:37 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 39 00 "}
2018.12.23 07:26:37 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 07:26:37 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 07:26:37 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 07:26:37 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 07:31:52 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 07:31:53 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 07:31:53 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 07:31:53 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 07:32:03 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 07:32:03 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 07:32:03 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
32 20 48 3d 36 36 2e 38 00 "}
2018.12.23 07:32:03 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 07:32:03 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 07:32:03 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 07:32:03 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 07:36:24 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 07:36:24 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 07:36:24 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 07:36:24 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 07:36:34 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 07:36:34 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 07:36:34 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 37 00 "}
2018.12.23 07:36:34 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 07:36:34 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 07:36:34 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 07:36:34 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 07:39:50 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 07:39:50 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 07:39:50 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 07:39:50 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 07:40:00 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 07:40:00 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 07:40:00 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 38 00 "}
2018.12.23 07:40:00 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 07:40:00 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 07:40:00 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 07:40:00 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 07:42:43 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 07:42:43 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 07:42:43 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 07:42:43 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 07:42:53 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result
2018.12.23 07:42:53 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 1
2018.12.23 07:43:03 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 07:43:03 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 07:43:03 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 39 00 "}
2018.12.23 07:43:03 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 07:43:03 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 07:43:03 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 07:43:03 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 07:46:31 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 07:46:31 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 07:46:31 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 07:46:31 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 07:46:41 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 07:46:41 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 07:46:41 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 34 00 "}
2018.12.23 07:46:41 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 07:46:41 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 07:46:41 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 07:46:41 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 07:51:11 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 07:51:11 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 07:51:11 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 07:51:11 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 07:51:21 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 07:51:21 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 07:51:21 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 39 00 "}
2018.12.23 07:51:21 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 07:51:21 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 07:51:21 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 07:51:21 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 07:54:09 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 07:54:09 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 07:54:09 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 07:54:09 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 07:54:19 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 07:54:19 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 07:54:19 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
32 20 48 3d 36 36 2e 35 00 "}
2018.12.23 07:54:19 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 07:54:19 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 07:54:19 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 07:54:19 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 08:00:53 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 08:00:53 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 08:00:53 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 08:00:53 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 08:01:03 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 08:01:03 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 08:01:03 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 39 00 "}
2018.12.23 08:01:03 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 08:01:03 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 08:01:03 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 08:01:03 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 08:03:04 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 08:03:04 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 08:03:04 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 08:03:04 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 08:03:14 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 08:03:14 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 08:03:14 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 36 00 "}
2018.12.23 08:03:14 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 08:03:14 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 08:03:14 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 08:03:14 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 08:06:15 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 08:06:15 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 08:06:15 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 08:06:15 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 08:06:25 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 08:06:25 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 08:06:25 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
32 20 48 3d 36 37 2e 30 00 "}
2018.12.23 08:06:25 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 08:06:25 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 08:06:25 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 08:06:25 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 08:09:01 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 08:09:01 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 08:09:01 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 08:09:01 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 08:09:11 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 08:09:11 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 08:09:11 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 39 00 "}
2018.12.23 08:09:11 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 08:09:11 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 08:09:11 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 08:09:11 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 08:15:02 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 08:15:02 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 08:15:02 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 08:15:02 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 08:15:13 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 08:15:13 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 08:15:13 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 38 00 "}
2018.12.23 08:15:13 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 08:15:13 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 08:15:13 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 08:15:13 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 08:21:17 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 08:21:17 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 08:21:17 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 08:21:17 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 08:21:27 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 08:21:27 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 08:21:27 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 36 00 "}
2018.12.23 08:21:27 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 08:21:27 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 08:21:27 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 08:21:27 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 08:28:15 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 08:28:15 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 08:28:15 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 08:28:15 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 08:28:25 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 08:28:25 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 08:28:25 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 36 00 "}
2018.12.23 08:28:25 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 08:28:25 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 08:28:25 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 08:28:25 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 08:33:20 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 08:33:20 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 08:33:20 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 08:33:20 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 08:33:30 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 08:33:30 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 08:33:30 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 36 00 "}
2018.12.23 08:33:30 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 08:33:30 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 08:33:30 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 08:33:30 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 08:39:22 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 08:39:22 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 08:39:22 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 08:39:22 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 08:39:32 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 08:39:32 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 08:39:32 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 33 00 "}
2018.12.23 08:39:33 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 08:39:33 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 08:39:33 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 08:39:33 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 08:44:01 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 08:44:01 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 08:44:01 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 08:44:01 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 08:44:12 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 08:44:12 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 08:44:12 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 39 00 "}
2018.12.23 08:44:12 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 08:44:12 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 08:44:12 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 08:44:12 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 08:46:40 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 08:46:40 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 08:46:40 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 08:46:41 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 08:46:51 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 08:46:51 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 08:46:51 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 35 00 "}
2018.12.23 08:46:51 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 08:46:51 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 08:46:51 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 08:46:51 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 08:49:13 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 08:49:13 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 08:49:13 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 08:49:14 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 08:49:17 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result connect error,Function not implemented (38)
2018.12.23 08:49:17 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 1
2018.12.23 08:49:23 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result connect error,Function not implemented (38)
2018.12.23 08:49:23 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 2
2018.12.23 08:49:33 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 08:49:33 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 08:49:33 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 39 00 "}
2018.12.23 08:49:33 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 08:49:33 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 08:49:33 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 08:49:33 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 08:55:45 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 08:55:45 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 08:55:45 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 08:55:46 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 08:55:56 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 08:55:56 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 08:55:56 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 34 00 "}
2018.12.23 08:55:56 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 08:55:56 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 08:55:56 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 08:55:56 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 09:01:39 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 09:01:40 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 09:01:40 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 09:01:40 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 09:01:50 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 09:01:50 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 09:01:50 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 38 00 "}
2018.12.23 09:01:50 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 09:01:50 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 09:01:50 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 09:01:50 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 09:04:34 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 09:04:34 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 09:04:34 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 09:04:34 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 09:04:44 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 09:04:44 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 09:04:44 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
32 20 48 3d 36 36 2e 37 00 "}
2018.12.23 09:04:44 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 09:04:44 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 09:04:44 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 09:04:44 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 09:07:11 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 09:07:11 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 09:07:11 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 09:07:11 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 09:07:21 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 09:07:21 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 09:07:21 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 36 00 "}
2018.12.23 09:07:21 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 09:07:21 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 09:07:21 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 09:07:21 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 09:12:56 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 09:12:56 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 09:12:56 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 09:12:56 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 09:13:06 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 09:13:06 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 09:13:06 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 35 00 "}
2018.12.23 09:13:06 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 09:13:06 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 09:13:06 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 09:13:06 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 09:16:22 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 09:16:22 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 09:16:22 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 09:16:22 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 09:16:32 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 09:16:32 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 09:16:32 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 36 00 "}
2018.12.23 09:16:32 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 09:16:32 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 09:16:32 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 09:16:32 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 09:21:34 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 09:21:34 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 09:21:34 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 09:21:34 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 09:21:44 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 09:21:44 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 09:21:44 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 34 00 "}
2018.12.23 09:21:44 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 09:21:44 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 09:21:44 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 09:21:44 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 09:25:25 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 09:25:25 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 09:25:25 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 09:25:25 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 09:25:35 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 09:25:35 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 09:25:35 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"no data respon
se"}
2018.12.23 09:25:35 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 09:25:35 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 09:25:35 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 09:25:35 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 09:25:35 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 09:31:44 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 09:31:44 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 09:31:44 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 09:31:44 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 09:31:54 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 09:31:54 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 09:31:54 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
30 20 48 3d 36 36 2e 32 00 "}
2018.12.23 09:31:54 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 09:31:54 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 09:31:54 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 09:31:54 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 09:38:19 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 09:38:19 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 09:38:19 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 09:38:19 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 09:38:29 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 09:38:29 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 09:38:29 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
32 20 48 3d 36 36 2e 32 00 "}
2018.12.23 09:38:29 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 09:38:29 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 09:38:29 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 09:38:29 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 09:42:38 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 09:42:38 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 09:42:38 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 09:42:38 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 09:42:48 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 09:42:48 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 09:42:48 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 34 00 "}
2018.12.23 09:42:48 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 09:42:48 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 09:42:48 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 09:42:48 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 09:49:23 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 09:49:23 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 09:49:23 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 09:49:23 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 09:49:33 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 09:49:33 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 09:49:33 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 34 00 "}
2018.12.23 09:49:33 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 09:49:33 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 09:49:33 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 09:49:33 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 09:54:47 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 09:54:47 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 09:54:47 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 09:54:47 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 09:54:57 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 09:54:57 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 12:17:18 3: XiaomiBTLESens (Floribunda) - defined with BTMAC C4:7C:8D:61:9C:D0
2018.12.23 12:17:18 3: XiaomiBTLESens (Beaucarnea) - defined with BTMAC C4:7C:8D:61:7C:FF
2018.12.23 12:17:18 3: XiaomiBTLESens (test1) - defined with BTMAC 4C:65:A8:D2:64:7E
2018.12.23 12:17:18 3: XiaomiBTLESens (test1) - set interval to 120
2018.12.23 12:17:18 3: XiaomiBTLESens (test2) - defined with BTMAC 4C:65:A8:D6:77:51
2018.12.23 12:17:18 3: XiaomiBTLESens (test3) - defined with BTMAC 4C:65:A8:D2:2C:0C
2018.12.23 12:17:18 3: XiaomiBTLESens (test4) - defined with BTMAC 4C:65:A8:DA:A1:86
2018.12.23 12:17:18 1: Including /opt/loxberry/data/plugins/fhem/fhem.save
2018.12.23 12:17:18 1: usb create starting
2018.12.23 12:17:18 3: Probing ZWDongle device /dev/serial1
2018.12.23 12:17:18 3: Probing CUL device /dev/ttyAMA0
2018.12.23 12:17:18 3: Probing TCM_ESP3 device /dev/ttyAMA0
2018.12.23 12:17:19 3: Probing ZWDongle device /dev/ttyAMA0
2018.12.23 12:17:19 3: Probing FRM device /dev/ttyAMA0
2018.12.23 12:17:24 1: usb create end
2018.12.23 12:17:24 4: XiaomiBTLESens (test1) - Run CreateParamGatttool with mod: read
2018.12.23 12:17:24 5: XiaomiBTLESens (test1) - Read XiaomiBTLESens_ExecGatttool_Run test1|4C:65:A8:D2:64:7E|read|0x24
2018.12.23 12:17:24 4: XiaomiBTLESens (test1) - stateRequestTimer: Call Request Timer
2018.12.23 12:17:24 0: Featurelevel: 5.9
2018.12.23 12:17:24 0: Server started with 15 defined entities (fhem.pl:18029/2018-12-22 perl:5.024001 os:linux user:loxberry pid:955)
2018.12.23 12:17:24 5: XiaomiBTLESens (test1) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 4C:65:A8:D2:64:7E --char-read -a 0x24 2>&1 /dev/null and loop 0
2018.12.23 12:17:31 5: XiaomiBTLESens (test1) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.12.23 12:17:31 5: XiaomiBTLESens (test1) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 4C:65:A8:D2:64:7E --char-read -a 0x24 2>&1 /dev/null and loop 1
2018.12.23 12:17:31 5: XiaomiBTLESens (test1) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.12.23 12:17:31 5: XiaomiBTLESens (test1) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 4C:65:A8:D2:64:7E --char-read -a 0x24 2>&1 /dev/null and loop 2
2018.12.23 12:17:31 5: XiaomiBTLESens (test1) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.12.23 12:17:31 5: XiaomiBTLESens (test1) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 4C:65:A8:D2:64:7E --char-read -a 0x24 2>&1 /dev/null and loop 3
2018.12.23 12:17:31 5: XiaomiBTLESens (test1) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.12.23 12:17:31 5: XiaomiBTLESens (test1) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 4C:65:A8:D2:64:7E --char-read -a 0x24 2>&1 /dev/null and loop 4
2018.12.23 12:17:31 5: XiaomiBTLESens (test1) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.12.23 12:17:31 4: XiaomiBTLESens (test1) - ExecGatttool_Run: gatttool result connect error,Invalid argument (22)
2018.12.23 12:17:31 5: XiaomiBTLESens (test1) - ExecGatttool_Done: gatttool return string: test1|4C:65:A8:D2:64:7E|error|read|0x24|{"gtResult":"Invalid argument (22)"}
2018.12.23 12:17:31 4: XiaomiBTLESens (test1) - ProcessingErrors
2018.12.23 12:17:31 4: XiaomiBTLESens (test1) - WriteReadings: Readings were written
Zitat von: Neuhier am 23 Dezember 2018, 12:30:21
Meine Xiaomi / Aqara Sensoren ( Luftdruck/ Temperatur/ Feuchtigkeit/ Bewegung) arbeiten per zigbee2mqtt, nicht per BT.
Zitat von: rani22 am 23 Dezember 2018, 12:25:08
Die beiden Pflanzensensoren habe ich integriert, jedoch bei den Temperatur und Feuchtesensoren komme ich nicht weiter.Code Auswählen
2018.12.23 12:17:18 3: XiaomiBTLESens (Floribunda) - defined with BTMAC C4:7C:8D:61:9C:D0
2018.12.23 12:17:18 3: XiaomiBTLESens (Beaucarnea) - defined with BTMAC C4:7C:8D:61:7C:FF
2018.12.23 12:17:18 3: XiaomiBTLESens (test1) - defined with BTMAC 4C:65:A8:D2:64:7E
2018.12.23 12:17:18 3: XiaomiBTLESens (test1) - set interval to 120
2018.12.23 12:17:18 3: XiaomiBTLESens (test2) - defined with BTMAC 4C:65:A8:D6:77:51
2018.12.23 12:17:18 3: XiaomiBTLESens (test3) - defined with BTMAC 4C:65:A8:D2:2C:0C
2018.12.23 12:17:18 3: XiaomiBTLESens (test4) - defined with BTMAC 4C:65:A8:DA:A1:86
2018.12.23 12:17:18 1: Including /opt/loxberry/data/plugins/fhem/fhem.save
2018.12.23 12:17:18 1: usb create starting
2018.12.23 12:17:18 3: Probing ZWDongle device /dev/serial1
2018.12.23 12:17:18 3: Probing CUL device /dev/ttyAMA0
2018.12.23 12:17:18 3: Probing TCM_ESP3 device /dev/ttyAMA0
2018.12.23 12:17:19 3: Probing ZWDongle device /dev/ttyAMA0
2018.12.23 12:17:19 3: Probing FRM device /dev/ttyAMA0
2018.12.23 12:17:24 1: usb create end
2018.12.23 12:17:24 4: XiaomiBTLESens (test1) - Run CreateParamGatttool with mod: read
2018.12.23 12:17:24 5: XiaomiBTLESens (test1) - Read XiaomiBTLESens_ExecGatttool_Run test1|4C:65:A8:D2:64:7E|read|0x24
2018.12.23 12:17:24 4: XiaomiBTLESens (test1) - stateRequestTimer: Call Request Timer
2018.12.23 12:17:24 0: Featurelevel: 5.9
2018.12.23 12:17:24 0: Server started with 15 defined entities (fhem.pl:18029/2018-12-22 perl:5.024001 os:linux user:loxberry pid:955)
2018.12.23 12:17:24 5: XiaomiBTLESens (test1) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 4C:65:A8:D2:64:7E --char-read -a 0x24 2>&1 /dev/null and loop 0
2018.12.23 12:17:31 5: XiaomiBTLESens (test1) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.12.23 12:17:31 5: XiaomiBTLESens (test1) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 4C:65:A8:D2:64:7E --char-read -a 0x24 2>&1 /dev/null and loop 1
2018.12.23 12:17:31 5: XiaomiBTLESens (test1) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.12.23 12:17:31 5: XiaomiBTLESens (test1) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 4C:65:A8:D2:64:7E --char-read -a 0x24 2>&1 /dev/null and loop 2
2018.12.23 12:17:31 5: XiaomiBTLESens (test1) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.12.23 12:17:31 5: XiaomiBTLESens (test1) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 4C:65:A8:D2:64:7E --char-read -a 0x24 2>&1 /dev/null and loop 3
2018.12.23 12:17:31 5: XiaomiBTLESens (test1) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.12.23 12:17:31 5: XiaomiBTLESens (test1) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 4C:65:A8:D2:64:7E --char-read -a 0x24 2>&1 /dev/null and loop 4
2018.12.23 12:17:31 5: XiaomiBTLESens (test1) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.12.23 12:17:31 4: XiaomiBTLESens (test1) - ExecGatttool_Run: gatttool result connect error,Invalid argument (22)
2018.12.23 12:17:31 5: XiaomiBTLESens (test1) - ExecGatttool_Done: gatttool return string: test1|4C:65:A8:D2:64:7E|error|read|0x24|{"gtResult":"Invalid argument (22)"}
2018.12.23 12:17:31 4: XiaomiBTLESens (test1) - ProcessingErrors
2018.12.23 12:17:31 4: XiaomiBTLESens (test1) - WriteReadings: Readings were written
hat jemand einen Tipp was ich anderst machen muss?
Habe noch eine BLE Gatewaylampe, diese habe ich ausgesteckt, hilft auch nichts
Zitat von: stole am 23 Dezember 2018, 10:36:39Code Auswählen
2018.12.23 06:53:41 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
32 20 48 3d 36 36 2e 35 00 "}
2018.12.23 06:53:41 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 06:53:41 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 06:53:41 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 06:53:41 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 06:56:11 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 06:56:11 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 06:56:11 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 06:56:11 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 06:56:21 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 06:56:21 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 06:56:21 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
32 20 48 3d 36 36 2e 37 00 "}
Zitat von: CoolTux am 23 Dezember 2018, 12:51:20
Schaue ich mir die Tage einmal an.
2018.12.23 17:30:48 0: Server started with 18 defined entities (fhem.pl:18029/2018-12-22 perl:5.024001 os:linux user:loxberry pid:7807)
2018.12.23 17:32:12 1: Timeout for XiaomiBTLESens::ExecGatttool_Run reached, terminated process 7814
2018.12.23 17:32:12 1: Timeout for XiaomiBTLESens::ExecGatttool_Run reached, terminated process 7815
2018.12.23 17:32:18 1: Timeout for XiaomiBTLESens::ExecGatttool_Run reached, terminated process 7821
2018.12.23 17:32:18 1: Timeout for XiaomiBTLESens::ExecGatttool_Run reached, terminated process 7822
2018.12.23 17:32:18 1: Timeout for XiaomiBTLESens::ExecGatttool_Run reached, terminated process 7823
2018.12.23 17:32:18 1: Timeout for XiaomiBTLESens::ExecGatttool_Run reached, terminated process 7824
2018.12.23 17:32:33 3: XiaomiBTLESens (Beaucarnea) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.12.23 17:32:34 3: XiaomiBTLESens (Beaucarnea) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.12.23 17:32:35 3: XiaomiBTLESens (Beaucarnea) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.12.23 17:32:36 3: XiaomiBTLESens (Beaucarnea) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.12.23 17:32:37 3: XiaomiBTLESens (Beaucarnea) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.12.23 17:32:38 3: XiaomiBTLESens (Beaucarnea) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.12.23 17:32:39 3: XiaomiBTLESens (Beaucarnea) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.12.23 17:32:40 3: XiaomiBTLESens (Beaucarnea) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.12.23 17:32:42 3: XiaomiBTLESens (Beaucarnea) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.12.23 17:32:43 3: XiaomiBTLESens (Beaucarnea) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.12.23 17:32:44 3: XiaomiBTLESens (Beaucarnea) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.12.23 17:32:45 3: XiaomiBTLESens (Beaucarnea) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.12.23 17:32:46 3: XiaomiBTLESens (Beaucarnea) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.12.23 17:32:47 3: XiaomiBTLESens (Beaucarnea) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.12.23 17:32:48 3: XiaomiBTLESens (Beaucarnea) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.12.23 17:32:48 3: XiaomiBTLESens (Floribunda) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.12.23 17:32:49 3: XiaomiBTLESens (Beaucarnea) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.12.23 17:32:49 3: XiaomiBTLESens (Floribunda) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.12.23 17:32:50 3: XiaomiBTLESens (Beaucarnea) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.12.23 17:32:50 3: XiaomiBTLESens (Floribunda) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.12.23 17:33:39 3: n_publish_loxone return value: 1
2018.12.23 17:42:16 1: Timeout for XiaomiBTLESens::ExecGatttool_Run reached, terminated process 8451
2018.12.23 17:52:50 3: XiaomiBTLESens (TempBad) - defined with BTMAC 4C:65:A8:D2:64:7E
2018.12.23 17:59:19 1: Timeout for XiaomiBTLESens::ExecGatttool_Run reached, terminated process 9386
2018.12.23 18:01:22 3: XiaomiBTLESens (OG) - defined with BTMAC 4C:65:A8:DA:82:9C
2018.12.23 18:06:15 3: n_publish_loxone return value: 1
2018.12.23 18:06:15 3: n_publish_loxone return value: 1
2018.12.23 18:06:15 3: n_publish_loxone return value: 1
2018.12.23 18:06:15 3: n_publish_loxone return value: 1
2018.12.23 18:07:08 1: Timeout for XiaomiBTLESens::ExecGatttool_Run reached, terminated process 9919
2018.12.23 18:07:08 3: Sub XiaomiBTLESens_Undef (test1) - delete device test1
2018.12.23 18:07:14 3: Sub XiaomiBTLESens_Undef (test2) - delete device test2
2018.12.23 18:07:16 3: XiaomiBTLESens (TempBad) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.12.23 18:07:17 3: XiaomiBTLESens (TempBad) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.12.23 18:07:18 3: XiaomiBTLESens (TempBad) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.12.23 18:07:18 3: Sub XiaomiBTLESens_Undef (test3) - delete device test3
2018.12.23 18:07:19 3: XiaomiBTLESens (TempBad) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.12.23 18:07:20 3: XiaomiBTLESens (TempBad) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.12.23 18:07:21 3: XiaomiBTLESens (TempBad) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.12.23 18:07:22 3: XiaomiBTLESens (TempBad) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.12.23 18:07:23 3: XiaomiBTLESens (TempBad) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.12.23 18:07:24 3: XiaomiBTLESens (TempBad) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.12.23 18:07:26 3: XiaomiBTLESens (TempBad) - ExecGatttool_Run: another gatttool process is running. waiting...
2018.12.23 18:07:26 3: Sub XiaomiBTLESens_Undef (test4) - delete device test4
2018.12.23 18:07:36 3: XiaomiBTLESens (TempRoomPW) - defined with BTMAC 4C:65:A8:D2:2C:0C
2018.12.23 18:08:46 1: Timeout for XiaomiBTLESens::ExecGatttool_Run reached, terminated process 9944
2018.12.23 18:09:15 3: XiaomiBTLESens (TempGuestRoom) - defined with BTMAC 4C:65:A8:DA:A1:86
2018.12.23 18:14:31 3: Sub XiaomiBTLESens_Undef (OG) - delete device OG
2018.12.23 18:14:34 3: XiaomiBTLESens (TempOG) - defined with BTMAC 4C:65:A8:DA:82:9C
2018.12.23 18:14:48 3: XiaomiBTLESens (TempOffice) - defined with BTMAC 4C:65:A8:D8:E9:CF
2018.12.23 18:15:53 3: n_publish_loxone return value: 1
2018.12.23 18:15:53 3: n_publish_loxone return value: 1
2018.12.23 18:19:04 3: XiaomiBTLESens (TempBedroom) - defined with BTMAC 4C:65:A8:D6:77:51
2018.12.23 18:25:15 3: n_publish_loxone return value: 1
2018.12.23 18:25:15 3: n_publish_loxone return value: 1
Zitat von: CoolTux am 23 Dezember 2018, 19:06:26Ohne manuelles hciconfig hci0 stehen alle auf error. Ich lasse es mal über nacht laufen. Hast du Hoffnung, dass sich dies erholt?
Das kann in der Tat beim FHEM start etwas hacken. Gerade von man 5 Geräte und mehr hat. Wie schaut es denn nach einer halben Stunde so aus?
Zitat von: rani22 am 23 Dezember 2018, 20:45:04
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 9.4 (stretch)
Release: 9.4
Codename: stretch
wie sehe ich welche version von gatttool installiert ist?
Zitat von: CoolTux am 24 Dezember 2018, 07:27:37Es sind alle Sensoren, jedoch habe ich das Gefühl es betrift komischerweise nicht alle Werte. Bei z.B. Batteriestatus hat es ein OK mit einem relativ aktuellen Zeitstempel. Aber generell ist gestern kurz nach dem ins Bettgehen alles stillgestanden.
Wie sieht es im Gesamtbild aus. Bekommen Deine Pflanzensensoren so gut wie immer Daten und nur die Temperatursensoren bekommen Errors oder klemmen auch die?
2018.12.23 23:32:07 3: n_publish_loxone return value: 1
2018.12.23 23:34:18 3: n_publish_loxone return value: 1
2018.12.23 23:34:49 3: n_publish_loxone return value: 1
2018.12.23 23:52:02 3: n_publish_loxone return value: 1
2018.12.24 01:01:22 1: Timeout for XiaomiBTLESens::ExecGatttool_Run reached, terminated process 14998
2018.12.24 02:37:14 1: Timeout for XiaomiBTLESens::ExecGatttool_Run reached, terminated process 19638
2018.12.24 04:05:14 1: Timeout for XiaomiBTLESens::ExecGatttool_Run reached, terminated process 23737
2018.12.24 09:23:27 3: n_publish_loxone return value: 1
2018.12.24 09:23:27 3: n_publish_loxone return value: 1
2018.12.24 09:23:27 3: n_publish_loxone return value: 1
2018.12.24 09:23:27 3: n_publish_loxone return value: 1
2018.12.24 09:26:12 3: n_publish_loxone return value: 1
2018.12.24 09:26:12 3: n_publish_loxone return value: 1
2018.12.24 09:26:25 3: n_publish_loxone return value: 1
2018.12.24 09:26:25 3: n_publish_loxone return value: 1
2018.12.24 09:27:29 3: n_publish_loxone return value: 1
2018.12.24 09:27:29 3: n_publish_loxone return value: 1
2018.12.24 09:27:54 3: n_publish_loxone return value: 1
2018.12.24 09:27:54 3: n_publish_loxone return value: 1
2018.12.24 09:27:54 3: n_publish_loxone return value: 1
2018.12.24 09:29:17 3: n_publish_loxone return value: 1
2018.12.24 09:31:35 3: n_publish_loxone return value: 1
2018.12.24 09:40:19 4: XiaomiBTLESens (TempBedroom) - Run CreateParamGatttool with mod: write
2018.12.24 09:40:19 5: XiaomiBTLESens (TempBedroom) - Write XiaomiBTLESens_ExecGatttool_Run TempBedroom|4C:65:A8:D6:77:51|write|0x10|0100
2018.12.24 09:40:19 4: XiaomiBTLESens (TempBedroom) - stateRequestTimer: Call Request Timer
2018.12.24 09:40:20 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D6:77:51 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.24 09:40:20 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.12.24 09:40:20 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D6:77:51 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 1
2018.12.24 09:40:20 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.12.24 09:40:20 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D6:77:51 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 2
2018.12.24 09:40:20 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.12.24 09:40:20 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D6:77:51 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 3
2018.12.24 09:40:20 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.12.24 09:40:20 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D6:77:51 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 4
2018.12.24 09:40:20 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.12.24 09:40:20 4: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool result connect error,Invalid argument (22)
2018.12.24 09:40:20 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Done: gatttool return string: TempBedroom|4C:65:A8:D6:77:51|error|write|0x10|{"gtResult":"Invalid argument (22)"}
2018.12.24 09:40:20 4: XiaomiBTLESens (TempBedroom) - ProcessingErrors
2018.12.24 09:40:20 4: XiaomiBTLESens (TempBedroom) - WriteReadings: Readings were written
2018.12.24 09:46:53 4: XiaomiBTLESens (TempBedroom) - Run CreateParamGatttool with mod: write
2018.12.24 09:46:53 5: XiaomiBTLESens (TempBedroom) - Write XiaomiBTLESens_ExecGatttool_Run TempBedroom|4C:65:A8:D6:77:51|write|0x10|0100
2018.12.24 09:46:53 4: XiaomiBTLESens (TempBedroom) - stateRequestTimer: Call Request Timer
2018.12.24 09:46:54 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D6:77:51 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.24 09:46:59 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.12.24 09:46:59 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D6:77:51 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 1
2018.12.24 09:46:59 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.12.24 09:46:59 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D6:77:51 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 2
2018.12.24 09:46:59 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.12.24 09:46:59 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D6:77:51 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 3
2018.12.24 09:47:00 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.12.24 09:47:00 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D6:77:51 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 4
2018.12.24 09:47:00 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.12.24 09:47:00 4: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool result connect error,Invalid argument (22)
2018.12.24 09:47:00 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Done: gatttool return string: TempBedroom|4C:65:A8:D6:77:51|error|write|0x10|{"gtResult":"Invalid argument (22)"}
2018.12.24 09:47:00 4: XiaomiBTLESens (TempBedroom) - ProcessingErrors
2018.12.24 09:47:00 4: XiaomiBTLESens (TempBedroom) - WriteReadings: Readings were written
2018.12.24 09:50:39 3: n_publish_loxone return value: 1
2018.12.24 09:50:39 3: n_publish_loxone return value: 1
2018.12.24 09:50:39 3: n_publish_loxone return value: 1
2018.12.24 09:52:58 4: XiaomiBTLESens (TempBedroom) - Run CreateParamGatttool with mod: write
2018.12.24 09:52:58 5: XiaomiBTLESens (TempBedroom) - Write XiaomiBTLESens_ExecGatttool_Run TempBedroom|4C:65:A8:D6:77:51|write|0x10|0100
2018.12.24 09:52:58 4: XiaomiBTLESens (TempBedroom) - stateRequestTimer: Call Request Timer
2018.12.24 09:52:59 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D6:77:51 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.24 09:53:09 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 30 2e 31 20 48 3d 35 35 2e 38 00
Notification handle = 0x000e value,54 3d 32 30 2e 32 20 48 3d 35 35 2e 37 00
Notification handle = 0x000e value,54 3d 32 30 2e 31 20 48 3d 35 35 2e 37 00
Notification handle = 0x000e value,54 3d 32 30 2e 32 20 48 3d 35 36 2e 30 00
Notification handle = 0x000e value,54 3d 32 30 2e 33 20 48 3d 35 35 2e 37 00
Notification handle = 0x000e value,54 3d 32 30 2e 32 20 48 3d 35 35 2e 39 00
Notification handle = 0x000e value,54 3d 32 30 2e 32 20 48 3d 35 35 2e 37 00
Notification handle = 0x000e value,54 3d 32 30 2e 32 20 48 3d 35 35 2e 38 00
Notification handle = 0x000e value,54 3d 32 30 2e 32 20 48 3d 35 35 2e 37 00
2018.12.24 09:53:09 4: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 30 2e 31 20 48 3d 35 35 2e 38 00
Notification handle = 0x000e value,54 3d 32 30 2e 32 20 48 3d 35 35 2e 37 00
Notification handle = 0x000e value,54 3d 32 30 2e 31 20 48 3d 35 35 2e 37 00
Notification handle = 0x000e value,54 3d 32 30 2e 32 20 48 3d 35 36 2e 30 00
Notification handle = 0x000e value,54 3d 32 30 2e 33 20 48 3d 35 35 2e 37 00
Notification handle = 0x000e value,54 3d 32 30 2e 32 20 48 3d 35 35 2e 39 00
Notification handle = 0x000e value,54 3d 32 30 2e 32 20 48 3d 35 35 2e 37 00
Notification handle = 0x000e value,54 3d 32 30 2e 32 20 48 3d 35 35
2018.12.24 10:36:12 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Done: gatttool return string: TempBedroom|4C:65:A8:D6:77:51|ok|write|0x10|{"gtResult":"54 3d 32 30 2e 33 20 48 3d 35 35 2e 34 00 "}
2018.12.24 10:36:12 4: XiaomiBTLESens (TempBedroom) - ProcessingNotification
2018.12.24 10:36:12 4: XiaomiBTLESens (TempBedroom) - ProcessingNotification: handle 0x10
2018.12.24 10:36:12 4: XiaomiBTLESens (TempBedroom) - Thermo/Hygro Sens Handle0x10
2018.12.24 10:36:13 3: n_publish_loxone return value: 1
2018.12.24 10:36:13 3: n_publish_loxone return value: 1
2018.12.24 10:36:13 4: XiaomiBTLESens (TempBedroom) - WriteReadings: Readings were written
2018.12.24 10:36:37 3: n_publish_loxone return value: 1
2018.12.24 10:36:37 3: n_publish_loxone return value: 1
2018.12.24 10:52:22 4: XiaomiBTLESens (TempBedroom) - Run CreateParamGatttool with mod: write
2018.12.24 10:52:22 5: XiaomiBTLESens (TempBedroom) - Write XiaomiBTLESens_ExecGatttool_Run TempBedroom|4C:65:A8:D6:77:51|write|0x10|0100
2018.12.24 10:52:22 4: XiaomiBTLESens (TempBedroom) - stateRequestTimer: Call Request Timer
2018.12.24 10:52:23 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D6:77:51 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.24 10:52:23 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.12.24 10:52:23 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D6:77:51 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 1
2018.12.24 10:52:23 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.12.24 10:52:23 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D6:77:51 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 2
2018.12.24 10:52:23 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.12.24 10:52:23 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D6:77:51 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 3
2018.12.24 10:52:23 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.12.24 10:52:23 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D6:77:51 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 4
2018.12.24 10:52:23 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.12.24 10:52:23 4: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool result connect error,Invalid argument (22)
2018.12.24 10:52:23 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Done: gatttool return string: TempBedroom|4C:65:A8:D6:77:51|error|write|0x10|{"gtResult":"Invalid argument (22)"}
2018.12.24 10:52:23 4: XiaomiBTLESens (TempBedroom) - ProcessingErrors
2018.12.24 10:52:23 4: XiaomiBTLESens (TempBedroom) - WriteReadings: Readings were written
2018.12.24 11:06:34 4: XiaomiBTLESens (TempBedroom) - Run CreateParamGatttool with mod: write
2018.12.24 11:06:34 5: XiaomiBTLESens (TempBedroom) - Write XiaomiBTLESens_ExecGatttool_Run TempBedroom|4C:65:A8:D6:77:51|write|0x10|0100
2018.12.24 11:06:34 4: XiaomiBTLESens (TempBedroom) - stateRequestTimer: Call Request Timer
2018.12.24 11:06:34 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D6:77:51 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.24 11:06:41 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.12.24 11:06:41 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D6:77:51 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 1
2018.12.24 11:06:41 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.12.24 11:06:41 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D6:77:51 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 2
2018.12.24 11:06:41 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.12.24 11:06:41 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D6:77:51 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 3
2018.12.24 11:06:42 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.12.24 11:06:42 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D6:77:51 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 4
2018.12.24 11:06:42 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool loop result connect error,Invalid argument (22)
2018.12.24 11:06:42 4: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool result connect error,Invalid argument (22)
2018.12.24 11:06:42 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Done: gatttool return string: TempBedroom|4C:65:A8:D6:77:51|error|write|0x10|{"gtResult":"Invalid argument (22)"}
2018.12.24 11:06:42 4: XiaomiBTLESens (TempBedroom) - ProcessingErrors
2018.12.24 11:06:42 4: XiaomiBTLESens (TempBedroom) - WriteReadings: Readings were written
2018.12.24 11:24:38 4: XiaomiBTLESens (TempBedroom) - Run CreateParamGatttool with mod: write
2018.12.24 11:24:38 5: XiaomiBTLESens (TempBedroom) - Write XiaomiBTLESens_ExecGatttool_Run TempBedroom|4C:65:A8:D6:77:51|write|0x10|0100
2018.12.24 11:24:38 4: XiaomiBTLESens (TempBedroom) - stateRequestTimer: Call Request Timer
2018.12.24 11:24:38 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D6:77:51 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.24 11:24:38 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool loop result connect error,Too many levels of symbolic links (40)
2018.12.24 11:24:38 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D6:77:51 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 1
2018.12.24 11:24:38 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool loop result connect error,Too many levels of symbolic links (40)
2018.12.24 11:24:38 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D6:77:51 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 2
2018.12.24 11:24:38 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool loop result connect error,Too many levels of symbolic links (40)
2018.12.24 11:24:38 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D6:77:51 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 3
2018.12.24 11:24:38 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool loop result connect error,Too many levels of symbolic links (40)
2018.12.24 11:24:38 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D6:77:51 --char-write-req -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 4
2018.12.24 11:24:38 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool loop result connect error,Too many levels of symbolic links (40)
2018.12.24 11:24:38 4: XiaomiBTLESens (TempBedroom) - ExecGatttool_Run: gatttool result connect error,Too many levels of symbolic links (40)
2018.12.24 11:24:38 5: XiaomiBTLESens (TempBedroom) - ExecGatttool_Done: gatttool return string: TempBedroom|4C:65:A8:D6:77:51|error|write|0x10|{"gtResult":"Too many levels of symbolic links (40)"}
2018.12.24 11:24:38 4: XiaomiBTLESens (TempBedroom) - ProcessingErrors
2018.12.24 11:24:38 4: XiaomiBTLESens (TempBedroom) - WriteReadings: Readings were written
2018.12.24 13:03:24 1: Including /opt/loxberry/config/plugins/fhem/fhem.cfg
2018.12.24 13:03:24 3: telnetPort: port 7072 opened
2018.12.24 13:03:24 3: WEB: port 8083 opened
2018.12.24 13:03:24 3: WEBphone: port 8084 opened
2018.12.24 13:03:24 3: WEBtablet: port 8085 opened
2018.12.24 13:03:24 2: eventTypes: loaded 79 events from /opt/loxberry/data/plugins/fhem/eventTypes.txt
2018.12.24 13:03:24 3: XiaomiBTLESens (Floribunda) - defined with BTMAC C4:7C:8D:61:9C:D0
2018.12.24 13:03:24 3: XiaomiBTLESens (Floribunda) - set interval to 1750
2018.12.24 13:03:24 3: XiaomiBTLESens (Beaucarnea) - defined with BTMAC C4:7C:8D:61:7C:FF
2018.12.24 13:03:24 3: XiaomiBTLESens (Beaucarnea) - set interval to 1800
2018.12.24 13:03:24 3: XiaomiBTLESens (TempBath) - defined with BTMAC 4C:65:A8:D2:64:7E
2018.12.24 13:03:24 3: XiaomiBTLESens (TempBath) - set interval to 622
2018.12.24 13:03:24 3: XiaomiBTLESens (TempRoomPW) - defined with BTMAC 4C:65:A8:D2:2C:0C
2018.12.24 13:03:24 3: XiaomiBTLESens (TempRoomPW) - set interval to 1022
2018.12.24 13:03:24 3: XiaomiBTLESens (TempOffice) - defined with BTMAC 4C:65:A8:D8:E9:CF
2018.12.24 13:03:24 3: XiaomiBTLESens (TempOffice) - set interval to 822
2018.12.24 13:03:24 1: Including /opt/loxberry/data/plugins/fhem/fhem.save
2018.12.24 13:03:24 1: usb create starting
2018.12.24 13:03:25 3: Probing ZWDongle device /dev/serial1
2018.12.24 13:03:25 3: Probing CUL device /dev/ttyAMA0
2018.12.24 13:03:25 3: Probing TCM_ESP3 device /dev/ttyAMA0
2018.12.24 13:03:26 3: Probing ZWDongle device /dev/ttyAMA0
2018.12.24 13:03:26 3: Probing FRM device /dev/ttyAMA0
2018.12.24 13:03:38 1: usb create end
2018.12.24 13:03:38 0: Featurelevel: 5.9
2018.12.24 13:03:38 0: Server started with 17 defined entities (fhem.pl:18029/2018-12-22 perl:5.024001 os:linux user:loxberry pid:1057)
2018.12.24 13:03:41 3: n_publish_loxone return value: 1
2018.12.24 13:03:41 3: n_publish_loxone return value: 1
2018.12.24 13:03:41 3: n_publish_loxone return value: 1
2018.12.24 13:03:46 3: n_publish_loxone return value: 1
2018.12.24 13:03:46 3: n_publish_loxone return value: 1
2018.12.24 13:03:51 3: n_publish_loxone return value: 1
2018.12.24 13:03:51 3: n_publish_loxone return value: 1
2018.12.24 13:14:13 3: n_publish_loxone return value: 1
2018.12.24 13:25:13 3: n_publish_loxone return value: 1
2018.12.24 13:25:13 3: n_publish_loxone return value: 1
2018.12.24 13:25:59 3: n_publish_loxone return value: 1
2018.12.24 13:33:30 3: n_publish_loxone return value: 1
2018.12.24 13:33:30 3: n_publish_loxone return value: 1
2018.12.24 13:33:30 3: n_publish_loxone return value: 1
2018.12.24 13:38:21 3: n_publish_loxone return value: 1
2018.12.24 13:39:03 3: n_publish_loxone return value: 1
2018.12.24 13:39:03 3: n_publish_loxone return value: 1
2018.12.24 13:46:03 3: n_publish_loxone return value: 1
2018.12.24 13:46:03 3: n_publish_loxone return value: 1
2018.12.24 13:47:27 3: n_publish_loxone return value: 1
2018.12.24 13:47:27 3: n_publish_loxone return value: 1
2018.12.24 13:51:22 3: n_publish_loxone return value: 1
2018.12.24 13:52:09 3: n_publish_loxone return value: 1
2018.12.24 13:52:09 3: n_publish_loxone return value: 1
2018.12.24 14:02:24 3: n_publish_loxone return value: 1
2018.12.24 14:05:31 3: n_publish_loxone return value: 1
2018.12.24 14:05:31 3: n_publish_loxone return value: 1
2018.12.24 14:07:23 3: n_publish_loxone return value: 1
2018.12.24 14:07:23 3: n_publish_loxone return value: 1
2018.12.24 14:07:23 3: n_publish_loxone return value: 1
2018.12.24 14:09:51 3: n_publish_loxone return value: 1
2018.12.24 14:09:51 3: n_publish_loxone return value: 1
2018.12.24 14:10:53 3: n_publish_loxone return value: 1
2018.12.24 14:17:18 3: n_publish_loxone return value: 1
2018.12.24 14:24:33 3: n_publish_loxone return value: 1
2018.12.24 14:24:33 3: n_publish_loxone return value: 1
2018.12.24 14:26:34 3: n_publish_loxone return value: 1
2018.12.24 14:26:34 3: n_publish_loxone return value: 1
2018.12.24 14:27:49 3: n_publish_loxone return value: 1
2018.12.24 14:27:49 3: n_publish_loxone return value: 1
2018.12.24 14:40:26 3: n_publish_loxone return value: 1
2018.12.24 14:40:27 3: n_publish_loxone return value: 1
2018.12.24 14:40:27 3: n_publish_loxone return value: 1
2018.12.24 14:40:40 3: n_publish_loxone return value: 1
2018.12.24 14:40:40 3: n_publish_loxone return value: 1
2018.12.24 14:44:24 3: n_publish_loxone return value: 1
2018.12.24 14:44:24 3: n_publish_loxone return value: 1
2018.12.24 14:44:57 3: n_publish_loxone return value: 1
2018.12.24 14:50:49 3: n_publish_loxone return value: 1
Raspberry Pi3 B+
Linux loxberry 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
Release: 9.6
Codename: stretch
# Xiaomi BLE Sensors
# Flora Sensors
define Floribunda XiaomiBTLESens C4:7C:8D:61:9C:D0
attr Floribunda event-on-change-reading fertility,lux,moisture,temperature
attr Floribunda interval 1750
attr Floribunda loxone true
attr Floribunda model flowerSens
attr Floribunda room XiaomiBTLESens
attr Floribunda verbose 3
define Beaucarnea XiaomiBTLESens C4:7C:8D:61:7C:FF
attr Beaucarnea event-on-change-reading moisture,temperature
attr Beaucarnea interval 1800
attr Beaucarnea loxone true
attr Beaucarnea model flowerSens
attr Beaucarnea room XiaomiBTLESens
attr Beaucarnea verbose 3
# Temperature and Humidity Sensors
define TempBath XiaomiBTLESens 4C:65:A8:D2:64:7E
attr TempBath event-on-change-reading humidity,temperature
attr TempBath interval 622
attr TempBath loxone true
attr TempBath model thermoHygroSens
attr TempBath room XiaomiBTLESens
attr TempBath verbose 3
define TempRoomPW XiaomiBTLESens 4C:65:A8:D2:2C:0C
attr TempRoomPW event-on-change-reading humidity,temperature
attr TempRoomPW interval 1022
attr TempRoomPW loxone true
attr TempRoomPW model thermoHygroSens
attr TempRoomPW room XiaomiBTLESens
attr TempRoomPW verbose 3
define TempOffice XiaomiBTLESens 4C:65:A8:D8:E9:CF
attr TempOffice event-on-change-reading humidity,temperature
attr TempOffice interval 822
attr TempOffice loxone true
attr TempOffice model thermoHygroSens
attr TempOffice room XiaomiBTLESens
attr TempOffice verbose 3
define TempDG XiaomiBTLESens 4C:65:A8:DA:82:9C
attr TempDG event-on-change-reading humidity,temperature
attr TempDG interval 520
attr TempDG loxone true
attr TempDG model thermoHygroSens
attr TempDG room XiaomiBTLESens
attr TempDG verbose 3
define TempBedroom XiaomiBTLESens 4C:65:A8:D6:77:51
attr TempBedroom event-on-change-reading humidity,temperature
attr TempBedroom interval 850
attr TempBedroom loxone true
attr TempBedroom model thermoHygroSens
attr TempBedroom room XiaomiBTLESens
attr TempBedroom verbose 3
define TempGuestRoom XiaomiBTLESens 4C:65:A8:DA:A1:86
attr TempGuestRoom event-on-change-reading humidity,temperature
attr TempGuestRoom interval 955
attr TempGuestRoom loxone true
attr TempGuestRoom model thermoHygroSens
attr TempGuestRoom room XiaomiBTLESens
attr TempGuestRoom verbose 3
Zitat von: CoolTux am 25 Dezember 2018, 13:08:32
Und was genau hast du verändert?
Zitat von: stole am 23 Dezember 2018, 10:36:39Code Auswählen
2018.12.23 06:53:41 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
32 20 48 3d 36 36 2e 35 00 "}
2018.12.23 06:53:41 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 06:53:41 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 06:53:41 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 06:53:41 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 06:56:11 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 06:56:11 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 06:56:11 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 06:56:11 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 06:56:21 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 06:56:21 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 06:56:21 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
32 20 48 3d 36 36 2e 37 00 "}
2018.12.23 06:56:21 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 06:56:21 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 06:56:21 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 06:56:21 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 07:00:58 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 07:00:58 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 07:00:58 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 07:00:58 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 07:01:01 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result connect error,Transport endpoint is not connected (107)
2018.12.23 07:01:01 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 1
2018.12.23 07:01:11 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 07:01:11 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 07:01:11 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
32 20 48 3d 36 36 2e 38 00 "}
2018.12.23 07:01:11 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 07:01:11 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 07:01:11 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 07:01:11 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 07:04:05 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 07:04:05 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 07:04:05 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 07:04:05 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 07:04:15 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 07:04:15 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 07:04:15 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
32 20 48 3d 36 36 2e 38 00 "}
2018.12.23 07:04:15 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 07:04:15 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 07:04:15 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 07:04:15 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 07:07:03 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 07:07:03 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 07:07:03 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 07:07:04 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 07:07:14 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 07:07:14 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 07:07:14 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 39 00 "}
2018.12.23 07:07:14 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 07:07:14 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 07:07:14 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 07:07:14 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 07:11:26 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 07:11:26 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 07:11:26 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 07:11:26 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 07:11:37 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 07:11:37 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 07:11:37 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 37 00 "}
2018.12.23 07:11:37 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 07:11:37 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 07:11:37 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 07:11:37 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 07:14:49 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 07:14:49 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 07:14:49 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 07:14:50 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 07:15:00 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 07:15:00 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 07:15:00 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
32 20 48 3d 36 36 2e 35 00 "}
2018.12.23 07:15:00 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 07:15:00 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 07:15:00 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 07:15:00 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 07:19:54 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 07:19:54 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 07:19:54 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 07:19:55 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 07:20:05 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 07:20:05 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 07:20:05 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 37 00 "}
2018.12.23 07:20:05 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 07:20:05 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 07:20:05 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 07:20:05 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 07:26:26 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 07:26:26 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 07:26:26 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 07:26:27 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 07:26:37 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 07:26:37 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 07:26:37 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 39 00 "}
2018.12.23 07:26:37 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 07:26:37 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 07:26:37 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 07:26:37 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 07:31:52 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 07:31:53 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 07:31:53 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 07:31:53 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 07:32:03 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 07:32:03 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 07:32:03 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
32 20 48 3d 36 36 2e 38 00 "}
2018.12.23 07:32:03 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 07:32:03 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 07:32:03 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 07:32:03 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 07:36:24 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 07:36:24 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 07:36:24 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 07:36:24 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 07:36:34 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 07:36:34 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 07:36:34 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 37 00 "}
2018.12.23 07:36:34 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 07:36:34 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 07:36:34 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 07:36:34 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 07:39:50 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 07:39:50 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 07:39:50 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 07:39:50 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 07:40:00 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 07:40:00 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 07:40:00 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 38 00 "}
2018.12.23 07:40:00 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 07:40:00 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 07:40:00 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 07:40:00 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 07:42:43 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 07:42:43 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 07:42:43 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 07:42:43 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 07:42:53 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result
2018.12.23 07:42:53 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 1
2018.12.23 07:43:03 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 07:43:03 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 07:43:03 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 39 00 "}
2018.12.23 07:43:03 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 07:43:03 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 07:43:03 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 07:43:03 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 07:46:31 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 07:46:31 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 07:46:31 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 07:46:31 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 07:46:41 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 07:46:41 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 07:46:41 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 34 00 "}
2018.12.23 07:46:41 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 07:46:41 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 07:46:41 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 07:46:41 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 07:51:11 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 07:51:11 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 07:51:11 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 07:51:11 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 07:51:21 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 07:51:21 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 07:51:21 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 39 00 "}
2018.12.23 07:51:21 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 07:51:21 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 07:51:21 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 07:51:21 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 07:54:09 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 07:54:09 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 07:54:09 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 07:54:09 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 07:54:19 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 07:54:19 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 07:54:19 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
32 20 48 3d 36 36 2e 35 00 "}
2018.12.23 07:54:19 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 07:54:19 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 07:54:19 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 07:54:19 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 08:00:53 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 08:00:53 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 08:00:53 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 08:00:53 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 08:01:03 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 08:01:03 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 08:01:03 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 39 00 "}
2018.12.23 08:01:03 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 08:01:03 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 08:01:03 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 08:01:03 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 08:03:04 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 08:03:04 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 08:03:04 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 08:03:04 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 08:03:14 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 08:03:14 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 08:03:14 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 36 00 "}
2018.12.23 08:03:14 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 08:03:14 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 08:03:14 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 08:03:14 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 08:06:15 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 08:06:15 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 08:06:15 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 08:06:15 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 08:06:25 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 08:06:25 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 08:06:25 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
32 20 48 3d 36 37 2e 30 00 "}
2018.12.23 08:06:25 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 08:06:25 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 08:06:25 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 08:06:25 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 08:09:01 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 08:09:01 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 08:09:01 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 08:09:01 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 08:09:11 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 08:09:11 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 08:09:11 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 39 00 "}
2018.12.23 08:09:11 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 08:09:11 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 08:09:11 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 08:09:11 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 08:15:02 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 08:15:02 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 08:15:02 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 08:15:02 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 08:15:13 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 08:15:13 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 08:15:13 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 38 00 "}
2018.12.23 08:15:13 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 08:15:13 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 08:15:13 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 08:15:13 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 08:21:17 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 08:21:17 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 08:21:17 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 08:21:17 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 08:21:27 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 08:21:27 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 08:21:27 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 36 00 "}
2018.12.23 08:21:27 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 08:21:27 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 08:21:27 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 08:21:27 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 08:28:15 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 08:28:15 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 08:28:15 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 08:28:15 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 08:28:25 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 08:28:25 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 08:28:25 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 36 00 "}
2018.12.23 08:28:25 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 08:28:25 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 08:28:25 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 08:28:25 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 08:33:20 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 08:33:20 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 08:33:20 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 08:33:20 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 08:33:30 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 08:33:30 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 08:33:30 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 36 00 "}
2018.12.23 08:33:30 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 08:33:30 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 08:33:30 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 08:33:30 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 08:39:22 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 08:39:22 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 08:39:22 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 08:39:22 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 08:39:32 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 08:39:32 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 08:39:32 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 33 00 "}
2018.12.23 08:39:33 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 08:39:33 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 08:39:33 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 08:39:33 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 08:44:01 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 08:44:01 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 08:44:01 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 08:44:01 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 08:44:12 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 08:44:12 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 08:44:12 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 39 00 "}
2018.12.23 08:44:12 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 08:44:12 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 08:44:12 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 08:44:12 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 08:46:40 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 08:46:40 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 08:46:40 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 08:46:41 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 08:46:51 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 08:46:51 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 08:46:51 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 35 00 "}
2018.12.23 08:46:51 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 08:46:51 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 08:46:51 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 08:46:51 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 08:49:13 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 08:49:13 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 08:49:13 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 08:49:14 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 08:49:17 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result connect error,Function not implemented (38)
2018.12.23 08:49:17 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 1
2018.12.23 08:49:23 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result connect error,Function not implemented (38)
2018.12.23 08:49:23 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 2
2018.12.23 08:49:33 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 08:49:33 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 08:49:33 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 39 00 "}
2018.12.23 08:49:33 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 08:49:33 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 08:49:33 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 08:49:33 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 08:55:45 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 08:55:45 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 08:55:45 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 08:55:46 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 08:55:56 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 08:55:56 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 08:55:56 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 34 00 "}
2018.12.23 08:55:56 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 08:55:56 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 08:55:56 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 08:55:56 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 09:01:39 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 09:01:40 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 09:01:40 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 09:01:40 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 09:01:50 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 09:01:50 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 09:01:50 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 38 00 "}
2018.12.23 09:01:50 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 09:01:50 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 09:01:50 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 09:01:50 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 09:04:34 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 09:04:34 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 09:04:34 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 09:04:34 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 09:04:44 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 09:04:44 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 09:04:44 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
32 20 48 3d 36 36 2e 37 00 "}
2018.12.23 09:04:44 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 09:04:44 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 09:04:44 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 09:04:44 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 09:07:11 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 09:07:11 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 09:07:11 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 09:07:11 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 09:07:21 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 09:07:21 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 09:07:21 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 36 00 "}
2018.12.23 09:07:21 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 09:07:21 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 09:07:21 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 09:07:21 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 09:12:56 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 09:12:56 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 09:12:56 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 09:12:56 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 09:13:06 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 09:13:06 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 09:13:06 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 35 00 "}
2018.12.23 09:13:06 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 09:13:06 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 09:13:06 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 09:13:06 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 09:16:22 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 09:16:22 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 09:16:22 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 09:16:22 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 09:16:32 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 09:16:32 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 09:16:32 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 36 00 "}
2018.12.23 09:16:32 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 09:16:32 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 09:16:32 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 09:16:32 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 09:21:34 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 09:21:34 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 09:21:34 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 09:21:34 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 09:21:44 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 09:21:44 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 09:21:44 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 34 00 "}
2018.12.23 09:21:44 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 09:21:44 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 09:21:44 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 09:21:44 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 09:25:25 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 09:25:25 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 09:25:25 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 09:25:25 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 09:25:35 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 09:25:35 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 09:25:35 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"no data respon
se"}
2018.12.23 09:25:35 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 09:25:35 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 09:25:35 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 09:25:35 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 09:25:35 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 09:31:44 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 09:31:44 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 09:31:44 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 09:31:44 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 09:31:54 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 09:31:54 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 09:31:54 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
30 20 48 3d 36 36 2e 32 00 "}
2018.12.23 09:31:54 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 09:31:54 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 09:31:54 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 09:31:54 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 09:38:19 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 09:38:19 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 09:38:19 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 09:38:19 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 09:38:29 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 09:38:29 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 09:38:29 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
32 20 48 3d 36 36 2e 32 00 "}
2018.12.23 09:38:29 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 09:38:29 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 09:38:29 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 09:38:29 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 09:42:38 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 09:42:38 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 09:42:38 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 09:42:38 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 09:42:48 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 09:42:48 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 09:42:48 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 34 00 "}
2018.12.23 09:42:48 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 09:42:48 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 09:42:48 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 09:42:48 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 09:49:23 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 09:49:23 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 09:49:23 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 09:49:23 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 09:49:33 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 09:49:33 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
2018.12.23 09:49:33 5: XiaomiBTLESens (xSense1) - ExecGatttool_Done: gatttool re
turn string: xSense1|4C:65:A8:D5:E1:96|ok|write|0x10|{"gtResult":"54 3d 31 38 2e
31 20 48 3d 36 36 2e 34 00 "}
2018.12.23 09:49:33 4: XiaomiBTLESens (xSense1) - ProcessingNotification
2018.12.23 09:49:33 4: XiaomiBTLESens (xSense1) - ProcessingNotification: handle
0x10
2018.12.23 09:49:33 4: XiaomiBTLESens (xSense1) - Thermo/Hygro Sens Handle0x10
2018.12.23 09:49:33 4: XiaomiBTLESens (xSense1) - WriteReadings: Readings were w
ritten
2018.12.23 09:54:47 4: XiaomiBTLESens (xSense1) - Run CreateParamGatttool with m
od: write
2018.12.23 09:54:47 5: XiaomiBTLESens (xSense1) - Write XiaomiBTLESens_ExecGattt
ool_Run xSense1|4C:65:A8:D5:E1:96|write|0x10|0100
2018.12.23 09:54:47 4: XiaomiBTLESens (xSense1) - stateRequestTimer: Call Reques
t Timer
2018.12.23 09:54:47 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: call gatttoo
l with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:E1:96 --char-write-re
q -a 0x10 -n 0100 --listen 2>&1 /dev/null and loop 0
2018.12.23 09:54:57 5: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool loo
p result Characteristic value was written successfully
2018.12.23 09:54:57 4: XiaomiBTLESens (xSense1) - ExecGatttool_Run: gatttool res
ult Characteristic value was written successfully
defmod Balkonthermometer XiaomiBTLESens 4C:65:A8:DA:C7:4D
attr Balkonthermometer icon temperature_humidity
attr Balkonthermometer interval 300
attr Balkonthermometer model thermoHygroSens
attr Balkonthermometer room Balkon
attr Balkonthermometer verbose 0
setstate Balkonthermometer T: 1.5 H: 8.9
setstate Balkonthermometer 2019-01-03 17:56:18 batteryPercent 64
setstate Balkonthermometer 2019-01-03 17:56:18 batteryState ok
setstate Balkonthermometer 2019-01-03 18:43:05 fertility 0
setstate Balkonthermometer 2019-01-03 17:49:29 firmware 00.00.66
setstate Balkonthermometer 2019-01-03 18:53:05 humidity 8.9
setstate Balkonthermometer 2019-01-03 18:43:19 lastGattError charWrite faild
setstate Balkonthermometer 2019-01-03 18:43:05 lux 16
setstate Balkonthermometer 2019-01-03 18:43:05 moisture 0
setstate Balkonthermometer 2019-01-03 18:53:05 state T: 1.5 H: 8.9
setstate Balkonthermometer 2019-01-03 18:53:05 temperature 1.5
Zitat von: CoolTux am 30 Dezember 2018, 09:22:22
Kann es sein das Du nicht die neuste Version verwendest? Ich habe das mal eben bei mir getestet, da funktioniert das.
Zitat von: Typ1er am 12 Januar 2019, 17:03:14
Ich brauch mal einen Tip, ich nutze am Pi, 8 Pflanzensensoren. Das Bluetooth hängt sich seit einer Zeit immer mal wieder auf, Am Bluetooth hängt sonst nicht weiter. Hat solche Beobachtungen noch jemand?
Zitat von: Typ1er am 12 Januar 2019, 17:03:14
Ich brauch mal einen Tip, ich nutze am Pi, 8 Pflanzensensoren. Das Bluetooth hängt sich seit einer Zeit immer mal wieder auf, Am Bluetooth hängt sonst nicht weiter. Hat solche Beobachtungen noch jemand?
2019-01-13_01:28:37 Flower3 read sensor data
2019-01-13_01:28:37 Flower3 lux: 30
2019-01-13_01:28:37 Flower3 fertility: 215
2019-01-13_01:28:37 Flower3 temperature: 5.5
2019-01-13_01:28:37 Flower3 moisture: 24
2019-01-13_01:28:37 Flower3 active
2019-01-13_01:36:50 Flower3 write sensor data
2019-01-13_01:36:55 Flower3 read sensor data
2019-01-13_01:36:56 Flower3 temperature: 5.5
2019-01-13_01:36:56 Flower3 fertility: 215
2019-01-13_01:36:56 Flower3 lux: 95
2019-01-13_01:36:56 Flower3 moisture: 24
2019-01-13_01:36:56 Flower3 active
2019-01-13_01:42:48 Flower3 write sensor data
2019-01-13_01:42:52 Flower3 read sensor data
2019-01-13_01:42:52 Flower3 lux: 14
2019-01-13_01:42:52 Flower3 temperature: 5.5
2019-01-13_01:42:52 Flower3 fertility: 214
2019-01-13_01:42:52 Flower3 moisture: 24
2019-01-13_01:42:52 Flower3 active
2019-01-13_01:50:44 Flower3 write sensor data
2019-01-13_01:50:47 Flower3 read sensor data
2019-01-13_01:50:47 Flower3 temperature: 5.4
2019-01-13_01:50:47 Flower3 fertility: 218
2019-01-13_01:50:47 Flower3 lux: 34
2019-01-13_01:50:47 Flower3 moisture: 24
2019-01-13_01:50:47 Flower3 active
2019-01-13_01:57:23 Flower3 write sensor data
2019-01-13_01:57:27 Flower3 read sensor data
2019-01-13_01:57:27 Flower3 fertility: 216
2019-01-13_01:57:27 Flower3 temperature: 5.4
2019-01-13_01:57:27 Flower3 lux: 74
2019-01-13_01:57:27 Flower3 moisture: 24
2019-01-13_01:57:27 Flower3 active
2019-01-13_02:06:04 Flower3 write sensor data
2019-01-13_02:06:07 Flower3 read sensor data
2019-01-13_02:06:08 Flower3 lux: 53
2019-01-13_02:06:08 Flower3 fertility: 215
Zitat von: Neuhier am 13 Januar 2019, 18:49:53
Die Lux-Werte ( und nicht nur die ) von denen sind sehr sprunghaft.
Ohne Änderung der Lichtstärke geht es hier von 0 bis über 100 und retour.
Zitat von: Neuhier am 13 Januar 2019, 19:47:19
Eine Glättung wäre nicht übel, das geht aber nicht so einfach.
ZitatIch brauch mal einen Tip, ich nutze am Pi, 8 Pflanzensensoren. Das Bluetooth hängt sich seit einer Zeit immer mal wieder auf, Am Bluetooth hängt sonst nicht weiter. Hat solche Beobachtungen noch jemand?Was genau meinst du mit "hängt sich auf"? Ich habe die Beobachtung machen können dass mein Bluetooth-Modul nach einem Neustart des Pis weg sein kann. Dann muss ich es einmal trennen und wieder einstecken dass es als Device wieder erkannt wird.
Zitat von: ToM_ToM am 24 Januar 2019, 07:27:36
Was genau meinst du mit "hängt sich auf"? Ich habe die Beobachtung machen können dass mein Bluetooth-Modul nach einem Neustart des Pis weg sein kann. Dann muss ich es einmal trennen und wieder einstecken dass es als Device wieder erkannt wird.
ZitatFür "Trennen und wieder Stecken" gibt es unter Linux wohl auch einen Befehl...
hciconfig hci0 down
hciconfig hci0 up
Zitat von: ToM_ToM am 24 Januar 2019, 09:08:21
Hi Joachim, der würde mich brennend interessieren :D
Du meinst aber nicht folgenden:Code Auswählen
hciconfig hci0 down
hciconfig hci0 up
Oder? Das funktioniert nämlich nicht da laut des Pis ja kein Device angeschlossen ist.
Zitat von: Neuhier am 05 Januar 2019, 20:28:02
Beim Ali sind die nicht mehr unter 25$ zu finden, von der "Reisezeit" mal abgesehen.
Zitat von: Typ1er am 12 Januar 2019, 17:03:14
Ich brauch mal einen Tip, ich nutze am Pi, 8 Pflanzensensoren. Das Bluetooth hängt sich seit einer Zeit immer mal wieder auf, Am Bluetooth hängt sonst nicht weiter. Hat solche Beobachtungen noch jemand?
Invalid argument (22)
sudo hcitool lescan
an der Konsole führt zu einem Disable scan failed: Input/output error
. Man kann bluetooth zwar mit sudo hciconfig hci0 down
und anschliessendem sudo hciconfig hci0 up
neu starten, der IO-error kommt dann aber wieder, sobald ich in fhem einen "get Device sensorData" anstoße. Mit user pi kann ich weder einen scan noch den restart durchführen.Timeout for XiaomiBTLESens::ExecGatttool_Run reached, terminated process xxxx
Too many levels of symbolic links (40)
ZitatSowas ?Klang interessant, funktioniert aber leider nicht.
Undefined subroutine &XiaomiBTLESens::makeDeviceName called at /opt/fhem/FHEM/74_XiaomiBTLESens.pm line 417.
ZitatMoin miteinander,
nachdem mir das alles keine Ruhe gelassen hat, hier mal ein neuer Zwischenstand.
Hab mir jetzt nochmal einen weiteren BT-Stick besorgt, wurde auch wieder ohne Probleme erkannt,
Interne Bluetooth Verbindung hab ich mal aktiv gelassen, nach ca. 5 min. hat sich das interne BT scheinbar wieder aufgehängt, jetzt hat der neue BT-Stick übernommen
Code: [Auswählen]
bluetoothDevice hci1
lief dann ohne Fehlermeldungen ca. 5 Stunden durch und hat auch alle Befehle ausgeführt...
Nun habe ich den Crontab Eintrag von NEA noch hinzugefügt
Code: [Auswählen]
*/3 * * * * root hciconfig hci0 down && hciconfig hci0 up
dann einen reboot und siehe da, jetzt wechselt er lustig zwischen hci0 und hci1, es kommen keine Fehler, er übernimmt die Befehle alles super!
Danke an alle Helfer und danke für das Modul!!!
Gruß
Rudy
https://forum.fhem.de/index.php/topic,60595.msg906449.html#msg906449
Zitat von: MadMax-FHEM am 24 Januar 2019, 07:40:45
Für "Trennen und wieder Stecken" gibt es unter Linux wohl auch einen Befehl...
Hab ich zumindest in einem andern Thread wo gelesen...
(weiß aber nicht, ob ich das jetzt noch mal finde)
Gruß, Joachim
Zitat von: frank_41 am 23 Februar 2019, 01:25:52
Bluetooth im Raspi ist wohl irgendwie madig ??
Zitat von: frank_41 am 23 Februar 2019, 01:25:52
ich habe mehrere Sensoren über Raspi 3. Nach einiger Zeit fingen die an zu "spinnen", waren nicht mehr erreichbar. Nach einem Reboot des Raspi gingen sie dann wieder eine Weile, um dann wieder zu "spinnen". Ich habe jetzt einen cronjob gebaut mit "sudo hciconfig hci0 reset", der alle 2 Stunden zuschlägt. Und siehe da, alle Sensoren sind wieder erreichbar und ich kriege wieder Werte. Bluetooth im Raspi ist wohl irgendwie madig ??
pi@fhemPi:~ $ sudo hcitool lescan
Set scan parameters failed: Input/output error
pi@fhemPi:~ $ sudo hciconfig hci0 down
pi@fhemPi:~ $ sudo hciconfig hci0 up
pi@fhemPi:~ $ sudo hcitool lescan
LE Scan ...
C4:7C:8D:61:A5:18 (unknown)
C4:7C:8D:61:A5:18 Flower care
4C:65:A8:D2:53:8C (unknown)
4C:65:A8:D2:53:8C MJ_HT_V1
9C:8C:6E:EC:1F:F9 (unknown)
4C:65:A8:D2:9B:E3 (unknown)
4C:65:A8:D2:9B:E3 MJ_HT_V1
^Cpi@fhemPi:~ $
2019.03.30 13:08:35 1: Timeout for XiaomiBTLESens::ExecGatttool_Run reached, terminated process 17268
Internals:
BTMAC C4:7C:8D:61:A5:18
DEF C4:7C:8D:61:A5:18
FUUID 5c6428f1-f33f-edf9-cfae-1a0c1dab3be5879c
INTERVAL 7200
NAME Blume1
NOTIFYDEV global,Blume1
NR 416
NTFY_ORDER 50-Blume1
STATE error
TYPE XiaomiBTLESens
VERSION 2.4.7
loglevel 4
READINGS:
2019-03-30 09:29:14 batteryPercent 99
2019-03-30 09:29:14 batteryState ok
2019-03-30 11:32:57 fertility 1212
2019-03-30 09:29:14 firmware 3.1.9
2019-03-30 13:36:05 lastGattError Invalid argument (22)
2019-03-30 11:32:57 lux 297
2019-03-30 11:32:57 moisture 53
2019-03-30 13:36:05 state error
2019-03-30 11:32:57 temperature 20
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1553934554.57657
updateTimestampCallBattery 2019-03-30 09:29:14
Attributes:
alias Ranke
comment Batteriewechsel
06/11/2018
devStateIcon devStateIcon .*active:scene_garden@lime .*unreachable:scene_garden@red
disabledForIntervals 20:00-08:00
group Pflanzen
hciDevice hci0
icon hue_room_garden
interval 7200
minMoisture 35
model flowerSens
room Wohnung->Wohnzimmer
Zitat von: mi.ke am 06 April 2019, 14:59:06
Hi Leon,
kurze Frage.
Gibt es eine Möglichkeit oder hast Du eine Idee (Trick), wie man bei Abragen über "moisture" und "minMoisture" einen Offset einzubauen kann.
Hintergrund ist, dass meine Pflanzen in unterschiedlicher Erde /Seramis stehen. Eigentlich sind die bereits über "moisture" und "minMoisture" gut eingestellt.
Ich hab allerdings einige Patienten, da wäre eine Faktor wie z.B. (offset = moisture * 5), genau richtig.
Hab es mit userReadings versucht, aber der "minMoisture" greift vor meinem userReading.
Hast Du/Ihr eine Idee?
Danke und Grüße
Cheers
mi.ke
2019.04.10 10:00:31 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:00:32 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:00:33 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:00:35 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:00:36 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:00:37 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:00:38 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:00:39 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:00:40 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:00:41 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:00:42 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:00:43 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:00:44 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:00:46 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:00:47 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:00:48 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:00:49 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:00:50 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:00:51 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:00:52 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:00:53 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:00:54 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:00:55 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:00:57 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:00:58 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:00:59 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:01:00 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:01:01 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:01:02 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:01:03 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:01:04 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:01:05 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:01:06 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:01:08 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:01:09 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:01:10 3: XiaomiBTLESens (TMP_Bu) - ExecGatttool_Run: another gatttool process is running. waiting...
2019.04.10 10:01:10 1: Timeout for XiaomiBTLESens::ExecGatttool_Run reached, terminated process 20010
Zitat von: Invers am 30 März 2019, 15:03:19
Ich habe ebenfalls Fehler im Log. Habe auch auf der Konsole probiert:Code Auswählen
pi@fhemPi:~ $ sudo hciconfig hci0 down
pi@fhemPi:~ $ sudo hciconfig hci0 up
Zitat von: Invers am 10 April 2019, 12:56:55Hallo,
Ist Bestandteil vom Pi3b. Falls der kaputt ist, ist der Pi kaputt. Ich nehme aber einfach mal einen USB-Stick. Mal sehen, was passiert.
Danke.
Zitat von: Invers am 10 April 2019, 10:59:56
Hi, die Lage spitzt sich zu.
Wie im Beitrag #696 geschildert, habe ich noch immer die Probleme.
Alles läuft einige Zeit ohne Probleme, dann häufen sich langsam und dann immer schneller die
Das betrifft dann auch meine Thermo/Hygrometer.
Ein Neustart von FHEM hilft gar nicht. Ein Neustart des Pi hilft zeitweilig, bis wieder alles zu ist. Das dauert etwa 1 - 2 Tage. Weiss nicht genau.
Es beginnt langsam und wird dann immer mehr.
ps ax | grep gatttool
defmod GATKILL DOIF ([$SELF:"on"]) ("sudo kill $(ps aux | grep gatttool | awk '{print $2}')") (set $SELF off)
Zitat von: Invers am 10 April 2019, 13:55:51Kann ich bestätigen, mit dem 3B+ besteht das Problem auch.
... Alleine nun offenbar auch nicht mehr. Ich frage mich, ob es mit dem 3b+ dieselben Probleme gibt. ...
pi@RPi3-fhem:~ $ ps ax | grep gatttool
5885 ? S 0:00 sh -c gatttool -i hci0 -b C4:7C:8D:66:48:6E --char-read -a 0x38 2>&1 /dev/null
5886 ? S 0:00 gatttool -i hci0 -b C4:7C:8D:66:48:6E --char-read -a 0x38 /dev/null
5929 ? S 0:00 sh -c gatttool -i hci0 -b C4:7C:8D:67:69:83 --char-write-req -a 0x33 -n A01F 2>&1 /dev/null
5930 ? S 0:00 gatttool -i hci0 -b C4:7C:8D:67:69:83 --char-write-req -a 0x33 -n A01F /dev/null
5932 pts/0 S+ 0:00 grep --color=auto gatttool
define n_21300.Flowersensor.Watchdog notify 213\d\d\.Flowersensor\.\d*:state.error {\
my $COMMAND = "ssh ".AttrVal($NAME, "sshHost", "unknown")." 'sudo hciconfig ".AttrVal($NAME, "hciDevice", "unknown")." down && sudo hciconfig ".AttrVal($NAME, "hciDevice", "unknown")." up'";;\
system($COMMAND);;\
Log 1, $NAME." in error state. ".AttrVal($NAME, "hciDevice", "unknown")." on ".AttrVal($NAME, "sshHost", "unknown")." restarted.";;\
}
# Allow fhem to execute hcuiconfig
fhem ALL=(ALL) NOPASSWD: /bin/hciconfig
2019.04.20 15:58:03 4: XiaomiBTLESens (xiaomi_FlowerCare_Bonsai) - Run CreateParamGatttool with mod: read,
2019.04.20 15:58:03 5: XiaomiBTLESens (xiaomi_FlowerCare_Bonsai) - Read XiaomiBTLESens_ExecGatttool_Run xiaomi_FlowerCare_Bonsai|C4:7C:8D:6A:91:5C|read|0x38,
2019.04.20 15:58:03 4: XiaomiBTLESens (xiaomi_FlowerCare_Bonsai) - stateRequestTimer: Call Request Timer,
2019.04.20 15:58:03 5: XiaomiBTLESens (xiaomi_FlowerCare_Bonsai) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:6A:91:5C --char-read -a 0x38 2>&1 /dev/null and loop 0,
2019.04.20 15:58:03 5: XiaomiBTLESens (xiaomi_FlowerCare_Bonsai) - ExecGatttool_Run: gatttool loop result socket(SEQPACKET, L2CAP),Address family not supported by protocol (97),
2019.04.20 15:58:03 4: XiaomiBTLESens (xiaomi_FlowerCare_Bonsai) - ExecGatttool_Run: gatttool result socket(SEQPACKET, L2CAP),Address family not supported by protocol (97),
2019.04.20 15:58:03 5: XiaomiBTLESens (xiaomi_FlowerCare_Bonsai) - ExecGatttool_Done: gatttool return string: xiaomi_FlowerCare_Bonsai|C4:7C:8D:6A:91:5C|error|read|0x38|{"gtResult":"Address family not supported by protocol (97)"},
2019.04.20 15:58:03 4: XiaomiBTLESens (xiaomi_FlowerCare_Bonsai) - ProcessingErrors,
2019.04.20 15:58:03 4: XiaomiBTLESens (xiaomi_FlowerCare_Bonsai) - WriteReadings: Readings were written
connect error: Transport endpoint is not connected (107)
Internals:
BTMAC C4:7C:8D:6A:48:2F
DEF C4:7C:8D:6A:48:2F
FUUID 5caf82c9-f33f-74ea-ea36-5d21d14d47765789
INTERVAL 1800
NAME FlowerSens_Oleander
NOTIFYDEV global,FlowerSens_Oleander
NR 476
NTFY_ORDER 50-FlowerSens_Oleander
STATE Feuchtigkeit: 37 %
TYPE XiaomiBTLESens
VERSION 2.4.7
loglevel 4
OLDREADINGS:
READINGS:
2019-04-28 17:29:19 batteryPercent 98
2019-04-28 17:29:19 batteryState ok
2019-04-28 21:19:33 fertility 266
2019-04-28 17:29:19 firmware 3.2.1
2019-04-28 21:19:33 lux 0
2019-04-28 21:19:33 moisture 37
2019-04-28 21:19:33 state active
2019-04-28 21:19:33 temperature 7.4
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1556465359.61543
updateTimestampCallBattery 2019-04-28 17:29:19
Attributes:
alias Oleander
batteryFirmwareAge 48h
disabledForIntervals 23:00-24:00 00:00-07:00
event-min-interval temperature:3600,moisture:3600,fertility:3600,lux:3600
event-on-change-reading batteryState,fertility,lastGattError,lux,moisture,temperature
interval 1800
maxFertility 2000
maxMoisture 60
minFertility 350
minMoisture 15
minTemp 5
model flowerSens
room Garten
sshHost -p 45147 oelidoc@192.168.178.57
stateFormat Feuchtigkeit: moisture %
Zitat von: oelidoc am 28 April 2019, 22:05:50
Was rätst du? So lassen? Ignorieren?
Kann es denn was mit der neuen FW der Sensoren zu tun haben? Kennst du die schon? Ist die für das Modul relevant?
Vielen Dank für deine Mühe
Gruß oelidoc
ZitatIch habe (noch) relativ alte FWs:Ja, aber die Meldungen im FHEM Log hatte ich früher nicht. Deshalb meine vage Vermutung es könnte mit der FW der zuletzt hinzugefügten zwei Sensoren zu tun haben...
2.6.2
2.7.0
ZitatHast Du ein Update auf den Pi gemacht? Also ein großes OS Update?Nein, nicht als die Einträge im Log auftauchten. Heute dann aus"Verzweiflung" nur sudo apt-get update & upgrade auf dem Zero ::)
ZitatEventuell ist ein neues WLAN Gerät in der Nähe dazu gekommen? ? ? ?
Zitat von: oelidoc am 28 April 2019, 22:24:04
Nein, nicht als die Einträge im Log auftauchten. Heute dann aus"Verzweiflung" nur sudo apt-get update & upgrade auf dem Zero ::)? ? ? ?
hciconfig hci0 down
hciconfig hci0 up
service bluetooth restart
service dbus restart
019.05.07 06:36:55 1: Timeout for XiaomiBTLESens::ExecGatttool_Run reached, terminated process 8219
2019.05.07 06:36:55 1: Timeout for XiaomiBTLESens::ExecGatttool_Run reached, terminated process 8220
2019.05.07 06:36:55 1: Timeout for XiaomiBTLESens::ExecGatttool_Run reached, terminated process 8221
2019.05.07 06:36:55 1: Timeout for XiaomiBTLESens::ExecGatttool_Run reached, terminated process 8222
2019.05.07 06:36:55 1: Timeout for XiaomiBTLESens::ExecGatttool_Run reached, terminated process 8223
ZitatLaut Spezifikation benötigt der Raspberry Pi eine Spannung von 4,75 – 5,25 Volt (über USB). Der Raspberry Pi reagiert erfahrungsgemäß auf Spannungsschwankungen, speziell wenn sie unter 5V fallen, sehr empfindlich. Dann sind die oben genannten Probleme meist die Folge. Für einen stabilen Betrieb verwendet man daher ein Netzteil mit 5,1 Volt, um die durch die Steckverbindungen und Leitungen entstehenden Verluste auszugleichen.
Zitat von: Neuhier am 07 Mai 2019, 09:19:10Läuft bei mir auf einen RPi 3B+ mit Stretch und dem "offiziellen" Netzteil 5,1V bei 2,5A
Ein RPi 3B als Zentrale?
Habe FW-Version 2.7.0 auf allen Flowersens.
Parallel dazu ist das WLAN am RPi an, keine gegenseitige Beeinflussung mehr feststellbar.
Zitat von: Neuhier am 03 Mai 2019, 22:49:11
Mein Raspi hat das HM-MOD-RPI-PCB dran.
Weiterhin ein 434MHz-CUL, ein 868MHz-CUL, ein UZB1, ein CC2531, macht nebenbei die Soundausgabe, läuft für Leprecensed und FlowerSens mit BT, WLAN sowieso.
Ist ein Raspi 3B, hat ein stabilisiertes Netzteil mit 5V/4A, 32GB Stick ( keine SD-Karte ) und paar Kühlkörper.
Zitat von: grappa24 am 17 Mai 2019, 14:25:10
Ich mach jetzt meine ersten Langzeit-Erfahrungen mit dem XIAOMI Flower Sens und hatte jetzt bei einer Pflanze, die draußen in der vollen Sonne steht immer um die Mittagszeit heftige Einbrüche bei der Feuchtigkeit. Interessant, kann m.E. nur an der Mittagssonne liegen, was meint Ihr?
Internals:
BTMAC 3F:59:C8:71:50:1E
CFGFN
DEF 3F:59:C8:71:50:1E
FUUID 5cebb2cc-f33f-c88c-ec01-5fa5a7f71f5907ba
INTERVAL 300
NAME XiaomiWatch
NOTIFYDEV global,XiaomiWatch
NR 678
NTFY_ORDER 50-XiaomiWatch
STATE write sensor data
TYPE XiaomiBTLESens
VERSION 2.4.7
loglevel 4
Helper:
DBLOG:
batteryPercent:
logdb:
TIME 1558950646.4872
VALUE 33330855172415
batteryState:
logdb:
TIME 1558950646.4872
VALUE ok
lastGattError:
logdb:
TIME 1558950808.34472
VALUE charWrite faild
state:
logdb:
TIME 1558950808.39417
VALUE write sensor data
READINGS:
2019-05-27 11:50:46 batteryPercent 33330855172415
2019-05-27 11:50:46 batteryState ok
2019-05-27 11:50:13 firmware %�\j�
��F�y��x_
2019-05-27 11:53:28 lastGattError charWrite faild
2019-05-27 11:53:28 state write sensor data
helper:
CallBattery 1
CallSensDataCounter 1
updateTimeCallBattery 1558950646.48285
updateTimestampCallBattery 2019-05-27 11:50:46
RUNNING_PID:
abortFn XiaomiBTLESens::ExecGatttool_Aborted
arg XiaomiWatch|3F:59:C8:71:50:1E|write|0x10|0100|1
bc_pid 135
finishFn XiaomiBTLESens::ExecGatttool_Done
fn XiaomiBTLESens::ExecGatttool_Run
pid 2899
telnet telnetPort_127.0.0.1_43300
timeout 90
abortArg:
Attributes:
model thermoHygroSens
room XiaomiBTLESens
sudo hciconfig hci0 down
sudo hciconfig hci0 up
fhem ALL=(ALL) NOPASSWD: ALL
und in /etc/passwd die letzte Zeile wie folgt editiert: fhem:x:999:20::/opt/fhem:/bin/bash
{ system("sudo shutdown -r now") }
aber wenn ich den Befehl gebe { system("sudo hciconfig hci0 down") }
kommt die Fehlermeldung: Can't down device hci0: Operation not permitted (1)
sudo hcitool lescan
defmod Philo1 XiaomiBTLESens XX:XX:XX:XX:XX:XX
sudo btmon -t
Bluetooth monitor ver 5.43
= Note: Linux version 4.19.42-v7+ (armv7l) 11:18:52.233196
= Note: Bluetooth subsystem version 2.22 11:18:52.233202
= New Index: B8:27:EB:D6:D2:A8 (Primary,UART,hci0) [hci0] 11:18:52.233204
= Open Index: B8:27:EB:D6:D2:A8 [hci0] 11:18:52.233206
= Index Info: B8:27:EB:D6:D2:A8 (Broadcom Corporation) [hci0] 11:18:52.233208
@ MGMT Open: bluetoothd (privileged) version 1.14 {0x0001} 11:18:52.233211
@ MGMT Open: btmon (privileged) version 1.14 {0x0002} 11:18:52.233441
@ RAW Open: gatttool version 2.22 {0x0003} 11:19:06.848306
@ RAW Close: gatttool {0x0003} 11:19:06.848341
< HCI Command: LE Remove Device From White List (0x08|0x0012) plen 7 [hci0] 11:19:06.848524
Address type: Public (0x00)
Address: C4:7C:8D:66:42:D7 (OUI C4-7C-8D)
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 11:19:06.849133
LE Remove Device From White List (0x08|0x0012) ncmd 1
Status: Success (0x00)
< HCI Command: LE Add Device To White List (0x08|0x0011) plen 7 [hci0] 11:19:06.849172
Address type: Public (0x00)
Address: C4:7C:8D:67:38:F7 (OUI C4-7C-8D)
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 11:19:06.849933
LE Add Device To White List (0x08|0x0011) ncmd 1
Status: Success (0x00)
< HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7 [hci0] 11:19:06.849964
Type: Passive (0x00)
Interval: 60.000 msec (0x0060)
Window: 30.000 msec (0x0030)
Own address type: Public (0x00)
Filter policy: Ignore not in white list (0x01)
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 11:19:06.850506
LE Set Scan Parameters (0x08|0x000b) ncmd 1
Status: Success (0x00)
< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2 [hci0] 11:19:06.850534
Scanning: Enabled (0x01)
Filter duplicates: Enabled (0x01)
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 11:19:06.851129
LE Set Scan Enable (0x08|0x000c) ncmd 1
Status: Success (0x00)
> HCI Event: LE Meta Event (0x3e) plen 40 [hci0] 11:19:07.235558
LE Advertising Report (0x02)
Num reports: 1
Event type: Connectable undirected - ADV_IND (0x00)
Address type: Public (0x00)
Address: C4:7C:8D:67:38:F7 (OUI C4-7C-8D)
Data length: 28
Flags: 0x06
LE General Discoverable Mode
BR/EDR Not Supported
16-bit Service UUIDs (partial): 1 entry
Xiaomi Inc. (0xfe95)
Service Data (UUID 0xfe95): 712098004df738678d7cc40d091002cd02
RSSI: -81 dBm (0xaf)
< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2 [hci0] 11:19:07.235618
Scanning: Disabled (0x00)
Filter duplicates: Disabled (0x00)
> HCI Event: Command Complete (0x0e) plen 4 [hci0] 11:19:07.237590
LE Set Scan Enable (0x08|0x000c) ncmd 1
Status: Success (0x00)
< HCI Command: LE Create Connection (0x08|0x000d) plen 25 [hci0] 11:19:07.237631
Scan interval: 60.000 msec (0x0060)
Scan window: 60.000 msec (0x0060)
Filter policy: White list is not used (0x00)
Peer address type: Public (0x00)
Peer address: C4:7C:8D:67:38:F7 (OUI C4-7C-8D)
Own address type: Public (0x00)
Min connection interval: 30.00 msec (0x0018)
Max connection interval: 50.00 msec (0x0028)
Connection latency: 0x0000
Supervision timeout: 420 msec (0x002a)
Min connection length: 0.000 msec (0x0000)
Max connection length: 0.000 msec (0x0000)
> HCI Event: Command Status (0x0f) plen 4 [hci0] 11:19:07.238517
LE Create Connection (0x08|0x000d) ncmd 1
Status: Success (0x00)
> HCI Event: LE Meta Event (0x3e) plen 19 [hci0] 11:19:08.245196
LE Connection Complete (0x01)
Status: Success (0x00)
Handle: 64
Role: Master (0x00)
Peer address type: Public (0x00)
Peer address: C4:7C:8D:67:38:F7 (OUI C4-7C-8D)
Connection interval: 48.75 msec (0x0027)
Connection latency: 0.00 msec (0x0000)
Supervision timeout: 420 msec (0x002a)
Master clock accuracy: 0x00
@ MGMT Event: Device Connected (0x000b) plen 41 {0x0002} [hci0] 11:19:08.245246
LE Address: C4:7C:8D:67:38:F7 (OUI C4-7C-8D)
Flags: 0x00000000
Data length: 28
Flags: 0x06
LE General Discoverable Mode
BR/EDR Not Supported
16-bit Service UUIDs (partial): 1 entry
Xiaomi Inc. (0xfe95)
Service Data (UUID 0xfe95): 712098004df738678d7cc40d091002cd02
@ MGMT Event: Device Connected (0x000b) plen 41 {0x0001} [hci0] 11:19:08.245246
LE Address: C4:7C:8D:67:38:F7 (OUI C4-7C-8D)
Flags: 0x00000000
Data length: 28
Flags: 0x06
LE General Discoverable Mode
BR/EDR Not Supported
16-bit Service UUIDs (partial): 1 entry
Xiaomi Inc. (0xfe95)
Service Data (UUID 0xfe95): 712098004df738678d7cc40d091002cd02
< HCI Command: LE Read Remote Used Features (0x08|0x0016) plen 2 [hci0] 11:19:08.245435
Handle: 64
> HCI Event: Command Status (0x0f) plen 4 [hci0] 11:19:08.248224
LE Read Remote Used Features (0x08|0x0016) ncmd 1
Status: Success (0x00)
> HCI Event: LE Meta Event (0x3e) plen 12 [hci0] 11:19:08.430917
LE Read Remote Used Features (0x04)
Status: Success (0x00)
Handle: 64
Features: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00
LE Encryption
< ACL Data TX: Handle 64 flags 0x00 dlen 9 [hci0] 11:19:08.434446
ATT: Write Request (0x12) len 4
Handle: 0x0033
Data: a01f
> ACL Data RX: Handle 64 flags 0x02 dlen 5 [hci0] 11:19:08.528262
ATT: Write Response (0x13) len 0
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 11:19:08.669181
Num handles: 1
Handle: 64
Count: 1
@ RAW Open: gatttool version 2.22 {0x0003} 11:19:08.758690
@ RAW Close: gatttool {0x0003} 11:19:08.758732
< ACL Data TX: Handle 64 flags 0x00 dlen 7 [hci0] 11:19:08.762109
ATT: Read Request (0x0a) len 2
Handle: 0x0035
> ACL Data RX: Handle 64 flags 0x02 dlen 21 [hci0] 11:19:08.821051
ATT: Read Response (0x0b) len 16
Value: e300007c0300002bc802023c00fb349b
> HCI Event: Number of Completed Packets (0x13) plen 5 [hci0] 11:19:08.919093
Num handles: 1
Handle: 64
Count: 1
< HCI Command: Disconnect (0x01|0x0006) plen 3 [hci0] 11:19:10.901187
Handle: 64
Reason: Remote User Terminated Connection (0x13)
> HCI Event: Command Status (0x0f) plen 4 [hci0] 11:19:10.901612
Disconnect (0x01|0x0006) ncmd 1
Status: Success (0x00)
> HCI Event: Disconnect Complete (0x05) plen 4 [hci0] 11:19:10.917572
Status: Success (0x00)
Handle: 64
Reason: Connection Terminated By Local Host (0x16)
@ MGMT Event: Device Disconnected (0x000c) plen 8 {0x0002} [hci0] 11:19:10.917603
LE Address: C4:7C:8D:67:38:F7 (OUI C4-7C-8D)
Reason: Connection terminated by local host (0x02)
@ MGMT Event: Device Disconnected (0x000c) plen 8 {0x0001} [hci0] 11:19:10.917603
LE Address: C4:7C:8D:67:38:F7 (OUI C4-7C-8D)
Reason: Connection terminated by local host (0x02)
Zitat von: Neuhier am 16 Juni 2019, 11:09:13Habe noch zwei PRESENCE-Module in Betrieb die alle 300sec die Bluetooth-MAC von zwei Smartphones suchen.
Nebenher noch andere BT-Geräte/ -Verwendungen eingerichtet?
*/3 * * * * root hciconfig hci0 down && hciconfig hci0 up
Message from syslogd@hochdorf at Jun 16 16:44:47 ...
kernel:[21270.830845] Internal error: Oops: 17 [#1] SMP ARM
Message from syslogd@hochdorf at Jun 16 16:44:47 ...
kernel:[21270.886278] Process kworker/u9:1 (pid: 10497, stack limit = 0x9ee196bf)
Message from syslogd@hochdorf at Jun 16 16:44:47 ...
kernel:[21270.889164] Stack: (0xa2189dd0 to 0xa218a000)
Zitat von: ext23 am 16 Juni 2019, 18:08:12
Bei mir sind das nur kleine Töpfe aber wie gesagt ich habe 4 Sensoren, zwei alte Int. und zwei neue Chine, und die neuen spinnen...
/Daniel
Permission denied, please try again.
Internals:
BTMAC C4:7C:8D:65:E7:F8
DEF C4:7C:8D:65:E7:F8
FUUID 5d0e99d0-f33f-39e8-d1da-c02bb5a006d8b97e
FVERSION 74_XiaomiBTLESens.pm:v2.4.7-s18600/2019-02-15
INTERVAL 1751
NAME Balkon.Sensor.1
NOTIFYDEV global,Balkon.Sensor.1
NR 75
NTFY_ORDER 50-Balkon.Sensor.1
STATE error
TYPE XiaomiBTLESens
VERSION 2.4.7
loglevel 4
READINGS:
2019-06-22 23:42:16 Feuchte ok
2019-06-23 00:04:43 Fruchtbar ok
2019-06-27 20:20:06 batteryPercent 99
2019-06-27 20:20:06 batteryState ok
2019-06-27 20:49:13 fertility 80
2019-06-27 20:20:06 firmware 3.1.9
2019-06-30 00:54:23 lastGattError no gatttool binary found. Please check if bluez-package is properly installed
2019-06-27 20:49:13 lux 765
2019-06-22 23:42:16 maxFeuchte ok
2019-06-23 00:04:43 maxFruchtbar ok
2019-06-22 23:42:16 minFeuchte ok
2019-06-23 00:04:43 minFruchtbar ok
2019-06-27 20:49:13 moisture 17
2019-06-30 00:54:23 statTemperatureDay Min: 28.0 Avg: 28.0 Max: 28.0
2019-06-29 23:59:55 statTemperatureDayLast Min: 28.0 Avg: 28.0 Max: 28.0
2019-06-30 00:54:23 statTemperatureMonth Min: 16.5 Avg: 27.5 Max: 42.9 (since: 2019-06-22_23:39:15 )
2019-06-30 00:54:23 statTemperatureYear Min: 16.5 Avg: 27.5 Max: 42.9 (since: 2019-06-22_23:39:15 )
2019-06-30 00:54:23 state error
2019-06-27 20:49:13 temperature 28
helper:
CallBattery 0
CallSensDataCounter 0
_98_statistics myStatDevice
updateTimeCallBattery 0
Attributes:
event-on-change-reading .*
interval 1751
maxFertility 1000
maxLux 6600
maxMoisture 50
maxTemp 35
minFertility 300
minLux 2700
minMoisture 7
minTemp 35
model flowerSens
room XiaomiBTLESens
sshHost 192.168.178.27
ZitatHast Du auf dem FHEM Server selbst gatttool installiert? Wäre besser.
no gatttool binary found. Please check if bluez-package is properly installed
sshHost 192.168.178.27
sudo -su fhem bash
ssh -l pi IP-Adresse-PI-Zero
Zitat von: MadMax-FHEM am 30 Juni 2019, 08:03:24
Besser wäre eine fhem ssh-Anleitung gewesen, z.B.: http://heinz-otto.blogspot.com/2017/01/per-ssh-remote-befehle-direkt-ausfuhren.html?m=1
##
und dann:Code Auswählenssh -l pi IP-Adresse-PI-Zero
Sollte das ohne Passwort gehen...
Wenn das nicht geht: ssh-Zugang falsch...
Zitat von: ext23 am 24 Juli 2019, 13:49:49
Hallo,
gibt es eigentlich schon ein ESP32 Projekt die Dinger abzufragen? Mein spinnen doch arg, also alles was weiter als 6 Meter weg ist wird bei mir nur sehr sehr sporadisch erkannt. Eine Wohnung mit einem RPi abzudecken ist schier unmöglich.
Gibt es eigentlich BT Dingle mit externer Antenne? Das man in der Richtung vielleicht noch was machen kann?
/Daniel
ZitatDie Datenübertragungsrate liegt bei Bluetooth LE bei 1 MBit/s, identisch mit dem Wert der Basic Rate BR. Maximal ist für Bluetooth Smart-Geräte eine Sendeleistung von 10 mW vorgesehen, sodass die typische Reichweite bei 40 Metern liegt. Im Bluetooth-Standard gibt es auch Klasse 1 Bluetooth-Geräte, die mit 100 mW senden können (typische Reichweite von 100 Metern). Silicon Laboratories stellten Ende 2016 ein BLE-SoC vor, welches eine Reichweite von bis zu 200 m erreichen soll. Diese Sendeleistung wird bei Bluetooth Smart jedoch aus Energiespargründen meist nicht angewendet.https://de.m.wikipedia.org/wiki/Bluetooth_Low_Energy (https://de.m.wikipedia.org/wiki/Bluetooth_Low_Energy)
Zitat von: Steffen am 13 August 2019, 06:01:49
Hallo!
Mir ist jetzt was in letzter Zeit aufgefallen, das wollte ich mal hier ansprechen und vielleicht hat jemand einen Rat dazu.
Ich nutze eigentlich seit langer Zeit diese Modul hier zusammen mit dem "lepresenced/collectord" Modul, jetzt ist mir aufgefallen
das wenn das "XiaomiBTLESens" Modul den Sensor nicht erreichen kann also eine "Error" anzeigt, exakt auch zu der Zeit bricht das "PRESENCE" Modul
ein und keiner meiner Bluetooth Tags werden mehr gefunden.
Wenn ich dann "XiaomiBTLESens" auf "attr Disable 1" setzte und "lepresenced Service" per Ssh auf dem Pi3 neustarte, findet er meine Bluetooth Tags wieder sofort.
Ist es möglich das beide zusammen Arbeiten können oder muss dann extra das "XiaomiBTLESens" auf ein sagen wir PiZero ausgelagert werden?!?
Mfg Steffen
1_Arbeitszimmer
2_Kueche
3_Wohnzimmer
4_Bad
5_Schlafzimmer
6_Aussen
7_Flur
HUEDevice
Hardware
Heizung
IT
Logik
MQTT
Plots
Revolt
SD_RSL
Unsorted
XiaomiMQTTDevice
ZWave
harmony
icoEverythingEverything
Logfile
Commandref
Remote doc
Edit files
Select style
Event monitor
Theme-Fehler melden (v2.11)
Internals:
BTMAC C4:7C:8D:6A:BC:D7
DEF C4:7C:8D:6A:BC:D7
FUUID 5ce52894-f33f-6fd6-7e52-72a126a29eaa394b
FVERSION 74_XiaomiBTLESens.pm:v2.6.0-s19768/2019-07-03
INTERVAL 7200
NAME Drachenbaum
NOTIFYDEV global,Drachenbaum
NR 213
NTFY_ORDER 50-Drachenbaum
STATE error Temp: 21.8 Moist: 0 Lux: 8
TYPE XiaomiBTLESens
VERSION v2.6.0
loglevel 4
Helper:
DBLOG:
fertility:
DBLogging:
TIME 1566323618.051
VALUE 72
lux:
DBLogging:
TIME 1566323618.051
VALUE 8
moisture:
DBLogging:
TIME 1566323618.051
VALUE 0
temperature:
DBLogging:
TIME 1566323618.051
VALUE 21.8
READINGS:
2019-08-19 23:31:25 batteryPercent 98
2019-08-19 23:31:25 batteryState ok
2019-08-20 19:53:38 fertility 72
2019-08-19 23:31:25 firmware 3.2.1
2019-08-23 07:11:28 lastGattError The BlockingCall Process terminated unexpectedly. Timedout
2019-08-20 19:53:38 lux 8
2019-08-20 19:53:38 moisture 0
2019-08-23 07:11:28 state error
2019-08-20 19:53:38 temperature 21.8
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1566250285.97627
updateTimestampCallBattery 2019-08-19 23:31:25
Attributes:
DbLogExclude .*
DbLogInclude temperature,moisture,lux,fertility
interval 7200
model flowerSens
mqttName 4in1_Sensor_Drachenbaum
mqttRoom Wohnzimmer
room 3_Wohnzimmer
stateFormat state Temp: temperature Moist: moisture Lux: lux
Zitat von: ext23 am 16 Juni 2019, 12:05:49
Ich habe jetzt zwei China Versionen der Flower Care Sensoren, aber irgendwie haben die solche Sprünge drin, hat das noch jemand? Bei meinen Int Versionen ist das noch nicht aufgefallen.
/Daniel
58:2D:34:10:4C:FA ClearGrass Temp & RH
define wz_Xiaomi_Sensor_unten XiaomiBTLESens 58:2D:34:10:4C:FA
get wz_Xiaomi_Sensor_unten sensorData
Internals:
BTMAC 58:2D:34:10:4C:FA
CFGFN
DEF 58:2D:34:10:4C:FA
FUUID 5d8cd259-f33f-5bc8-f8d0-febfa4c6b28c768c
INTERVAL 300
NAME wz_Xiaomi_Sensor_unten
NOTIFYDEV global,wz_Xiaomi_Sensor_unten
NR 120801
NTFY_ORDER 50-wz_Xiaomi_Sensor_unten
STATE write sensor data
TYPE XiaomiBTLESens
VERSION 2.4.7
loglevel 4
READINGS:
2019-09-26 17:00:17 batteryPercent 51959038720
2019-09-26 17:00:17 batteryState ok
2019-09-26 16:59:59 firmware CGG1
2019-09-26 17:14:23 lastGattError charWrite faild
2019-09-26 17:14:23 state write sensor data
helper:
CallBattery 1
CallSensDataCounter 1
updateTimeCallBattery 1569510017.9597
updateTimestampCallBattery 2019-09-26 17:00:17
RUNNING_PID:
abortFn XiaomiBTLESens::ExecGatttool_Aborted
arg wz_Xiaomi_Sensor_unten|58:2D:34:10:4C:FA|write|0x10|0100|1
bc_pid 120758
finishFn XiaomiBTLESens::ExecGatttool_Done
fn XiaomiBTLESens::ExecGatttool_Run
pid 5511
telnet telnetPort_127.0.0.1_54660
timeout 90
abortArg:
Attributes:
model thermoHygroSens
room XiaomiBTLESens
2019.09.26 16:59:37 3: XiaomiBTLESens (wz_Xiaomi_Sensor_unten) - defined with BTMAC 58:2D:34:10:4C:FA
2019.09.26 17:00:17 1: PERL WARNING: Hexadecimal number > 0xffffffff non-portable at ./FHEM/74_XiaomiBTLESens.pm line 868.
2019.09.26 17:00:17 3: eval: {XiaomiBTLESens::ExecGatttool_Done('wz_Xiaomi_Sensor_unten|58:2D:34:10:4C:FA|ok|read|0x18|{"gtResult":"0c 19 00 03 00 "}')}
2019.09.26 17:00:17 1: PERL WARNING: Hexadecimal number > 0xffffffff non-portable at ./FHEM/74_XiaomiBTLESens.pm line 869.
2019.09.26 17:00:17 3: eval: {XiaomiBTLESens::ExecGatttool_Done('wz_Xiaomi_Sensor_unten|58:2D:34:10:4C:FA|ok|read|0x18|{"gtResult":"0c 19 00 03 00 "}')}
2019.09.26 17:00:38 1: ERROR evaluating {XiaomiBTLESens::ExecGatttool_Done('wz_Xiaomi_Sensor_unten|58:2D:34:10:4C:FA|ok|write|0x10|{"gtResult":"Unexpected error code"}')}: Can't use string ("1") as a HASH ref while "strict refs" in use at ./FHEM/74_XiaomiBTLESens.pm line 941.
Zitat von: CoolTux am 26 September 2019, 21:20:20
Hallo,
Leider nein. Und ich habe aktuell leider auch keine Zeit es mir genauer an zu schauen. Wenn Du also nicht genau weißt welche Werte was darstellen wird es schwierig.
Grüße
gatttool -b BTMAC --characteristics
Zitat von: CoolTux am 27 September 2019, 13:07:39Code Auswählen
gatttool -b BTMAC --characteristics
Das hier in der Konsole eines Linuxsystems eingeben.
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --characteristics
handle = 0x0002, char properties = 0x0a, char value handle = 0x0003, uuid = 00002a00-0000-1000-8000-00805f9b34fb
handle = 0x0004, char properties = 0x02, char value handle = 0x0005, uuid = 00002a01-0000-1000-8000-00805f9b34fb
handle = 0x0006, char properties = 0x02, char value handle = 0x0007, uuid = 00002a04-0000-1000-8000-00805f9b34fb
handle = 0x0008, char properties = 0x02, char value handle = 0x0009, uuid = 00002aa6-0000-1000-8000-00805f9b34fb
handle = 0x000b, char properties = 0x20, char value handle = 0x000c, uuid = 00002a05-0000-1000-8000-00805f9b34fb
handle = 0x000f, char properties = 0x18, char value handle = 0x0010, uuid = 8ec90003-f315-4f60-9fb8-838830daea50
handle = 0x0013, char properties = 0x0c, char value handle = 0x0014, uuid = 00000001-0000-1000-8000-00805f9b34fb
handle = 0x0015, char properties = 0x10, char value handle = 0x0016, uuid = 00000002-0000-1000-8000-00805f9b34fb
handle = 0x0018, char properties = 0x0c, char value handle = 0x0019, uuid = 00000003-0000-1000-8000-00805f9b34fb
handle = 0x001a, char properties = 0x10, char value handle = 0x001b, uuid = 00000004-0000-1000-8000-00805f9b34fb
handle = 0x001d, char properties = 0x10, char value handle = 0x001e, uuid = 00000100-0000-1000-8000-00805f9b34fb
handle = 0x0021, char properties = 0x02, char value handle = 0x0022, uuid = 00002a29-0000-1000-8000-00805f9b34fb
handle = 0x0023, char properties = 0x02, char value handle = 0x0024, uuid = 00002a24-0000-1000-8000-00805f9b34fb
handle = 0x0025, char properties = 0x02, char value handle = 0x0026, uuid = 00002a25-0000-1000-8000-00805f9b34fb
handle = 0x0027, char properties = 0x02, char value handle = 0x0028, uuid = 00002a27-0000-1000-8000-00805f9b34fb
handle = 0x0029, char properties = 0x02, char value handle = 0x002a, uuid = 00002a26-0000-1000-8000-00805f9b34fb
handle = 0x002c, char properties = 0x18, char value handle = 0x002d, uuid = 00000001-0000-1000-8000-00805f9b34fb
handle = 0x002f, char properties = 0x02, char value handle = 0x0030, uuid = 00000002-0000-1000-8000-00805f9b34fb
handle = 0x0031, char properties = 0x02, char value handle = 0x0032, uuid = 00000004-0000-1000-8000-00805f9b34fb
handle = 0x0033, char properties = 0x18, char value handle = 0x0034, uuid = 00000005-0000-1000-8000-00805f9b34fb
handle = 0x0036, char properties = 0x08, char value handle = 0x0037, uuid = 00000010-0000-1000-8000-00805f9b34fb
handle = 0x0038, char properties = 0x0a, char value handle = 0x0039, uuid = 00000013-0000-1000-8000-00805f9b34fb
handle = 0x003a, char properties = 0x02, char value handle = 0x003b, uuid = 00000014-0000-1000-8000-00805f9b34fb
handle = 0x0002, char properties = 0x0a, char value handle = 0x0003, uuid = 00002a00-0000-1000-8000-00805f9b34fb
handle = 0x0004, char properties = 0x02, char value handle = 0x0005, uuid = 00002a01-0000-1000-8000-00805f9b34fb
handle = 0x0006, char properties = 0x02, char value handle = 0x0007, uuid = 00002a04-0000-1000-8000-00805f9b34fb
handle = 0x0008, char properties = 0x02, char value handle = 0x0009, uuid = 00002aa6-0000-1000-8000-00805f9b34fb
handle = 0x000b, char properties = 0x20, char value handle = 0x000c, uuid = 00002a05-0000-1000-8000-00805f9b34fb
handle = 0x000f, char properties = 0x18, char value handle = 0x0010, uuid = 8ec90003-f315-4f60-9fb8-838830daea50
handle = 0x0013, char properties = 0x0c, char value handle = 0x0014, uuid = 00000001-0000-1000-8000-00805f9b34fb
handle = 0x0015, char properties = 0x10, char value handle = 0x0016, uuid = 00000002-0000-1000-8000-00805f9b34fb
handle = 0x0018, char properties = 0x0c, char value handle = 0x0019, uuid = 00000003-0000-1000-8000-00805f9b34fb
handle = 0x001a, char properties = 0x10, char value handle = 0x001b, uuid = 00000004-0000-1000-8000-00805f9b34fb
handle = 0x001d, char properties = 0x10, char value handle = 0x001e, uuid = 00000100-0000-1000-8000-00805f9b34fb
handle = 0x0021, char properties = 0x02, char value handle = 0x0022, uuid = 00002a29-0000-1000-8000-00805f9b34fb
handle = 0x0023, char properties = 0x02, char value handle = 0x0024, uuid = 00002a24-0000-1000-8000-00805f9b34fb
handle = 0x0025, char properties = 0x02, char value handle = 0x0026, uuid = 00002a25-0000-1000-8000-00805f9b34fb
handle = 0x0027, char properties = 0x02, char value handle = 0x0028, uuid = 00002a27-0000-1000-8000-00805f9b34fb
handle = 0x0029, char properties = 0x02, char value handle = 0x002a, uuid = 00002a26-0000-1000-8000-00805f9b34fb
handle = 0x002c, char properties = 0x18, char value handle = 0x002d, uuid = 00000001-0000-1000-8000-00805f9b34fb
handle = 0x002f, char properties = 0x02, char value handle = 0x0030, uuid = 00000002-0000-1000-8000-00805f9b34fb
handle = 0x0031, char properties = 0x02, char value handle = 0x0032, uuid = 00000004-0000-1000-8000-00805f9b34fb
handle = 0x0033, char properties = 0x18, char value handle = 0x0034, uuid = 00000005-0000-1000-8000-00805f9b34fb
handle = 0x0036, char properties = 0x08, char value handle = 0x0037, uuid = 00000010-0000-1000-8000-00805f9b34fb
handle = 0x0038, char properties = 0x0a, char value handle = 0x0039, uuid = 00000013-0000-1000-8000-00805f9b34fb
handle = 0x003a, char properties = 0x02, char value handle = 0x003b, uuid = 00000014-0000-1000-8000-00805f9b34fb
Zitat von: CoolTux am 27 September 2019, 19:06:46
Hieraus noch nicht, das sind erstmal nur die Handles.
Ich muss mir das noch mal in Ruhe anschauen und dann bekommst Hausaufgaben. Dauert aber etwas.
Zitat von: t1me2die am 27 September 2019, 18:58:56
Angezeigt werden:
20,1 Grad
66,2% Luftfeuchtigkeit
Als Ausgabe bekomme ich:Code Auswählen
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --characteristics
handle = 0x0002, char properties = 0x0a, char value handle = 0x0003, uuid = 00002a00-0000-1000-8000-00805f9b34fb
handle = 0x0004, char properties = 0x02, char value handle = 0x0005, uuid = 00002a01-0000-1000-8000-00805f9b34fb
handle = 0x0006, char properties = 0x02, char value handle = 0x0007, uuid = 00002a04-0000-1000-8000-00805f9b34fb
handle = 0x0008, char properties = 0x02, char value handle = 0x0009, uuid = 00002aa6-0000-1000-8000-00805f9b34fb
handle = 0x000b, char properties = 0x20, char value handle = 0x000c, uuid = 00002a05-0000-1000-8000-00805f9b34fb
handle = 0x000f, char properties = 0x18, char value handle = 0x0010, uuid = 8ec90003-f315-4f60-9fb8-838830daea50
handle = 0x0013, char properties = 0x0c, char value handle = 0x0014, uuid = 00000001-0000-1000-8000-00805f9b34fb
handle = 0x0015, char properties = 0x10, char value handle = 0x0016, uuid = 00000002-0000-1000-8000-00805f9b34fb
handle = 0x0018, char properties = 0x0c, char value handle = 0x0019, uuid = 00000003-0000-1000-8000-00805f9b34fb
handle = 0x001a, char properties = 0x10, char value handle = 0x001b, uuid = 00000004-0000-1000-8000-00805f9b34fb
handle = 0x001d, char properties = 0x10, char value handle = 0x001e, uuid = 00000100-0000-1000-8000-00805f9b34fb
handle = 0x0021, char properties = 0x02, char value handle = 0x0022, uuid = 00002a29-0000-1000-8000-00805f9b34fb
handle = 0x0023, char properties = 0x02, char value handle = 0x0024, uuid = 00002a24-0000-1000-8000-00805f9b34fb
handle = 0x0025, char properties = 0x02, char value handle = 0x0026, uuid = 00002a25-0000-1000-8000-00805f9b34fb
handle = 0x0027, char properties = 0x02, char value handle = 0x0028, uuid = 00002a27-0000-1000-8000-00805f9b34fb
handle = 0x0029, char properties = 0x02, char value handle = 0x002a, uuid = 00002a26-0000-1000-8000-00805f9b34fb
handle = 0x002c, char properties = 0x18, char value handle = 0x002d, uuid = 00000001-0000-1000-8000-00805f9b34fb
handle = 0x002f, char properties = 0x02, char value handle = 0x0030, uuid = 00000002-0000-1000-8000-00805f9b34fb
handle = 0x0031, char properties = 0x02, char value handle = 0x0032, uuid = 00000004-0000-1000-8000-00805f9b34fb
handle = 0x0033, char properties = 0x18, char value handle = 0x0034, uuid = 00000005-0000-1000-8000-00805f9b34fb
handle = 0x0036, char properties = 0x08, char value handle = 0x0037, uuid = 00000010-0000-1000-8000-00805f9b34fb
handle = 0x0038, char properties = 0x0a, char value handle = 0x0039, uuid = 00000013-0000-1000-8000-00805f9b34fb
handle = 0x003a, char properties = 0x02, char value handle = 0x003b, uuid = 00000014-0000-1000-8000-00805f9b34fb
Angezeigt werden:
20,2 Grad
65,9% Luftfeuchtigkeit
Als Ausgabe bekomme ich:Code Auswählen
handle = 0x0002, char properties = 0x0a, char value handle = 0x0003, uuid = 00002a00-0000-1000-8000-00805f9b34fb
handle = 0x0004, char properties = 0x02, char value handle = 0x0005, uuid = 00002a01-0000-1000-8000-00805f9b34fb
handle = 0x0006, char properties = 0x02, char value handle = 0x0007, uuid = 00002a04-0000-1000-8000-00805f9b34fb
handle = 0x0008, char properties = 0x02, char value handle = 0x0009, uuid = 00002aa6-0000-1000-8000-00805f9b34fb
handle = 0x000b, char properties = 0x20, char value handle = 0x000c, uuid = 00002a05-0000-1000-8000-00805f9b34fb
handle = 0x000f, char properties = 0x18, char value handle = 0x0010, uuid = 8ec90003-f315-4f60-9fb8-838830daea50
handle = 0x0013, char properties = 0x0c, char value handle = 0x0014, uuid = 00000001-0000-1000-8000-00805f9b34fb
handle = 0x0015, char properties = 0x10, char value handle = 0x0016, uuid = 00000002-0000-1000-8000-00805f9b34fb
handle = 0x0018, char properties = 0x0c, char value handle = 0x0019, uuid = 00000003-0000-1000-8000-00805f9b34fb
handle = 0x001a, char properties = 0x10, char value handle = 0x001b, uuid = 00000004-0000-1000-8000-00805f9b34fb
handle = 0x001d, char properties = 0x10, char value handle = 0x001e, uuid = 00000100-0000-1000-8000-00805f9b34fb
handle = 0x0021, char properties = 0x02, char value handle = 0x0022, uuid = 00002a29-0000-1000-8000-00805f9b34fb
handle = 0x0023, char properties = 0x02, char value handle = 0x0024, uuid = 00002a24-0000-1000-8000-00805f9b34fb
handle = 0x0025, char properties = 0x02, char value handle = 0x0026, uuid = 00002a25-0000-1000-8000-00805f9b34fb
handle = 0x0027, char properties = 0x02, char value handle = 0x0028, uuid = 00002a27-0000-1000-8000-00805f9b34fb
handle = 0x0029, char properties = 0x02, char value handle = 0x002a, uuid = 00002a26-0000-1000-8000-00805f9b34fb
handle = 0x002c, char properties = 0x18, char value handle = 0x002d, uuid = 00000001-0000-1000-8000-00805f9b34fb
handle = 0x002f, char properties = 0x02, char value handle = 0x0030, uuid = 00000002-0000-1000-8000-00805f9b34fb
handle = 0x0031, char properties = 0x02, char value handle = 0x0032, uuid = 00000004-0000-1000-8000-00805f9b34fb
handle = 0x0033, char properties = 0x18, char value handle = 0x0034, uuid = 00000005-0000-1000-8000-00805f9b34fb
handle = 0x0036, char properties = 0x08, char value handle = 0x0037, uuid = 00000010-0000-1000-8000-00805f9b34fb
handle = 0x0038, char properties = 0x0a, char value handle = 0x0039, uuid = 00000013-0000-1000-8000-00805f9b34fb
handle = 0x003a, char properties = 0x02, char value handle = 0x003b, uuid = 00000014-0000-1000-8000-00805f9b34fb
Wenn du mir jetzt noch erklärst, wie ich aus diesen Informationen die angezeigten Werte rausbekomme, kann ich gerne weitere Werte liefern.
Gruß
Mathze
gatttool -b $MAC --char-read -a 0x16
gatttool -b $MAC --char-read -a 0x16 0x19
Zitat von: CoolTux am 07 Oktober 2019, 11:43:58
Bitte einmal dieses hier aus führenCode Auswählengatttool -b $MAC --char-read -a 0x16
undCode Auswählengatttool -b $MAC --char-read -a 0x16 0x19
Ausgabe hier bitte posten.
Grüße
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read -a 0x16
Characteristic value/descriptor: f2
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read -a 0x16 0x19
Characteristic value/descriptor: f2
Zitat von: CoolTux am 07 Oktober 2019, 16:21:46
Sorry mein Fehler.
Das letzte sollte einCode Auswählengatttool -b $MAC --char-read -a 0x19
werden
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read -a 0x19
Characteristic value/descriptor: fe
Zitat von: CoolTux am 07 Oktober 2019, 16:33:23
Ok und jetzt das selbe mit 37 und 39 bitte.
also 0x37 und 0x39
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read -a 0x37
Characteristic value/descriptor read failed: Attribute can't be read
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read -a 0x39
Characteristic value/descriptor: 52 f6 f9 e3 1c c2 3a e0 c0 8d b9 df e6 78 ae 8b 90 ee 0a d4
Zitat von: CoolTux am 07 Oktober 2019, 16:52:07
Ist Deine Batterie bei 82 Prozent?
0x34
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read -a 0x34
Characteristic value/descriptor read failed: Attribute can't be read
gatttool -b MAC --char-write-req -a 0x32 -n A01F
gatttool -b MAC --char-write-req -a 0x34 -n A01F
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-write-req -a 0x32 -n A01F
Characteristic Write Request failed: Attribute can't be written
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-write-req -a 0x34 -n A01F
Characteristic value was written successfully
gatttool -b MAC --char-write-req -a 0x34 -n A01F && gatttool -b MAC --char-read -a 0x37
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-write-req -a 0x34 -n A01F && gatttool -b 58:2D:34:10:4C:FA --char-read -a 0x37
Characteristic value was written successfully
Characteristic value/descriptor read failed: Attribute can't be read
gatttool -b 58:2D:34:10:4C:FA --char-write-req -a 0x34 -n A01F && gatttool -b 58:2D:34:10:4C:FA --char-read -a 0x32
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-write-req -a 0x34 -n A01F && gatttool -b 58:2D:34:10:4C:FA --char-read -a 0x32
Characteristic value was written successfully
Characteristic value/descriptor: 0a 58 c4 7c d3 b7 2a 2b f1 13
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read -a 0x32
Characteristic value/descriptor: 0a 58 c4 7c d3 b7 2a 2b f1 13
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read -a 0x32
Characteristic value/descriptor: 0a 58 c4 7c d3 b7 2a 2b f1 13
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read -a 0x36
Characteristic value/descriptor: 08 37 00 10 00
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read -a 0x38
Characteristic value/descriptor: 0a 39 00 13 00
Zitat von: t1me2die am 07 Oktober 2019, 20:05:50Code Auswählen
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read -a 0x36
Characteristic value/descriptor: 08 37 00 10 00
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read -a 0x38
Characteristic value/descriptor: 0a 39 00 13 00
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read -a 0x36
Characteristic value/descriptor: 08 37 00 10 00
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read -a 0x38
Characteristic value/descriptor: 0a 39 00 13 00
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read -a 0x36
Characteristic value/descriptor: 08 37 00 10 00
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read -a 0x38
Characteristic value/descriptor: 0a 39 00 13 00
0x0022 = 51 69 6e 67 70 69 6e 67 20 54 65 63 68 6e 6f 6c 6f 67 79 20 28 42 65 69 6a 69 6e 67 29 20 43 6f 2e 2c 20 4c 74 64 2e
Herstellername = Qingping Technology (Beijing) Co., Ltd.
0x0024 = 43 47 47 31
Produkt ID = CGG1
0x0026 = 46 41 34 43 31 30 33 34 32 44 35 38
Keine Ahnung, was das sein soll?
0x0003 = 43 6c 65 61 72 47 72 61 73 73 20 54 65 6d 70 20 26 20 52 48
Name = ClearGrass Temp & RH
0x002a = 31 2e 31 2e 32 5f 30 30 32 30
Firmwareversion = 1.1.2_0020
Zitat von: t1me2die am 08 Oktober 2019, 12:23:10
Moin Leon,
um ein bisschen mehr Verständnis für die Materie zu bekommen, google ich auch etwas.
Kurz zusammengefasst, mit 0x36, 0x32, 0x38 usw. werden einzelne Bereiche aus dem Gerät ausgelesen.
Der Wert wird als HEX Wert ausgelesen, richtig?
Dieser müsste dann noch nach ASCII übersetzt werden und sollte dann, irgendeine Zahl / Wert / Zeichen enthalten, der optimalerweise irgendwie im Gerät vorhanden/sichtbar wäre/ist.
Habe ich das soweit richtig verstanden?
Folgende Werte konnte ich identifizieren:Code Auswählen0x0022 = 51 69 6e 67 70 69 6e 67 20 54 65 63 68 6e 6f 6c 6f 67 79 20 28 42 65 69 6a 69 6e 67 29 20 43 6f 2e 2c 20 4c 74 64 2e
Herstellername = Qingping Technology (Beijing) Co., Ltd.
0x0024 = 43 47 47 31
Produkt ID = CGG1
0x0026 = 46 41 34 43 31 30 33 34 32 44 35 38
Keine Ahnung, was das sein soll?
0x0003 = 43 6c 65 61 72 47 72 61 73 73 20 54 65 6d 70 20 26 20 52 48
Name = ClearGrass Temp & RH
0x002a = 31 2e 31 2e 32 5f 30 30 32 30
Firmwareversion = 1.1.2_0020
Gruß
Mathze
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0001
Characteristic value/descriptor: 00 18
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0002
Characteristic value/descriptor: 0a 03 00 00 2a
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0003
Characteristic value/descriptor: 43 6c 65 61 72 47 72 61 73 73 20 54 65 6d 70 20 26 20 52 48
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0004
Characteristic value/descriptor: 02 05 00 01 2a
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0005
Characteristic value/descriptor: 00 00
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0006
Characteristic value/descriptor: 02 07 00 04 2a
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0007
Characteristic value/descriptor: 10 00 3c 00 00 00 90 01
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0008
Characteristic value/descriptor: 02 09 00 a6 2a
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0009
Characteristic value/descriptor: 01
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0010
Characteristic value/descriptor:
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0011
Characteristic value/descriptor: 00 00
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0012
Characteristic value/descriptor: 4d 46 50 44 53 46 42 55 46 45 4a 55 00 00 21 22
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0013
Characteristic value/descriptor: 0c 14 00 01 00
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0014
Characteristic value/descriptor: 01
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0015
Characteristic value/descriptor: 10 16 00 02 00
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0016
Characteristic value/descriptor: 05
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0017
Characteristic value/descriptor: 00 00
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0018
Characteristic value/descriptor: 0c 19 00 03 00
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0019
Characteristic value/descriptor: fe
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0020
Characteristic value/descriptor: 0a 18
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0021
Characteristic value/descriptor: 02 22 00 29 2a
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0022
Characteristic value/descriptor: 51 69 6e 67 70 69 6e 67 20 54 65 63 68 6e 6f 6c 6f 67 79 20 28 42 65 69 6a 69 6e 67 29 20 43 6f 2e 2c 20 4c 74 64 2e
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0023
Characteristic value/descriptor: 02 24 00 24 2a
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0024
Characteristic value/descriptor: 43 47 47 31
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0025
Characteristic value/descriptor: 02 26 00 25 2a
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0026
Characteristic value/descriptor: 46 41 34 43 31 30 33 34 32 44 35 38
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0027
Characteristic value/descriptor: 02 28 00 27 2a
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0028
Characteristic value/descriptor: 30 30 30 31
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0029
Characteristic value/descriptor: 02 2a 00 26 2a
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0030
Characteristic value/descriptor: 47 03
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0031
Characteristic value/descriptor: 02 32 00 04 00
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0032
Characteristic value/descriptor: 0a 58 c4 7c d3 b7 2a 2b f1 13
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0033
Characteristic value/descriptor: 18 34 00 05 00
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0034
Characteristic value/descriptor read failed: Attribute can't be read
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0035
Characteristic value/descriptor: 00 00
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0036
Characteristic value/descriptor: 08 37 00 10 00
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0037
Characteristic value/descriptor read failed: Attribute can't be read
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0038
Characteristic value/descriptor: 0a 39 00 13 00
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0039
Characteristic value/descriptor: 3b 14 99 26 cf db 34 2a f3 53 45 3b 41 6f a3 9f 29 09 70 38
gatttool -I
[58:2D:34:10:4C:FA][LE]> characteristics
handle: 0x0002, char properties: 0x0a, char value handle: 0x0003, uuid: 00002a00-0000-1000-8000-00805f9b34fb
Hex: 43 6c 65 61 72 47 72 61 73 73 20 54 65 6d 70 20 26 20 52 48
ASCII: ClearGrass Temp & RH
handle: 0x0004, char properties: 0x02, char value handle: 0x0005, uuid: 00002a01-0000-1000-8000-00805f9b34fb
Hex: 00 00
ASCII:
handle: 0x0006, char properties: 0x02, char value handle: 0x0007, uuid: 00002a04-0000-1000-8000-00805f9b34fb
HEX: 10 00 3c 00 00 00 90 01
ASCII: Nicht leserlich?!
handle: 0x0008, char properties: 0x02, char value handle: 0x0009, uuid: 00002aa6-0000-1000-8000-00805f9b34fb
HEX: 01
ASCII: Nicht leserlich?!
handle: 0x000b, char properties: 0x20, char value handle: 0x000c, uuid: 00002a05-0000-1000-8000-00805f9b34fb
can't be read
handle: 0x000f, char properties: 0x18, char value handle: 0x0010, uuid: 8ec90003-f315-4f60-9fb8-838830daea50
blank
handle: 0x0013, char properties: 0x0c, char value handle: 0x0014, uuid: 00000001-0000-1000-8000-00805f9b34fb
HEX: 01
ASCII: Nicht leserlich?!
handle: 0x0015, char properties: 0x10, char value handle: 0x0016, uuid: 00000002-0000-1000-8000-00805f9b34fb
HEX: 05
ASCII: Nicht leserlich?!
handle: 0x0018, char properties: 0x0c, char value handle: 0x0019, uuid: 00000003-0000-1000-8000-00805f9b34fb
HEX: fe
ASCII: Nicht leserlich?!
handle: 0x001a, char properties: 0x10, char value handle: 0x001b, uuid: 00000004-0000-1000-8000-00805f9b34fb
HEX: fe
ASCII: Nicht leserlich?!
handle: 0x001d, char properties: 0x10, char value handle: 0x001e, uuid: 00000100-0000-1000-8000-00805f9b34fb
HEX: 05
ASCII: Nicht leserlich?!
handle: 0x0021, char properties: 0x02, char value handle: 0x0022, uuid: 00002a29-0000-1000-8000-00805f9b34fb
HEX: 51 69 6e 67 70 69 6e 67 20 54 65 63 68 6e 6f 6c 6f 67 79 20 28 42 65 69 6a 69 6e 67 29 20 43 6f 2e 2c 20 4c 74 64 2e
ASCII: Qingping Technology (Beijing) Co., Ltd.
handle: 0x0023, char properties: 0x02, char value handle: 0x0024, uuid: 00002a24-0000-1000-8000-00805f9b34fb
HEX: 43 47 47 31
ASCII: CGG1
handle: 0x0025, char properties: 0x02, char value handle: 0x0026, uuid: 00002a25-0000-1000-8000-00805f9b34fb
HEX: 46 41 34 43 31 30 33 34 32 44 35 38
ASCII: FA4C10342D58
handle: 0x0027, char properties: 0x02, char value handle: 0x0028, uuid: 00002a27-0000-1000-8000-00805f9b34fb
HEX: 30 30 30 31
ASCII: 0001
handle: 0x0029, char properties: 0x02, char value handle: 0x002a, uuid: 00002a26-0000-1000-8000-00805f9b34fb
HEX: 31 2e 31 2e 32 5f 30 30 32 30
ASCII: 1.1.2_0020
handle: 0x002c, char properties: 0x18, char value handle: 0x002d, uuid: 00000001-0000-1000-8000-00805f9b34fb
cant be read
handle: 0x002f, char properties: 0x02, char value handle: 0x0030, uuid: 00000002-0000-1000-8000-00805f9b34fb
HEX: 47 03
ASCII: Nicht leserlich?!
handle: 0x0031, char properties: 0x02, char value handle: 0x0032, uuid: 00000004-0000-1000-8000-00805f9b34fb
HEX: 0a 58 c4 7c d3 b7 2a 2b f1 13
ASCII: Nicht leserlich?
handle: 0x0033, char properties: 0x18, char value handle: 0x0034, uuid: 00000005-0000-1000-8000-00805f9b34fb
cant be read
handle: 0x0036, char properties: 0x08, char value handle: 0x0037, uuid: 00000010-0000-1000-8000-00805f9b34fb
cant be read
handle: 0x0038, char properties: 0x0a, char value handle: 0x0039, uuid: 00000013-0000-1000-8000-00805f9b34fb
HEX: 3b 14 99 26 cf db 34 2a f3 53 45 3b 41 6f a3 9f 29 09 70 38
ASCII: Nicht leserlich?!
handle: 0x003a, char properties: 0x02, char value handle: 0x003b, uuid: 00000014-0000-1000-8000-00805f9b34fb
HEX: 51 04 bf 7e 7d 10 be 4d 71 7b 8f 2f
ASCII: Nicht leserlich?!
[58:2D:34:10:4C:FA][LE]> char-desc
handle: 0x0001, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0002, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0003, uuid: 00002a00-0000-1000-8000-00805f9b34fb
handle: 0x0004, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0005, uuid: 00002a01-0000-1000-8000-00805f9b34fb
handle: 0x0006, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0007, uuid: 00002a04-0000-1000-8000-00805f9b34fb
handle: 0x0008, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0009, uuid: 00002aa6-0000-1000-8000-00805f9b34fb
handle: 0x000a, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x000b, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x000c, uuid: 00002a05-0000-1000-8000-00805f9b34fb
handle: 0x000d, uuid: 00002902-0000-1000-8000-00805f9b34fb
handle: 0x000e, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x000f, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0010, uuid: 8ec90003-f315-4f60-9fb8-838830daea50
handle: 0x0011, uuid: 00002902-0000-1000-8000-00805f9b34fb
handle: 0x0012, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0013, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0014, uuid: 00000001-0000-1000-8000-00805f9b34fb
handle: 0x0015, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0016, uuid: 00000002-0000-1000-8000-00805f9b34fb
handle: 0x0017, uuid: 00002902-0000-1000-8000-00805f9b34fb
handle: 0x0018, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0019, uuid: 00000003-0000-1000-8000-00805f9b34fb
handle: 0x001a, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x001b, uuid: 00000004-0000-1000-8000-00805f9b34fb
handle: 0x001c, uuid: 00002902-0000-1000-8000-00805f9b34fb
handle: 0x001d, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x001e, uuid: 00000100-0000-1000-8000-00805f9b34fb
handle: 0x001f, uuid: 00002902-0000-1000-8000-00805f9b34fb
handle: 0x0020, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x0021, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0022, uuid: 00002a29-0000-1000-8000-00805f9b34fb
handle: 0x0023, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0024, uuid: 00002a24-0000-1000-8000-00805f9b34fb
handle: 0x0025, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0026, uuid: 00002a25-0000-1000-8000-00805f9b34fb
handle: 0x0027, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0028, uuid: 00002a27-0000-1000-8000-00805f9b34fb
handle: 0x0029, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x002a, uuid: 00002a26-0000-1000-8000-00805f9b34fb
handle: 0x002b, uuid: 00002800-0000-1000-8000-00805f9b34fb
handle: 0x002c, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x002d, uuid: 00000001-0000-1000-8000-00805f9b34fb
handle: 0x002e, uuid: 00002902-0000-1000-8000-00805f9b34fb
handle: 0x002f, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0030, uuid: 00000002-0000-1000-8000-00805f9b34fb
handle: 0x0031, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0032, uuid: 00000004-0000-1000-8000-00805f9b34fb
handle: 0x0033, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0034, uuid: 00000005-0000-1000-8000-00805f9b34fb
handle: 0x0035, uuid: 00002902-0000-1000-8000-00805f9b34fb
handle: 0x0036, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0037, uuid: 00000010-0000-1000-8000-00805f9b34fb
handle: 0x0038, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x0039, uuid: 00000013-0000-1000-8000-00805f9b34fb
handle: 0x003a, uuid: 00002803-0000-1000-8000-00805f9b34fb
handle: 0x003b, uuid: 00000014-0000-1000-8000-00805f9b34fb
//example "servicedata":"5030470340743e10342d58041002d6000a100164"
/* All the information is in this Property called "FDCD" on the advertising data.
The HEX string is as follows:
"0807453810342d580104f500da02020145" (quotes included)
To which:
0807 or 0801: Ignore, but useful to identify relevant data
453810342d58: MAC address, INVERTED (58:2d:34:10:38:45)
0104f500da02: Data for Temperature and Humidity, broken as follows
- 01: Indicates the Temperature and Humidity events
- 04: Event data length (4, 2 bytes for Temperature, 2 bytes for Humidity)
- f500: Temperature data inverted (00f5), which translates to 245, equivalent to 24.5C
- da02: Humitity data inverted (02da), which translates to 730, equivalent to 73.0%
020145: Data for Battery, bronek as follows
- 02: Indicates the Battery events
- 01: Event data length (1 byte)
- 45: Battery data, which translates to 69, equivalent to 69%
*/
handle: 0x0025, char properties: 0x02, char value handle: 0x0026, uuid: 00002a25-0000-1000-8000-00805f9b34fb
HEX: 46 41 34 43 31 30 33 34 32 44 35 38
ASCII: FA4C10342D58
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x1e
Altes Ergebnis: Characteristic value/descriptor: 05
Neues Ergebnis: Characteristic value/descriptor: 05 08 b0 00 38 02
b0 = 176 / 10 = 17,6Grad Temperatur
38 = 56 = 56% Luftfeuchtigkeit
root@raspberrypi:~# gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x0016
Characteristic value/descriptor: 05
Veränderung: 05 0a 2b 2a 9e 5d
Zitat von: CoolTux am 10 Oktober 2019, 07:56:01
Super. Vielen Dank das Du Dich da so ein bringst.
Ich werde sehen das ich die Tage da mal eine Version für Dich fertig mache.
#t1me2die
gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x1e
Characteristic value/desriptor: 05
gatttool -b 58:2D:34:10:4C:FA --char-read --handle=0x1e
Characteristic value/desriptor: 05 08 b4 00 5e 02
Zitat von: CoolTux am 11 Oktober 2019, 11:40:05
Beim FlowerSens muss erst ein write gemacht werden damit Daten beim read kommen. Beim anderen wird gleich ein write gemacht weil das write als Antwort die entsprechenden Daten uns gibt.
Ich habe mal versucht ClearGrass ein zu binden. Hier mein erster Entwurf, magst Du bitte einmal testen.
https://github.com/fhem/XiaomiBTLESens
Grüße
$readings{'humidity'} = hex(substr($notification,11,1) .substr($notification,8,2))/10;
Zitat von: CoolTux am 11 Oktober 2019, 12:04:40
Habe ich, kannst Du noch mal testen bitte.
Und zeig dann mal bitte ein list vom Device.
"GP_Export" is not exported by the GPUtils module
Can't continue after import errors at ./FHEM/74_XiaomiBTLESens.pm line 42.
BEGIN failed--compilation aborted at ./FHEM/74_XiaomiBTLESens.pm line 42.
readingsBulkUpdateIfChanged($hash, "state",($readings->{'lastGattError'} ? 'error' : 'active' ) )if ( AttrVal( $name, 'model', 'none' ) eq 'flowerSens' );
readingsBulkUpdateIfChanged( $hash, "state",
( $readings->{'lastGattError'} ? 'error' : 'active' ) )
if ( AttrVal( $name, 'model', 'none' ) eq 'flowerSens' );
readingsBulkUpdateIfChanged(
$hash, "state",
(
$readings->{'lastGattError'}
? 'error'
: 'T: '
. ReadingsVal( $name, 'temperature', 0 ) . ' H: '
. ReadingsVal( $name, 'humidity', 0 )
)
) if (( AttrVal( $name, 'model', 'none' ) eq 'thermoHygroSens' ) or ( AttrVal( $name, 'model', 'none' ) eq 'clearGrassSens'));
Internals:
BTMAC 58:2D:34:10:4C:FA
DEF 58:2D:34:10:4C:FA
FUUID 5d8cd259-f33f-5bc8-f8d0-febfa4c6b28c768c
INTERVAL 300
NAME wz_Xiaomi_Sensor_unten
NOTIFYDEV global,wz_Xiaomi_Sensor_unten
NR 26
NTFY_ORDER 50-wz_Xiaomi_Sensor_unten
STATE read sensor data
TYPE XiaomiBTLESens
VERSION v2.7.54
loglevel 4
READINGS:
2019-10-11 12:14:10 batteryPercent 254
2019-10-11 12:14:10 batteryState ok
2019-10-11 09:28:56 devicename ClearGrass Temp & RH
2019-10-11 09:28:46 firmware 1.1.2_0020
2019-10-11 12:14:56 humidity 60.5
2019-10-11 09:28:36 lastGattError No route to host (113)
2019-10-10 12:37:51 macInverted FA:4C:10:34:2D:58
2019-10-10 12:38:03 manufactor Qingping Technology (Beijing) Co., Ltd.
2019-10-10 12:58:41 productID CGG1
2019-10-11 12:14:53 state read sensor data
2019-10-11 12:14:56 temperature 17.7
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1570788850.5141
updateTimestampCallBattery 2019-10-11 12:14:10
Attributes:
model clearGrassSens
room XiaomiBTLESens
verbose 0
Zitat von: CoolTux am 11 Oktober 2019, 12:28:37
bei der Batterie schein aber noch was zu klemmen, da habe ich bestimmt einen falschen handle erwischt.
Internals:
BTMAC 58:2D:34:10:4C:FA
CFGFN
DEF 58:2D:34:10:4C:FA
FUUID 5da05990-f33f-5bc8-ef85-3ac9f283a69f804c
INTERVAL 300
NAME wz_Xiaomi_Sensor_unten
NOTIFYDEV global,wz_Xiaomi_Sensor_unten
NR 140
NTFY_ORDER 50-wz_Xiaomi_Sensor_unten
STATE T: 17.7 H: 60.5
TYPE XiaomiBTLESens
VERSION v2.7.54
loglevel 4
READINGS:
2019-10-11 12:30:48 batteryPercent 254
2019-10-11 12:30:48 batteryState ok
2019-10-11 12:29:48 firmware 1.1.2_0020
2019-10-11 12:30:48 humidity 60.5
2019-10-11 12:30:48 state T: 17.7 H: 60.5
2019-10-11 12:30:48 temperature 17.7
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1570789848.21398
updateTimestampCallBattery 2019-10-11 12:30:48
Attributes:
model clearGrassSens
room XiaomiBTLESens
Zitat von: CoolTux am 11 Oktober 2019, 12:38:49
Ok ich habe mal Deinen Handle genommen. Bitte teste noch mal, musst aber vorher ein resetBatteryTimestamp machen.
sub ClearGrassSensHandle0x3b($$) {
### Clear Grass Sens - Battery Data
my ( $hash, $notification ) = @_;
my $name = $hash->{NAME};
my %readings;
Log3 $name, 4, "XiaomiBTLESens ($name) - Clear Grass Sens Handle0x3b";
chomp($notification);
$notification =~ s/\s+//g;
### neue Vereinheitlichung für Batteriereadings Forum #800017
$readings{'batteryPercent'} = hex(substr( $notification, 14, 2 ) );
$readings{'batteryState'} = ( hex(substr( $notification, 14, 2 )) > 15 ? "ok" : "low" );
$hash->{helper}{CallBattery} = 1;
CallBattery_Timestamp($hash);
return \%readings;
}
Internals:
BTMAC 58:2D:34:10:4C:FA
CFGFN
DEF 58:2D:34:10:4C:FA
FUUID 5da05990-f33f-5bc8-ef85-3ac9f283a69f804c
INTERVAL 300
NAME wz_Xiaomi_Sensor_unten
NOTIFYDEV global,wz_Xiaomi_Sensor_unten
NR 140
NTFY_ORDER 50-wz_Xiaomi_Sensor_unten
STATE T: 17.7 H: 60.5
TYPE XiaomiBTLESens
VERSION v2.7.54
loglevel 4
READINGS:
2019-10-11 12:53:22 batteryPercent 77
2019-10-11 12:53:22 batteryState ok
2019-10-11 12:29:48 firmware 1.1.2_0020
2019-10-11 12:53:22 humidity 60.5
2019-10-11 12:51:04 lastGattError No route to host (113)
2019-10-11 12:53:22 state T: 17.7 H: 60.5
2019-10-11 12:53:22 temperature 17.7
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1570791202.1444
updateTimestampCallBattery 2019-10-11 12:53:22
Attributes:
model clearGrassSens
room XiaomiBTLESens
handle: 0x0001, uuid: 00002800-0000-1000-8000-00805f9b34fb 00 18
handle: 0x0002, uuid: 00002803-0000-1000-8000-00805f9b34fb 0a 03 00 2a
handle: 0x0003, uuid: 00002a00-0000-1000-8000-00805f9b34fb ClearGrass Temp & RH
handle: 0x0004, uuid: 00002803-0000-1000-8000-00805f9b34fb 02 05 00 01 2a
handle: 0x0005, uuid: 00002a01-0000-1000-8000-00805f9b34fb 00 00
handle: 0x0006, uuid: 00002803-0000-1000-8000-00805f9b34fb 02 07 00 04 2a
handle: 0x0007, uuid: 00002a04-0000-1000-8000-00805f9b34fb 10 00 3c 00 00 00 90 01
handle: 0x0008, uuid: 00002803-0000-1000-8000-00805f9b34fb 02 09 00 a6 2a
handle: 0x0009, uuid: 00002aa6-0000-1000-8000-00805f9b34fb 01
handle: 0x000a, uuid: 00002800-0000-1000-8000-00805f9b34fb 01 18
handle: 0x000b, uuid: 00002803-0000-1000-8000-00805f9b34fb 20 0c 00 05 2a
handle: 0x000c, uuid: 00002a05-0000-1000-8000-00805f9b34fb cant read
handle: 0x000d, uuid: 00002902-0000-1000-8000-00805f9b34fb 00 00
handle: 0x000e, uuid: 00002800-0000-1000-8000-00805f9b34fb 59 fe
handle: 0x000f, uuid: 00002803-0000-1000-8000-00805f9b34fb 18 10 00 50 ea da 30 88 83 b8 9f 60 4f 15 f3 03 00 c9 8e
handle: 0x0010, uuid: 8ec90003-f315-4f60-9fb8-838830daea50 blank
handle: 0x0011, uuid: 00002902-0000-1000-8000-00805f9b34fb 00 00
handle: 0x0012, uuid: 00002800-0000-1000-8000-00805f9b34fb 4d 46 50 44 53 46 42 55 46 45 4a 55 00 00 21 22
handle: 0x0013, uuid: 00002803-0000-1000-8000-00805f9b34fb 0c 14 00 01 00
handle: 0x0014, uuid: 00000001-0000-1000-8000-00805f9b34fb 01 0a
handle: 0x0015, uuid: 00002803-0000-1000-8000-00805f9b34fb 10 16 00 02 00
handle: 0x0016, uuid: 00000002-0000-1000-8000-00805f9b34fb 05 0a 2b 2a 9e 5d
handle: 0x0017, uuid: 00002902-0000-1000-8000-00805f9b34fb 00 00
handle: 0x0018, uuid: 00002803-0000-1000-8000-00805f9b34fb 0c 19 00 03 00
handle: 0x0019, uuid: 00000003-0000-1000-8000-00805f9b34fb fe
handle: 0x001a, uuid: 00002803-0000-1000-8000-00805f9b34fb 10 1b 00 04 00
handle: 0x001b, uuid: 00000004-0000-1000-8000-00805f9b34fb fe
handle: 0x001c, uuid: 00002902-0000-1000-8000-00805f9b34fb 00 00
handle: 0x001d, uuid: 00002803-0000-1000-8000-00805f9b34fb 10 1e 00 00 01
handle: 0x001e, uuid: 00000100-0000-1000-8000-00805f9b34fb 05 08 b0 00 38 02
05 08 b1 00 43 02
05 08 b2 00 5a 02
05 08 b1 00 5d 02
handle: 0x001f, uuid: 00002902-0000-1000-8000-00805f9b34fb 00 00
handle: 0x0020, uuid: 00002800-0000-1000-8000-00805f9b34fb 0a 18
handle: 0x0021, uuid: 00002803-0000-1000-8000-00805f9b34fb 02 22 00 29 2a
handle: 0x0022, uuid: 00002a29-0000-1000-8000-00805f9b34fb Qingping Technology (Beijing) Co., Ltd.
handle: 0x0023, uuid: 00002803-0000-1000-8000-00805f9b34fb 02 24 00 24 2a
handle: 0x0024, uuid: 00002a24-0000-1000-8000-00805f9b34fb CGG1
handle: 0x0025, uuid: 00002803-0000-1000-8000-00805f9b34fb 02 26 00 25 2a
handle: 0x0026, uuid: 00002a25-0000-1000-8000-00805f9b34fb FA4C10342D58 (MAC)
handle: 0x0027, uuid: 00002803-0000-1000-8000-00805f9b34fb 02 28 00 27 2a
handle: 0x0028, uuid: 00002a27-0000-1000-8000-00805f9b34fb 30 30 30 31 -> Revision 0001
handle: 0x0029, uuid: 00002803-0000-1000-8000-00805f9b34fb 02 2a 00 26 2a
handle: 0x002a, uuid: 00002a26-0000-1000-8000-00805f9b34fb Firmware
handle: 0x002b, uuid: 00002800-0000-1000-8000-00805f9b34fb 95 fe
handle: 0x002c, uuid: 00002803-0000-1000-8000-00805f9b34fb 18 2d 00 01 00
handle: 0x002d, uuid: 00000001-0000-1000-8000-00805f9b34fb cant read
handle: 0x002e, uuid: 00002902-0000-1000-8000-00805f9b34fb 00 00
handle: 0x002f, uuid: 00002803-0000-1000-8000-00805f9b34fb 02 30 00 02 00
handle: 0x0030, uuid: 00000002-0000-1000-8000-00805f9b34fb 47 03
handle: 0x0031, uuid: 00002803-0000-1000-8000-00805f9b34fb 02 32 00 04 00
handle: 0x0032, uuid: 00000004-0000-1000-8000-00805f9b34fb 0a 58 c4 7c d3 b7 2a 2b f1 13
handle: 0x0033, uuid: 00002803-0000-1000-8000-00805f9b34fb 18 34 00 05 00
handle: 0x0034, uuid: 00000005-0000-1000-8000-00805f9b34fb cant read
handle: 0x0035, uuid: 00002902-0000-1000-8000-00805f9b34fb 00 00
-handle: 0x0036, uuid: 00002803-0000-1000-8000-00805f9b34fb 08 37 00 10 00
handle: 0x0037, uuid: 00000010-0000-1000-8000-00805f9b34fb cant read
-handle: 0x0038, uuid: 00002803-0000-1000-8000-00805f9b34fb 0a 39 00 13 00
-handle: 0x0039, uuid: 00000013-0000-1000-8000-00805f9b34fb 3b 14 99 26 cf db 34 2a f3 53 45 3b 41 6f a3 9f 29 09 70 38
-handle: 0x003a, uuid: 00002803-0000-1000-8000-00805f9b34fb 02 3b 00 14 00
handle: 0x003b, uuid: 00000014-0000-1000-8000-00805f9b34fb 51 04 bf 7e 7d 10 be 4d 71 7b 8f 2f
2019.10.12 00:18:46 4: XiaomiBTLESens (wz_Xiaomi_Sensor_unten) - Run CreateParamGatttool with mod: read
2019.10.12 00:18:46 5: XiaomiBTLESens (wz_Xiaomi_Sensor_unten) - Read XiaomiBTLESens_ExecGatttool_Run wz_Xiaomi_Sensor_unten|58:2D:34:10:4C:FA|read|0x3a
2019.10.12 00:18:46 5: XiaomiBTLESens (wz_Xiaomi_Sensor_unten) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 58:2D:34:10:4C:FA --char-read -a 0x3a 2>&1 /dev/null and loop 0
2019.10.12 00:18:56 5: XiaomiBTLESens (wz_Xiaomi_Sensor_unten) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,02 3b 00 14 00
2019.10.12 00:18:56 4: XiaomiBTLESens (wz_Xiaomi_Sensor_unten) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,02 3b 00 14 00
2019.10.12 00:18:56 5: XiaomiBTLESens (wz_Xiaomi_Sensor_unten) - ExecGatttool_Done: gatttool return string: wz_Xiaomi_Sensor_unten|58:2D:34:10:4C:FA|ok|read|0x3a|{"gtResult":"02 3b 00 14 00 "}
2019.10.12 00:18:56 4: XiaomiBTLESens (wz_Xiaomi_Sensor_unten) - ProcessingNotification
2019.10.12 00:18:56 4: XiaomiBTLESens (wz_Xiaomi_Sensor_unten) - WriteReadings: Readings were written
2019.10.12 08:04:32 4: XiaomiBTLESens (wz_Xiaomi_Sensor_unten) - Run CreateParamGatttool with mod: read
2019.10.12 08:04:32 5: XiaomiBTLESens (wz_Xiaomi_Sensor_unten) - Read XiaomiBTLESens_ExecGatttool_Run wz_Xiaomi_Sensor_unten|58:2D:34:10:4C:FA|read|0x1e
2019.10.12 08:04:32 5: XiaomiBTLESens (wz_Xiaomi_Sensor_unten) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 58:2D:34:10:4C:FA --char-read -a 0x1e 2>&1 /dev/null and loop 0
2019.10.12 08:04:39 5: XiaomiBTLESens (wz_Xiaomi_Sensor_unten) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,05 08 b2 00 88 02
2019.10.12 08:04:39 4: XiaomiBTLESens (wz_Xiaomi_Sensor_unten) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,05 08 b2 00 88 02
2019.10.12 08:04:39 5: XiaomiBTLESens (wz_Xiaomi_Sensor_unten) - ExecGatttool_Done: gatttool return string: wz_Xiaomi_Sensor_unten|58:2D:34:10:4C:FA|ok|read|0x1e|{"gtResult":"05 08 b2 00 88 02 "}
2019.10.12 08:04:39 4: XiaomiBTLESens (wz_Xiaomi_Sensor_unten) - ProcessingNotification
2019.10.12 08:04:39 4: XiaomiBTLESens (wz_Xiaomi_Sensor_unten) - ProcessingNotification: handle 0x1e
2019.10.12 08:04:39 4: XiaomiBTLESens (wz_Xiaomi_Sensor_unten) - Clear Grass Sens Handle0x1e
2019.10.12 08:04:39 4: XiaomiBTLESens (wz_Xiaomi_Sensor_unten) - WriteReadings: Readings were written
2019.10.12 08:08:10 3: XiaomiBTLESens (wz_Xiaomi_Sensor_unten) - defined with BTMAC 58:2D:34:10:4C:FA
2019.10.12 08:09:37 4: XiaomiBTLESens (wz_Xiaomi_Sensor_unten) - Run CreateParamGatttool with mod: read
2019.10.12 08:09:37 5: XiaomiBTLESens (wz_Xiaomi_Sensor_unten) - Read XiaomiBTLESens_ExecGatttool_Run wz_Xiaomi_Sensor_unten|58:2D:34:10:4C:FA|read|0x3a
2019.10.12 08:09:37 5: XiaomiBTLESens (wz_Xiaomi_Sensor_unten) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 58:2D:34:10:4C:FA --char-read -a 0x3a 2>&1 /dev/null and loop 0
2019.10.12 08:09:39 5: XiaomiBTLESens (wz_Xiaomi_Sensor_unten) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,02 3b 00 14 00
2019.10.12 08:09:39 4: XiaomiBTLESens (wz_Xiaomi_Sensor_unten) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,02 3b 00 14 00
2019.10.12 08:09:39 5: XiaomiBTLESens (wz_Xiaomi_Sensor_unten) - ExecGatttool_Done: gatttool return string: wz_Xiaomi_Sensor_unten|58:2D:34:10:4C:FA|ok|read|0x3a|{"gtResult":"02 3b 00 14 00 "}
2019.10.12 08:09:39 4: XiaomiBTLESens (wz_Xiaomi_Sensor_unten) - ProcessingNotification
2019.10.12 08:09:39 4: XiaomiBTLESens (wz_Xiaomi_Sensor_unten) - WriteReadings: Readings were written
Internals:
BTMAC 58:2D:34:10:4C:FA
CFGFN
DEF 58:2D:34:10:4C:FA
FUUID 5da1bc59-f33f-5bc8-2ca8-407cc6b85fdec1b0
INTERVAL 300
NAME wz_Xiaomi_Sensor_unten
NOTIFYDEV global,wz_Xiaomi_Sensor_unten
NR 3725
NTFY_ORDER 50-wz_Xiaomi_Sensor_unten
STATE T: 18.3 H: 68.2
TYPE XiaomiBTLESens
VERSION v2.7.60
loglevel 4
READINGS:
2019-10-12 13:43:43 batteryPercent 77
2019-10-12 13:43:43 batteryState ok
2019-10-12 13:43:31 firmware 1.1.2_0020
2019-10-12 13:43:43 humidity 68.2
2019-10-12 13:43:43 state T: 18.3 H: 68.2
2019-10-12 13:43:43 temperature 18.3
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1570880623.27938
updateTimestampCallBattery 2019-10-12 13:43:43
Attributes:
model clearGrassSens
room XiaomiBTLESens
pos = strpos(service_data,"205b04");
if (pos != -1){
trc(F("LYWSD02 data reading"));
//example "servicedata":"70205b04b96ab883c8593f09041002e000"
#ifdef ZmqttDiscovery
if(!isDiscovered(mac)) LYWSD02Discovery(mac);
#endif
process_sensors(pos - 24,service_data,mac);
}
[bluetooth]# info E7:2E:00:E2:74:D6
Device E7:2E:00:E2:74:D6
Name: LYWSD02
Alias: LYWSD02
Paired: no
Trusted: yes
Blocked: no
Connected: no
LegacyPairing: no
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: Device Information (0000180a-0000-1000-8000-00805f9b34fb)
UUID: Xiaomi Inc. (0000fe95-0000-1000-8000-00805f9b34fb)
UUID: Dialog Semiconductor GmbH (0000fef5-0000-1000-8000-00805f9b34fb)
UUID: Vendor specific (2b43ccc0-2506-415c-a16c-e4cc5f52ef78)
UUID: Vendor specific (aaaaaaa0-aaaa-aaaa-aaaa-aaaaaaaaaaaa)
UUID: Vendor specific (ebe0ccb0-7a0a-4b0c-8a1a-6ff2997da3a6)
UUID: Vendor specific (fafafa00-fafa-fafa-fafa-fafafafafafa)
ServiceData Key: 0000fe95-0000-1000-8000-00805f9b34fb
ServiceData Value: 0x70
ServiceData Value: 0x20
ServiceData Value: 0x5b
ServiceData Value: 0x04
ServiceData Value: 0x5d
ServiceData Value: 0xd6
ServiceData Value: 0x74
ServiceData Value: 0xe2
ServiceData Value: 0x00
ServiceData Value: 0x2e
ServiceData Value: 0xe7
ServiceData Value: 0x09
ServiceData Value: 0x06
ServiceData Value: 0x10
ServiceData Value: 0x02
ServiceData Value: 0xee
ServiceData Value: 0x02
70205b045dd674e2002ee709061002ee02
pos = strpos(service_data,"205b04");
70 205b04 5d d674e2002ee7 09061002ee02
205b04 = indikator für das Modell
d674e2002ee7 = reverse MAC -> E7:2E:00:E2:74:D6
70 = ???
5d = ???
09061002ee02 = ???
double value_from_service_data(char * service_data, int offset, int data_length){
char rev_data[data_length+1];
char data[data_length+1];
memcpy( rev_data, &service_data[offset], data_length );
rev_data[data_length] = '\0';
// reverse data order
revert_hex_data(rev_data, data, data_length+1);
double value = strtol(data, NULL, 16);
if (value > 65000 && data_length <= 4) value = value - 65535;
trc(value);
return value;
}
// Mi flora provides tem(perature), (earth) moi(sture), fer(tility) and lux (illuminance)
// Mi Jia provides tem(perature), batt(erry) and hum(idity)
// following the value of digit 47 we determine the type of data we get from the sensor
switch (rest_data[47 + offset]) {
case '9' :
BLEdata.set("fer", (double)value);
break;
case '4' :
BLEdata.set("tem", (double)value/10);
break;
case '6' :
BLEdata.set("hum", (double)value/10);
break;
case '7' :
BLEdata.set("lux", (double)value);
break;
case '8' :
BLEdata.set("moi", (double)value);
break;
case 'a' :
BLEdata.set("batt", (double)value);
break;
case 'd' :
// humidity
value = value_from_service_data(rest_data, 52 + offset, 4);
BLEdata.set("tem", (double)value/10);
// temperature
value = value_from_service_data(rest_data, 56 + offset, 4);
BLEdata.set("hum", (double)value/10);
break;
root@raspberrypi:~# bluetoothctl
[bluetooth]# info E7:2E:00:E2:74:D6
Device E7:2E:00:E2:74:D6
Name: LYWSD02
Alias: LYWSD02
Paired: no
Trusted: yes
Blocked: no
Connected: no
LegacyPairing: no
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: Device Information (0000180a-0000-1000-8000-00805f9b34fb)
UUID: Xiaomi Inc. (0000fe95-0000-1000-8000-00805f9b34fb)
UUID: Dialog Semiconductor GmbH (0000fef5-0000-1000-8000-00805f9b34fb)
UUID: Vendor specific (2b43ccc0-2506-415c-a16c-e4cc5f52ef78)
UUID: Vendor specific (aaaaaaa0-aaaa-aaaa-aaaa-aaaaaaaaaaaa)
UUID: Vendor specific (ebe0ccb0-7a0a-4b0c-8a1a-6ff2997da3a6)
UUID: Vendor specific (fafafa00-fafa-fafa-fafa-fafafafafafa)
ServiceData Key: 0000fe95-0000-1000-8000-00805f9b34fb
ServiceData Value: 0x70
ServiceData Value: 0x20
ServiceData Value: 0x5b
ServiceData Value: 0x04
ServiceData Value: 0x88
ServiceData Value: 0xd6
ServiceData Value: 0x74
ServiceData Value: 0xe2
ServiceData Value: 0x00
ServiceData Value: 0x2e
ServiceData Value: 0xe7
ServiceData Value: 0x09
ServiceData Value: 0x06
ServiceData Value: 0x10
ServiceData Value: 0x02
ServiceData Value: 0xa8
ServiceData Value: 0x02
[bluetooth]#
70 205b04 88 d674e2002ee7 0906 1002 a802
205b04 = signalisiert uns, dass es sich um das Modell LYWSD02 handelt
d674e2002ee7 = MAC umgedreht
0906 = die "6" bedeutet, dass sich in dieser ServiceData die Luftfeuchtigkeit befindet
A802 = 2A8 = 68% Luftfeuchtigkeit
[bluetooth]# info E7:2E:00:E2:74:D6
Device E7:2E:00:E2:74:D6
Name: LYWSD02
Alias: LYWSD02
Paired: no
Trusted: yes
Blocked: no
Connected: no
LegacyPairing: no
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: Device Information (0000180a-0000-1000-8000-00805f9b34fb)
UUID: Xiaomi Inc. (0000fe95-0000-1000-8000-00805f9b34fb)
UUID: Dialog Semiconductor GmbH (0000fef5-0000-1000-8000-00805f9b34fb)
UUID: Vendor specific (2b43ccc0-2506-415c-a16c-e4cc5f52ef78)
UUID: Vendor specific (aaaaaaa0-aaaa-aaaa-aaaa-aaaaaaaaaaaa)
UUID: Vendor specific (ebe0ccb0-7a0a-4b0c-8a1a-6ff2997da3a6)
UUID: Vendor specific (fafafa00-fafa-fafa-fafa-fafafafafafa)
ServiceData Key: 0000fe95-0000-1000-8000-00805f9b34fb
ServiceData Value: 0x70
ServiceData Value: 0x20
ServiceData Value: 0x5b
ServiceData Value: 0x04
ServiceData Value: 0x03
ServiceData Value: 0xd6
ServiceData Value: 0x74
ServiceData Value: 0xe2
ServiceData Value: 0x00
ServiceData Value: 0x2e
ServiceData Value: 0xe7
ServiceData Value: 0x09
ServiceData Value: 0x04
ServiceData Value: 0x10
ServiceData Value: 0x02
ServiceData Value: 0xd4
ServiceData Value: 0x00
70 205b04 03 d674e2002ee7 0904 1002 d400
205b04 = signalisiert uns, dass es sich um das Modell LYWSD02 handelt
d674e2002ee7 = MAC umgedreht
0904 = die "4" bedeutet, dass sich in dieser ServiceData die Temperatur befindet
d4 = 212 = 21.2°C
scan on
scan off
info MAC
in meinem Beispiel: info E7:2E:00:E2:74:D6
#my $serviceData = '70205b0488d674e2002ee709061002a802'; #Luftfeuchtigkeit
my $serviceData = '70205b0403d674e2002ee709041002d400'; #Temperatur
# pruefe, ob es sich bei dem Modell um einen LYWSD02 handel
if (substr($serviceData,2,6) eq '205b04')
{ # pruefe, welcher Wert sich in der ServiceData befindet
# 4 = Temperatur
# 6 = Luftfeuchtigkeit
if (substr($serviceData, 25, 1) eq '4')
{ my $temperatur = substr($serviceData,30,2);
print hex($temperatur)/10;
}
elsif (substr($serviceData, 25, 1) eq '6')
{ my $humidity = substr($serviceData,32,2) .substr($serviceData,30,2);
print hex($humidity)/10;
}
}
root@raspberrypi:~# gatttool -b E7:2E:00:E2:74:D6 --char-read -a 0x14
Characteristic value/descriptor: 31 2e 31 2e 32 5f 30 30 34 32
Übersetzt nach ASCII: 1.1.2_0042
root@raspberrypi:~# gatttool -b E7:2E:00:E2:74:D6 --char-read -a 0x0c
Characteristic value/descriptor: 6d 69 61 6f 6d 69 61 6f 63 65 2e 63 6f 6d
Übersetzt nach ASCII: miaomiaoce.com
root@raspberrypi:~# gatttool -b E7:2E:00:E2:74:D6 --char-read -a 0x0e
Characteristic value/descriptor: 4c 59 57 53 44 30 32
Übersetzt nach ASCII: LYWSD02
root@raspberrypi:~# gatttool -b E7:2E:00:E2:74:D6 --char-read -a 0x3e
Characteristic value/descriptor: db f6 a5 5d 02
Inverted: 5da5f6db
Ergebnis: 15.10.2019 18.42.3
Quellcode zum umwandeln des inverted Hex-Wertes
my $string = '5da5f6db';
my $time = hex($string);
my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = localtime( $time );
$mon += 1;
$year += 1900;
printf "%s.%s.%s %s.%s.%s\n", $mday, $mon, $year, $hour, $min, $sec;
Zitat von: t1me2die am 15 Oktober 2019, 18:34:21
So Leon, ich bin soweit...
Schlechte Nachricht, via gatttool kam ich diesmal nicht so recht an die Daten, dafür aber mit "bluetoothctl"
Das Modell "LYWSD02" speichert seine Werte für Temperatur und Luftfeuchtigkeit in einer Servicedata.
Wie erhalte ich die Servicedata?Code Auswählen
root@raspberrypi:~# bluetoothctl
[bluetooth]# info E7:2E:00:E2:74:D6
Device E7:2E:00:E2:74:D6
Name: LYWSD02
Alias: LYWSD02
Paired: no
Trusted: yes
Blocked: no
Connected: no
LegacyPairing: no
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: Device Information (0000180a-0000-1000-8000-00805f9b34fb)
UUID: Xiaomi Inc. (0000fe95-0000-1000-8000-00805f9b34fb)
UUID: Dialog Semiconductor GmbH (0000fef5-0000-1000-8000-00805f9b34fb)
UUID: Vendor specific (2b43ccc0-2506-415c-a16c-e4cc5f52ef78)
UUID: Vendor specific (aaaaaaa0-aaaa-aaaa-aaaa-aaaaaaaaaaaa)
UUID: Vendor specific (ebe0ccb0-7a0a-4b0c-8a1a-6ff2997da3a6)
UUID: Vendor specific (fafafa00-fafa-fafa-fafa-fafafafafafa)
ServiceData Key: 0000fe95-0000-1000-8000-00805f9b34fb
ServiceData Value: 0x70
ServiceData Value: 0x20
ServiceData Value: 0x5b
ServiceData Value: 0x04
ServiceData Value: 0x88
ServiceData Value: 0xd6
ServiceData Value: 0x74
ServiceData Value: 0xe2
ServiceData Value: 0x00
ServiceData Value: 0x2e
ServiceData Value: 0xe7
ServiceData Value: 0x09
ServiceData Value: 0x06
ServiceData Value: 0x10
ServiceData Value: 0x02
ServiceData Value: 0xa8
ServiceData Value: 0x02
[bluetooth]#
Hier siehst du ganz viele ServiceData Value, zum besseren Verständnis:Code Auswählen
70 205b04 88 d674e2002ee7 0906 1002 a802
205b04 = signalisiert uns, dass es sich um das Modell LYWSD02 handelt
d674e2002ee7 = MAC umgedreht
0906 = die "6" bedeutet, dass sich in dieser ServiceData die Luftfeuchtigkeit befindet
A802 = 2A8 = 68% Luftfeuchtigkeit
So, jetzt benötigen wir noch die Temperatur, diese befindet sich auch in einer ServiceData.Code Auswählen
[bluetooth]# info E7:2E:00:E2:74:D6
Device E7:2E:00:E2:74:D6
Name: LYWSD02
Alias: LYWSD02
Paired: no
Trusted: yes
Blocked: no
Connected: no
LegacyPairing: no
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: Device Information (0000180a-0000-1000-8000-00805f9b34fb)
UUID: Xiaomi Inc. (0000fe95-0000-1000-8000-00805f9b34fb)
UUID: Dialog Semiconductor GmbH (0000fef5-0000-1000-8000-00805f9b34fb)
UUID: Vendor specific (2b43ccc0-2506-415c-a16c-e4cc5f52ef78)
UUID: Vendor specific (aaaaaaa0-aaaa-aaaa-aaaa-aaaaaaaaaaaa)
UUID: Vendor specific (ebe0ccb0-7a0a-4b0c-8a1a-6ff2997da3a6)
UUID: Vendor specific (fafafa00-fafa-fafa-fafa-fafafafafafa)
ServiceData Key: 0000fe95-0000-1000-8000-00805f9b34fb
ServiceData Value: 0x70
ServiceData Value: 0x20
ServiceData Value: 0x5b
ServiceData Value: 0x04
ServiceData Value: 0x03
ServiceData Value: 0xd6
ServiceData Value: 0x74
ServiceData Value: 0xe2
ServiceData Value: 0x00
ServiceData Value: 0x2e
ServiceData Value: 0xe7
ServiceData Value: 0x09
ServiceData Value: 0x04
ServiceData Value: 0x10
ServiceData Value: 0x02
ServiceData Value: 0xd4
ServiceData Value: 0x00
Hier siehst du ganz viele ServiceData Value, zum besseren Verständnis:Code Auswählen
70 205b04 03 d674e2002ee7 0904 1002 d400
205b04 = signalisiert uns, dass es sich um das Modell LYWSD02 handelt
d674e2002ee7 = MAC umgedreht
0904 = die "4" bedeutet, dass sich in dieser ServiceData die Temperatur befindet
d4 = 212 = 21.2°C
Um diese Werte zu erhalten, muss man innerhalb von "bluetoothctl" den BefehlCode Auswählenscan on
starten. Nach kurzer Zeit 1-2Sekunden trudeln dann die aktuellen info's von sämtlichen Devices auf.
Mit einemCode Auswählenscan off
hält man den Vorgang an und schaut sich danach die Werte von dem gewünschten Device viaCode Auswähleninfo MAC
in meinem Beispiel: info E7:2E:00:E2:74:D6
an. Nun bastelt man sich die ServiceData zusammen und schaut auf folgende Stellen:Code Auswählen
#my $serviceData = '70205b0488d674e2002ee709061002a802'; #Luftfeuchtigkeit
my $serviceData = '70205b0403d674e2002ee709041002d400'; #Temperatur
# pruefe, ob es sich bei dem Modell um einen LYWSD02 handel
if (substr($serviceData,2,6) eq '205b04')
{ # pruefe, welcher Wert sich in der ServiceData befindet
# 4 = Temperatur
# 6 = Luftfeuchtigkeit
if (substr($serviceData, 25, 1) eq '4')
{ my $temperatur = substr($serviceData,30,2);
print hex($temperatur)/10;
}
elsif (substr($serviceData, 25, 1) eq '6')
{ my $humidity = substr($serviceData,32,2) .substr($serviceData,30,2);
print hex($humidity)/10;
}
}
Mit folgendem handle bekommst du die Firmware:Code Auswählen
root@raspberrypi:~# gatttool -b E7:2E:00:E2:74:D6 --char-read -a 0x14
Characteristic value/descriptor: 31 2e 31 2e 32 5f 30 30 34 32
Übersetzt nach ASCII: 1.1.2_0042
Mit folgendem handle bekommst du den Hersteller:Code Auswählen
root@raspberrypi:~# gatttool -b E7:2E:00:E2:74:D6 --char-read -a 0x0c
Characteristic value/descriptor: 6d 69 61 6f 6d 69 61 6f 63 65 2e 63 6f 6d
Übersetzt nach ASCII: miaomiaoce.com
Mit folgendem handle bekommst du das Modell:Code Auswählen
root@raspberrypi:~# gatttool -b E7:2E:00:E2:74:D6 --char-read -a 0x0e
Characteristic value/descriptor: 4c 59 57 53 44 30 32
Übersetzt nach ASCII: LYWSD02
Mit folgendem handle bekommst du die Uhrzeit + Datum:Code Auswählen
root@raspberrypi:~# gatttool -b E7:2E:00:E2:74:D6 --char-read -a 0x3e
Characteristic value/descriptor: db f6 a5 5d 02
Inverted: 5da5f6db
Ergebnis: 15.10.2019 18.42.3
my $string = '5da5f6db';
my $time = hex($string);
my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) =
localtime( $time );
$mon += 1;
$year += 1900;
printf "%s.%s.%s %s.%s.%s\n", $mday, $mon, $year, $hour, $min, $sec;
So, nun die Frage, möchtest du das in deinem Modul hinzu programmieren oder soll ich versuchen daraus ein eigenes Modul zu gießen?
Der Ablauf bzgl. "bluetoothctl" ist ja schon ein anderer, wie du ihn z.Z. machst.
Gruß
Mathze
{ myUtils_LYWSD02_main("E7:2E:00:E2:74:D6") }
2019.10.16 16:05:28 1: Temperatur : 19.2 Grad
2019.10.16 16:06:02 1: Luftfeuchtigkeit: 74 %
use IPC::Open2;
use IO::Select;
2019.10.16 16:49:41 1: Start der Routine
2019.10.16 16:49:41 1: Mac -> E7:2E:00:E2:74:D6
2019.10.16 16:49:41 1: ARGV -> scan on scan off quit
2019.10.16 16:49:55 1: Temperatur : 19.2 Grad
2019.10.16 16:49:58 1: Luftfeuchtigkeit: 74 %
2019.10.16 16:54:55 1: ERROR evaluating {FHEM::XiaomiBTLESens::ExecGatttool_Done('wz_Flower_Sensor_Schefflera|C4:7C:8D:6A:39:7E|ok|read|0x35|{"gtResult":"aa bb cc dd ee ff 99 88 77 66 00 00 00 00 00 00 "}')}: Can't use string ("1") as a HASH ref while "strict refs" in use at ./FHEM/74_XiaomiBTLESens.pm line 1163.
Internals:
BTMAC E7:2E:00:E2:74:D6
CFGFN
DEF E7:2E:00:E2:74:D6
FUUID 5da765ad-f33f-5bc8-54c2-a012f4788159ef04
INTERVAL 300
NAME wz_Xiaomi_eInk
NR 57
NTFY_ORDER 50-wz_Xiaomi_eInk
STATE T: 19.3 H: 74
TYPE XiaomiEInk
VERSION v0.1.0
loglevel 4
READINGS:
2019-10-16 21:37:19 humidity 74
2019-10-16 21:37:19 state T: 19.3 H: 74
2019-10-16 21:37:19 temperature 19.3
Attributes:
room XiaomiEInk
root@raspberrypi:/usr/local/lib/python3.5/dist-packages/bluepy# python btle.py E7:2E:00:E2:74:D6
Connecting to: E7:2E:00:E2:74:D6, address type: public
Service <uuid=Generic Access handleStart=1 handleEnd=5> :
Characteristic <Device Name>, hnd=0x2, supports READ
-> 'LYWSD02'
Characteristic <Appearance>, hnd=0x4, supports READ
-> '\x00\x00'
Service <uuid=fef5 handleStart=25 handleEnd=44> :
Characteristic <8082caa8-41a6-4021-91c6-56f9b954cc34>, hnd=0x1a, supports READ WRITE
-> ''
Characteristic <724249f0-5ec3-4b5f-8804-42345af08651>, hnd=0x1c, supports READ WRITE
-> ''
Characteristic <6c53db25-47a1-45fe-a022-7c92fb334fd4>, hnd=0x1e, supports READ
-> ''
Characteristic <9d84b9a3-000c-49d8-9183-855b673fda31>, hnd=0x20, supports READ WRITE
-> ''
Characteristic <457871e8-d516-4ca1-9116-57d0b17b9cb2>, hnd=0x22, supports READ WRITE NO RESPONSE WRITE
-> ''
Characteristic <5f78df94-798c-46f5-990a-b3eb6a065c88>, hnd=0x24, supports NOTIFY READ
-> '\x00'
Characteristic <64b4e8b5-0de5-401b-a21d-acc8db3b913a>, hnd=0x27, supports READ
-> '\r'
Characteristic <42c3dfdd-77be-4d9c-8454-8f875267fb3b>, hnd=0x29, supports READ
-> '\xf4\x00'
Characteristic <b7de1eea-823d-43bb-a3af-c4903dfce23c>, hnd=0x2b, supports READ
-> '\x17\x00'
Service <uuid=fe95 handleStart=97 handleEnd=114> :
Characteristic <0001>, hnd=0x62, supports NOTIFY WRITE
Characteristic <0002>, hnd=0x65, supports READ
-> '[\x04'
Characteristic <0004>, hnd=0x67, supports READ
-> '\xf7.\\R\xa6OFl\x1b/'
Characteristic <0005>, hnd=0x69, supports NOTIFY WRITE
Characteristic <0010>, hnd=0x6c, supports WRITE
Characteristic <0013>, hnd=0x6e, supports READ WRITE
-> '\xc6b\x01\x08\xba#Xm\x1ep\x1c\xe2)\xf8\xae\xc1\x90F\xe5\xc1'
Characteristic <0014>, hnd=0x70, supports READ
-> '\xeb\x1e\xe0\xbd\xe9\x96\x1eUW\xa6\x12\xc6'
Service <uuid=Generic Attribute handleStart=6 handleEnd=9> :
Characteristic <Service Changed>, hnd=0x7, supports READ INDICATE
-> '\x01\x00\xff\xff'
Service <uuid=ebe0ccb0-7a0a-4b0c-8a1a-6ff2997da3a6 handleStart=60 handleEnd=90> :
Characteristic <ebe0ccb7-7a0a-4b0c-8a1a-6ff2997da3a6>, hnd=0x3d, supports READ WRITE NO RESPONSE WRITE
-> '\xe1d\xa8]\x02'
Characteristic <ebe0ccb9-7a0a-4b0c-8a1a-6ff2997da3a6>, hnd=0x3f, supports READ
-> '\xf7\x01\x00\x00\xf8\x01\x00\x00'
Characteristic <ebe0ccba-7a0a-4b0c-8a1a-6ff2997da3a6>, hnd=0x41, supports READ WRITE NO RESPONSE WRITE
-> '\xb5\x01\x00\x00'
Characteristic <ebe0ccbb-7a0a-4b0c-8a1a-6ff2997da3a6>, hnd=0x43, supports READ
-> '\x00\x00\x00\x00\xa0\xdbS]\xf1\n;\xe6\n;\x00\x00'
Characteristic <ebe0ccbc-7a0a-4b0c-8a1a-6ff2997da3a6>, hnd=0x45, supports NOTIFY READ
-> ''
Characteristic <ebe0ccbe-7a0a-4b0c-8a1a-6ff2997da3a6>, hnd=0x48, supports READ WRITE NO RESPONSE WRITE
-> '\xff'
Characteristic <ebe0ccc1-7a0a-4b0c-8a1a-6ff2997da3a6>, hnd=0x4a, supports NOTIFY READ
-> ''
Characteristic <ebe0ccc2-7a0a-4b0c-8a1a-6ff2997da3a6>, hnd=0x4d, supports READ WRITE NO RESPONSE WRITE
-> '\x9b'
Characteristic <ebe0ccc3-7a0a-4b0c-8a1a-6ff2997da3a6>, hnd=0x4f, supports READ WRITE NO RESPONSE WRITE
-> '\x00\xff\x00\xff\x00\xff'
Characteristic <ebe0ccc4-7a0a-4b0c-8a1a-6ff2997da3a6>, hnd=0x51, supports READ
-> '%'
Characteristic <ebe0ccc8-7a0a-4b0c-8a1a-6ff2997da3a6>, hnd=0x53, supports WRITE NO RESPONSE WRITE
Characteristic <ebe0ccd2-7a0a-4b0c-8a1a-6ff2997da3a6>, hnd=0x55, supports READ WRITE NO RESPONSE WRITE
-> '\n7198238426'
Characteristic <ebe0ccd3-7a0a-4b0c-8a1a-6ff2997da3a6>, hnd=0x57, supports READ WRITE NO RESPONSE WRITE
-> '\x00'
Characteristic <ebe0ccd4-7a0a-4b0c-8a1a-6ff2997da3a6>, hnd=0x59, supports WRITE NO RESPONSE WRITE
Service <uuid=2b43ccc0-2506-415c-a16c-e4cc5f52ef78 handleStart=45 handleEnd=59> :
Characteristic <2b43ccc1-2506-415c-a16c-e4cc5f52ef78>, hnd=0x2e, supports READ
-> '\xfe\xfe\xfe\xfe\xfe\xfe'
Characteristic <2b43ccc2-2506-415c-a16c-e4cc5f52ef78>, hnd=0x30, supports NOTIFY WRITE NO RESPONSE WRITE
Characteristic <2b43ccc3-2506-415c-a16c-e4cc5f52ef78>, hnd=0x33, supports WRITE NO RESPONSE WRITE
Characteristic <2b43ccc4-2506-415c-a16c-e4cc5f52ef78>, hnd=0x35, supports WRITE NO RESPONSE WRITE
Characteristic <2b43ccc5-2506-415c-a16c-e4cc5f52ef78>, hnd=0x37, supports NOTIFY
Characteristic <2b43ccc6-2506-415c-a16c-e4cc5f52ef78>, hnd=0x3a, supports WRITE NO RESPONSE WRITE
Service <uuid=Device Information handleStart=10 handleEnd=24> :
Characteristic <Manufacturer Name String>, hnd=0xb, supports READ
-> 'miaomiaoce.com'
Characteristic <Model Number String>, hnd=0xd, supports READ
-> 'LYWSD02'
Characteristic <Serial Number String>, hnd=0xf, supports READ
-> 'F200FFFF036430515D'
Characteristic <Hardware Revision String>, hnd=0x11, supports READ
-> 'F2_WF'
Characteristic <Firmware Revision String>, hnd=0x13, supports READ
-> '1.1.2_0042'
Characteristic <Software Revision String>, hnd=0x15, supports READ
-> '0042'
Characteristic <System ID>, hnd=0x17, supports READ
-> '\xd6t\xe2\x00.\xe7'
Service <uuid=fafafa00-fafa-fafa-fafa-fafafafafafa handleStart=94 handleEnd=96> :
Characteristic <fafafa01-fafa-fafa-fafa-fafafafafafa>, hnd=0x5f, supports READ WRITE NO RESPONSE WRITE
-> ''
Service <uuid=aaaaaaa0-aaaa-aaaa-aaaa-aaaaaaaaaaaa handleStart=91 handleEnd=93> :
Characteristic <aaaaaaa1-aaaa-aaaa-aaaa-aaaaaaaaaaaa>, hnd=0x5c, supports READ WRITE NO RESPONSE WRITE
-> ''
Internals:
BTMAC E7:2E:00:E2:74:D6
CFGFN
DEF E7:2E:00:E2:74:D6
FUUID 5da96bdb-f33f-5bc8-2f02-2c9317f0abd6372b
INTERVAL 300
NAME wz_Xiaomi_eInk
NOTIFYDEV global,wz_Xiaomi_eInk
NR 2055
NTFY_ORDER 50-wz_Xiaomi_eInk
STATE T: 18.8 H: 74
TYPE XiaomiEInk
VERSION v0.0.2
loglevel 4
READINGS:
2019-10-18 09:43:08 clock 18.10.2019-09.43.10
2019-10-18 09:44:59 humidity 74
2019-10-18 09:44:59 job done
2019-10-18 09:38:52 model LYWSD02
2019-10-18 09:44:59 state T: 18.8 H: 74
2019-10-18 09:40:05 temperature 18.8
helper:
Attributes:
room XiaomiEInk
Zitat von: t1me2die am 04 November 2019, 13:19:35
Mal eine kurze Rückmeldung meinerseits.
Etwas Zeit ist vergangen, der Xiaomi ClearGrass Sensor läuft gewohnt gut.
Temperatur und Luftfeuchtigkeit passen.
Für BatteryPercent lege ich meine Hand nicht ins Feuer (bei mir könnte es passen).
Ich denke du kannst es ins SVN einchecken, falls noch nicht geschehen (ich hab es ja nicht so mit regelmäßigen Updates ;D )
Gruß
Mathze
Zitat von: t1me2die am 04 November 2019, 14:51:54
Moin Leon,
es geht gar nicht um das Xiaomi LYWSD02, sondern um den Xiaomi ClearGrass, den du ja in deinem Modul integriert hast.
Ich wollte Dir nur noch einmal ein Feedback geben, dass der ClearGrass mit deiner letzten Version aus dem Github (https://github.com/fhem/XiaomiBTLESens/blob/devel/74_XiaomiBTLESens.pm) gut läuft und die Daten (Temp + Hum) korrekt in FHEM dargestellt werden.
Gruß
Mathze
Zitat von: KernSani am 04 Januar 2020, 10:55:13
Ich steuere die Gartenbewässerun über die Dinger (d.h. Für mich sind eigentlich nur die Feuchtigkeitswerte relevant). Ein Pi Zero hängt in der Garage, von dort sind es grob geschätzt 6 - 7m zum Sensor. Da gibt es ab und zu Aussetzer, aber die Feuchtigkeit ändert sich ja nicht alle 10 Minuten... Ich habe noch weitere Sensoren, die näher liegen (insbesondere nicht das WLAN-Reichweiten-Problem haben), da gibt es nur sporadisch Fehler.
Kurz, weil mobil
Zitat von: KernSani am 04 Januar 2020, 10:29:57
Ich habe den Fehler regelmäßig (merfach täglich). Ich führe ihn datauf zurück, dass der Pi-zero über den ich den XIAOMI ansteuere an der Grenze der WLAN-Reichweite hängt und der Sensor auch nicht herade nah am Pi ist... Irgendwo verschluckt er sich dann manchmal auf der Strecke... Macht aber - zumindest bei mir - nix.
Zitat von: Pati_Alpha am 05 Januar 2020, 12:09:57
Habt ihr da Tipps zu?
defmod GATKILL DOIF ([$SELF:"on"]) ("kill $(ps aux | grep gatttool | awk '{print $2}')") (set $SELF off)
attr GATKILL alias ( Bluetooth Reset )
attr GATKILL devStateIcon cmd_1_1:remotecontrol/black_btn_RAD .*:remotecontrol/black_btn_STOP
attr GATKILL do always
attr GATKILL group 1
attr GATKILL icon hue_room_garage
attr GATKILL room FlowerSens
attr GATKILL setList on off
attr GATKILL wait 0,3
attr GATKILL webCmd :
define Supervision ReadingsSupervision
attr MI_Pflanze_xxx Supervision 8000,9999,temperature,moisture,fertility
Zitat von: Pati_Alpha am 06 Januar 2020, 15:23:52
Geil, das sieht ja mal cool aus! Grade die Sache mit dem ReadingsSupervision Modul. Ich glaube das übernehme ich.
Wunderlich ist bei mir nur: Der Sensor ist so.. 1,5m vom RPi entfernt auf der Fensterbank... :/
Aber dumme Frage dazu nochmal: Das gattool läuft auf dem Gerät mit Bluetooth (dem Raspberry), nicht auf dem Gerät auf dem FHEM läuft (die virtuelle Maschine), richtig?
2020.01.06 20:44:31 1: PERL WARNING: Use of uninitialized value $gtResult[0] in string ne at /opt/fhem/FHEM/74_XiaomiBTLESens.pm line 753.
2020.01.06 20:43:32 5: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 4C:65:A8:DB:8D:DA --char-read -a 0x18 2>&1 and loop 0
2020.01.06 20:43:47 5: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,5d
2020.01.06 20:43:47 4: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,5d
2020.01.06 20:43:47 5: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - ExecGatttool_Done: gatttool return string: Xiaomi_Sensor_Bad_aussen|4C:65:A8:DB:8D:DA|ok|read|0x18|{"gtResult":"5d "}
2020.01.06 20:43:47 4: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - ProcessingNotification
2020.01.06 20:43:47 4: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - ProcessingNotification: handle 0x18
2020.01.06 20:43:47 4: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - Thermo/Hygro Sens Handle0x18
2020.01.06 20:43:47 4: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - WriteReadings: Readings were written
2020.01.06 20:43:47 4: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - Run CreateParamGatttool with mod: write
2020.01.06 20:43:47 5: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - Write XiaomiBTLESens_ExecGatttool_Run Xiaomi_Sensor_Bad_aussen|4C:65:A8:DB:8D:DA|write|0x10|0100
2020.01.06 20:43:47 5: Execute Command: $psCommand | grep -E "$gatttoolCmdlineStaticEscaped"
2020.01.06 20:43:47 5: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:DB:8D:DA --char-write-req -a 0x10 -n 0100 --listen 2>&1 and loop 0
2020.01.06 20:43:57 5: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 30 2e 34 20 48 3d 35 35 2e 31 00
Notification handle = 0x000e value,54 3d 32 30 2e 35 20 48 3d 35 34 2e 38 00
Notification handle = 0x000e value,54 3d 32 30 2e 34 20 48 3d 35 35 2e 31 00
Notification handle = 0x000e value,54 3d 32 30 2e 35 20 48 3d 35 34 2e 38 00
Notification handle = 0x000e value,54 3d 32 30 2e 34 20 48 3d 35 35 2e 30 00
Notification handle = 0x000e value,54 3d 32 30 2e 35 20 48 3d 35 34 2e 38 00
Notification handle = 0x000e value,54 3d 32 30 2e 34 20 48 3d 35 35 2e 31 00
Notification handle = 0x000e value,54 3d 32 30 2e 35 20 48 3d 35 34 2e 38 00
Notification handle = 0x000e value,54 3d 32 30 2e 34 20 48 3d 35 35 2e 31 00
Notification handle = 0x000e value,54 3d 32 30 2e 35 20 48 3d 35 34 2e 38 00
Notification handle = 0x000e value,54 3d 32 30 2e 35 20 48 3d 35 35 2e 33 00
Notification handle = 0x000e value,54 3d 32 30 2e 36 20 48 3d 35 34 2e 38 00
2020.01.06 20:43:57 5: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:DB:8D:DA --char-write-req -a 0x10 -n 0100 --listen 2>&1 and loop 1
2020.01.06 20:44:07 5: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - ExecGatttool_Run: gatttool loop result
2020.01.06 20:44:07 5: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:DB:8D:DA --char-write-req -a 0x10 -n 0100 --listen 2>&1 and loop 2
2020.01.06 20:44:17 5: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - ExecGatttool_Run: gatttool loop result
2020.01.06 20:44:17 5: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:DB:8D:DA --char-write-req -a 0x10 -n 0100 --listen 2>&1 and loop 3
2020.01.06 20:44:27 5: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 30 2e 35 20 48 3d 35 34 2e 37 00
Notification handle = 0x000e value,54 3d 32 30 2e 35 20 48 3d 35 35 2e 31 00
Notification handle = 0x000e value,54 3d 32 30 2e 36 20 48 3d 35 34 2e 38 00
Notification handle = 0x000e value,54 3d 32 30 2e 35 20 48 3d 35 35 2e 30 00
Notification handle = 0x000e value,54 3d 32 30 2e 35 20 48 3d 35 34 2e 38 00
Notification handle = 0x000e value,54 3d 32 30 2e 35 20 48 3d 35 35 2e 31 00
Notification handle = 0x000e value,54 3d 32 30 2e 36 20 48 3d 35 34 2e 38 00
Notification handle = 0x000e value,54 3d 32 30 2e 35 20 48 3d 35 34 2e 38 00
2020.01.06 20:44:27 5: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:DB:8D:DA --char-write-req -a 0x10 -n 0100 --listen 2>&1 and loop 4
2020.01.06 20:44:31 1: PERL WARNING: Use of uninitialized value $gtResult[0] in string ne at /opt/fhem/FHEM/74_XiaomiBTLESens.pm line 753.
Zitat von: Pati_Alpha am 06 Januar 2020, 15:23:52
Geil, das sieht ja mal cool aus! Grade die Sache mit dem ReadingsSupervision Modul.
Zitat von: KyleK am 06 Januar 2020, 21:19:41
Seit dem letzten Update habe ich eine Perl-Warnung im Log, die immer wieder auftaucht (ich habe insgesamt 5 ThermoHygrometer laufen):Code Auswählen
2020.01.06 20:44:31 1: PERL WARNING: Use of uninitialized value $gtResult[0] in string ne at /opt/fhem/FHEM/74_XiaomiBTLESens.pm line 753.
Hier ist das Log eines Devices mit verbose = 5:Code Auswählen
2020.01.06 20:43:32 5: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 4C:65:A8:DB:8D:DA --char-read -a 0x18 2>&1 and loop 0
2020.01.06 20:43:47 5: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,5d
2020.01.06 20:43:47 4: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,5d
2020.01.06 20:43:47 5: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - ExecGatttool_Done: gatttool return string: Xiaomi_Sensor_Bad_aussen|4C:65:A8:DB:8D:DA|ok|read|0x18|{"gtResult":"5d "}
2020.01.06 20:43:47 4: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - ProcessingNotification
2020.01.06 20:43:47 4: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - ProcessingNotification: handle 0x18
2020.01.06 20:43:47 4: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - Thermo/Hygro Sens Handle0x18
2020.01.06 20:43:47 4: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - WriteReadings: Readings were written
2020.01.06 20:43:47 4: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - Run CreateParamGatttool with mod: write
2020.01.06 20:43:47 5: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - Write XiaomiBTLESens_ExecGatttool_Run Xiaomi_Sensor_Bad_aussen|4C:65:A8:DB:8D:DA|write|0x10|0100
2020.01.06 20:43:47 5: Execute Command: $psCommand | grep -E "$gatttoolCmdlineStaticEscaped"
2020.01.06 20:43:47 5: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:DB:8D:DA --char-write-req -a 0x10 -n 0100 --listen 2>&1 and loop 0
2020.01.06 20:43:57 5: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 30 2e 34 20 48 3d 35 35 2e 31 00
Notification handle = 0x000e value,54 3d 32 30 2e 35 20 48 3d 35 34 2e 38 00
Notification handle = 0x000e value,54 3d 32 30 2e 34 20 48 3d 35 35 2e 31 00
Notification handle = 0x000e value,54 3d 32 30 2e 35 20 48 3d 35 34 2e 38 00
Notification handle = 0x000e value,54 3d 32 30 2e 34 20 48 3d 35 35 2e 30 00
Notification handle = 0x000e value,54 3d 32 30 2e 35 20 48 3d 35 34 2e 38 00
Notification handle = 0x000e value,54 3d 32 30 2e 34 20 48 3d 35 35 2e 31 00
Notification handle = 0x000e value,54 3d 32 30 2e 35 20 48 3d 35 34 2e 38 00
Notification handle = 0x000e value,54 3d 32 30 2e 34 20 48 3d 35 35 2e 31 00
Notification handle = 0x000e value,54 3d 32 30 2e 35 20 48 3d 35 34 2e 38 00
Notification handle = 0x000e value,54 3d 32 30 2e 35 20 48 3d 35 35 2e 33 00
Notification handle = 0x000e value,54 3d 32 30 2e 36 20 48 3d 35 34 2e 38 00
2020.01.06 20:43:57 5: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:DB:8D:DA --char-write-req -a 0x10 -n 0100 --listen 2>&1 and loop 1
2020.01.06 20:44:07 5: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - ExecGatttool_Run: gatttool loop result
2020.01.06 20:44:07 5: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:DB:8D:DA --char-write-req -a 0x10 -n 0100 --listen 2>&1 and loop 2
2020.01.06 20:44:17 5: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - ExecGatttool_Run: gatttool loop result
2020.01.06 20:44:17 5: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:DB:8D:DA --char-write-req -a 0x10 -n 0100 --listen 2>&1 and loop 3
2020.01.06 20:44:27 5: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 32 30 2e 35 20 48 3d 35 34 2e 37 00
Notification handle = 0x000e value,54 3d 32 30 2e 35 20 48 3d 35 35 2e 31 00
Notification handle = 0x000e value,54 3d 32 30 2e 36 20 48 3d 35 34 2e 38 00
Notification handle = 0x000e value,54 3d 32 30 2e 35 20 48 3d 35 35 2e 30 00
Notification handle = 0x000e value,54 3d 32 30 2e 35 20 48 3d 35 34 2e 38 00
Notification handle = 0x000e value,54 3d 32 30 2e 35 20 48 3d 35 35 2e 31 00
Notification handle = 0x000e value,54 3d 32 30 2e 36 20 48 3d 35 34 2e 38 00
Notification handle = 0x000e value,54 3d 32 30 2e 35 20 48 3d 35 34 2e 38 00
2020.01.06 20:44:27 5: XiaomiBTLESens (Xiaomi_Sensor_Bad_aussen) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:DB:8D:DA --char-write-req -a 0x10 -n 0100 --listen 2>&1 and loop 4
2020.01.06 20:44:31 1: PERL WARNING: Use of uninitialized value $gtResult[0] in string ne at /opt/fhem/FHEM/74_XiaomiBTLESens.pm line 753.
Was auffällig ist, dass er mit dem neuen Code scheinbar 5-mal durch die do-while-Schleife läuft, während das mit der vorherigen Version nicht so war.
2020.01.08 23:43:56 4: XiaomiBTLESens (Xiaomi_Sensor_Flur) - Run CreateParamGatttool with mod: write
2020.01.08 23:43:57 5: XiaomiBTLESens (Xiaomi_Sensor_Flur) - Write XiaomiBTLESens_ExecGatttool_Run Xiaomi_Sensor_Flur|4C:65:A8:D5:7A:AD|write|0x10|0100
2020.01.08 23:43:57 5: XiaomiBTLESens (Xiaomi_Sensor_Flur) - ExecGatttool_Run: Execute Command ps ax | grep -E [g]atttool -i hci0 -b 4C:65:A8:D5:7A:AD
2020.01.08 23:43:57 5: XiaomiBTLESens (Xiaomi_Sensor_Flur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:7A:AD --char-write-req -a 0x10 -n 0100 --listen 2>&1 and loop 0
2020.01.08 23:44:07 5: XiaomiBTLESens (Xiaomi_Sensor_Flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 31 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 32 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 33 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 32 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 33 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 30 2e 39 00
Notification handle = 0x000e value,54 3d 31 39 2e 37 20 48 3d 35 31 2e 32 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 34 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 31 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 33 00
2020.01.08 23:44:07 5: XiaomiBTLESens (Xiaomi_Sensor_Flur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:7A:AD --char-write-req -a 0x10 -n 0100 --listen 2>&1 and loop 1
2020.01.08 23:44:17 5: XiaomiBTLESens (Xiaomi_Sensor_Flur) - ExecGatttool_Run: gatttool loop result Characteristic Write Request failed,Request attribute has encountered an unlikely error
2020.01.08 23:44:17 5: XiaomiBTLESens (Xiaomi_Sensor_Flur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:7A:AD --char-write-req -a 0x10 -n 0100 --listen 2>&1 and loop 2
2020.01.08 23:44:27 5: XiaomiBTLESens (Xiaomi_Sensor_Flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 33 00
Notification handle = 0x000e value,54 3d 31 39 2e 39 20 48 3d 35 31 2e 32 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 33 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 34 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 32 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 33 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 34 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 32 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 33 00
2020.01.08 23:44:27 5: XiaomiBTLESens (Xiaomi_Sensor_Flur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:7A:AD --char-write-req -a 0x10 -n 0100 --listen 2>&1 and loop 3
2020.01.08 23:44:37 5: XiaomiBTLESens (Xiaomi_Sensor_Flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 31 39 2e 39 20 48 3d 35 31 2e 31 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 32 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 30 2e 39 00
Notification handle = 0x000e value,54 3d 31 39 2e 37 20 48 3d 35 31 2e 33 00
Notification handle = 0x000e value,54 3d 31 39 2e 39 20 48 3d 35 31 2e 31 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 33 00
Notification handle = 0x000e value,54 3d 31 39 2e 39 20 48 3d 35 31 2e 32 00
Notification handle = 0x000e value,54 3d 31 39 2e 39 20 48 3d 35 31 2e 33 00
Notification handle = 0x000e value,54 3d 31 39 2e 39 20 48 3d 35 31 2e 31 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 34 00
Notification handle = 0x000e value,54 3d 31 39 2e 39 20 48 3d 35 31 2e 32 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 33 00
2020.01.08 23:44:37 5: XiaomiBTLESens (Xiaomi_Sensor_Flur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:7A:AD --char-write-req -a 0x10 -n 0100 --listen 2>&1 and loop 4
2020.01.08 23:44:47 5: XiaomiBTLESens (Xiaomi_Sensor_Flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
2020.01.08 23:44:47 3: XiaomiBTLESens (Xiaomi_Sensor_Flur) - ExecGatttool_Run: errorcode: "124", ErrorString: "Characteristic value was written successfully
"
2020.01.08 23:44:47 4: XiaomiBTLESens (Xiaomi_Sensor_Flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
2020.01.08 23:44:47 5: XiaomiBTLESens (Xiaomi_Sensor_Flur) - ExecGatttool_Done: gatttool return string: Xiaomi_Sensor_Flur|4C:65:A8:D5:7A:AD|error|write|0x10|{"gtResult":"no data response"}
2020.01.08 23:44:47 4: XiaomiBTLESens (Xiaomi_Sensor_Flur) - ProcessingErrors
2020.01.08 23:44:47 4: XiaomiBTLESens (Xiaomi_Sensor_Flur) - WriteReadings: Readings were written
2020.01.08 23:45:43 4: XiaomiBTLESens (Xiaomi_Sensor_Flur) - Run CreateParamGatttool with mod: write
2020.01.08 23:45:43 5: XiaomiBTLESens (Xiaomi_Sensor_Flur) - Write XiaomiBTLESens_ExecGatttool_Run Xiaomi_Sensor_Flur|4C:65:A8:D5:7A:AD|write|0x10|0100
2020.01.08 23:45:43 4: XiaomiBTLESens (Xiaomi_Sensor_Flur) - stateRequestTimer: Call Request Timer
2020.01.08 23:45:43 5: XiaomiBTLESens (Xiaomi_Sensor_Flur) - ExecGatttool_Run: Execute Command ps ax | grep -E [g]atttool -i hci0 -b 4C:65:A8:D5:7A:AD
2020.01.08 23:45:43 5: XiaomiBTLESens (Xiaomi_Sensor_Flur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:7A:AD --char-write-req -a 0x10 -n 0100 --listen 2>&1 and loop 0
2020.01.08 23:45:45 4: XiaomiBTLESens (Xiaomi_Sensor_Flur) - WriteReadings: Readings were written
2020.01.08 23:45:53 5: XiaomiBTLESens (Xiaomi_Sensor_Flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 31 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 33 00
Notification handle = 0x000e value,54 3d 31 39 2e 39 20 48 3d 35 31 2e 32 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 33 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 30 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 32 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 30 2e 39 00
Notification handle = 0x000e value,54 3d 31 39 2e 37 20 48 3d 35 31 2e 32 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 31 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 32 00
2020.01.08 23:45:53 5: XiaomiBTLESens (Xiaomi_Sensor_Flur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:7A:AD --char-write-req -a 0x10 -n 0100 --listen 2>&1 and loop 1
2020.01.08 23:46:03 5: XiaomiBTLESens (Xiaomi_Sensor_Flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 31 39 2e 39 20 48 3d 35 31 2e 32 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 32 00
2020.01.08 23:46:03 5: XiaomiBTLESens (Xiaomi_Sensor_Flur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:7A:AD --char-write-req -a 0x10 -n 0100 --listen 2>&1 and loop 2
2020.01.08 23:46:13 5: XiaomiBTLESens (Xiaomi_Sensor_Flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 31 00
Notification handle = 0x000e value,54 3d 31 39 2e 37 20 48 3d 35 31 2e 33 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 33 00
2020.01.08 23:46:13 5: XiaomiBTLESens (Xiaomi_Sensor_Flur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:7A:AD --char-write-req -a 0x10 -n 0100 --listen 2>&1 and loop 3
2020.01.08 23:46:23 5: XiaomiBTLESens (Xiaomi_Sensor_Flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 31 39 2e 39 20 48 3d 35 31 2e 32 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 33 00
Notification handle = 0x000e value,54 3d 31 39 2e 39 20 48 3d 35 31 2e 31 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 33 00
2020.01.08 23:46:23 5: XiaomiBTLESens (Xiaomi_Sensor_Flur) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b 4C:65:A8:D5:7A:AD --char-write-req -a 0x10 -n 0100 --listen 2>&1 and loop 4
2020.01.08 23:46:33 5: XiaomiBTLESens (Xiaomi_Sensor_Flur) - ExecGatttool_Run: gatttool loop result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 31 39 2e 39 20 48 3d 35 31 2e 31 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 33 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 31 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 33 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 30 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 32 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 33 00
2020.01.08 23:46:33 3: XiaomiBTLESens (Xiaomi_Sensor_Flur) - ExecGatttool_Run: errorcode: "124", ErrorString: "Characteristic value was written successfully
Notification handle = 0x000e value: 54 3d 31 39 2e 39 20 48 3d 35 31 2e 31 00
Notification handle = 0x000e value: 54 3d 31 39 2e 38 20 48 3d 35 31 2e 33 00
Notification handle = 0x000e value: 54 3d 31 39 2e 38 20 48 3d 35 31 2e 31 00
Notification handle = 0x000e value: 54 3d 31 39 2e 38 20 48 3d 35 31 2e 33 00
Notification handle = 0x000e value: 54 3d 31 39 2e 38 20 48 3d 35 31 2e 30 00
Notification handle = 0x000e value: 54 3d 31 39 2e 38 20 48 3d 35 31 2e 32 00
Notification handle = 0x000e value: 54 3d 31 39 2e 38 20 48 3d 35 31 2e 33 00
"
2020.01.08 23:46:33 4: XiaomiBTLESens (Xiaomi_Sensor_Flur) - ExecGatttool_Run: gatttool result Characteristic value was written successfully
Notification handle = 0x000e value,54 3d 31 39 2e 39 20 48 3d 35 31 2e 31 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 33 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 31 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 33 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 30 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 32 00
Notification handle = 0x000e value,54 3d 31 39 2e 38 20 48 3d 35 31 2e 33 00
2020.01.08 23:46:33 5: XiaomiBTLESens (Xiaomi_Sensor_Flur) - ExecGatttool_Done: gatttool return string: Xiaomi_Sensor_Flur|4C:65:A8:D5:7A:AD|ok|write|0x10|{"gtResult":"54 3d 31 39 2e 39 20 48 3d 35 31 2e 31 00 "}
2020.01.08 23:46:33 4: XiaomiBTLESens (Xiaomi_Sensor_Flur) - ProcessingNotification
2020.01.08 23:46:33 4: XiaomiBTLESens (Xiaomi_Sensor_Flur) - ProcessingNotification: handle 0x10
2020.01.08 23:46:33 4: XiaomiBTLESens (Xiaomi_Sensor_Flur) - Thermo/Hygro Sens Handle0x10
2020.01.08 23:46:33 4: XiaomiBTLESens (Xiaomi_Sensor_Flur) - WriteReadings: Readings were written
2020.01.10 15:11:00 3: XiaomiBTLESens (Birkenfeige) - ExecGatttool_Run: errorcode: "1", ErrorString: "connect error: Software caused connection abort (103)
"
2020.01.10 16:22:04 4: XiaomiBTLESens (Birkenfeige) - Run CreateParamGatttool with mod: read
2020.01.10 16:22:04 5: XiaomiBTLESens (Birkenfeige) - Read XiaomiBTLESens_ExecGatttool_Run Birkenfeige|C4:7C:8D:6A:56:7A|read|0x38
2020.01.10 16:22:05 5: XiaomiBTLESens (Birkenfeige) - ExecGatttool_Run: Execute Command ps ax | grep -E [g]atttool -i hci0 -b C4:7C:8D:6A:56:7A
2020.01.10 16:22:05 5: XiaomiBTLESens (Birkenfeige) - ExecGatttool_Run: call gatttool with command: ssh pi@10.0.0.211 'gatttool -i hci0 -b C4:7C:8D:6A:56:7A --char-read -a 0x38 2>&1' and loop 0
2020.01.10 16:22:29 3: [Twilight] got no weather info from yahoo. Error code: gethostbyname query.yahooapis.com failed
2020.01.10 16:22:46 5: XiaomiBTLESens (Birkenfeige) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)
2020.01.10 16:22:46 5: XiaomiBTLESens (Birkenfeige) - ExecGatttool_Run: call gatttool with command: ssh pi@10.0.0.211 'gatttool -i hci0 -b C4:7C:8D:6A:56:7A --char-read -a 0x38 2>&1' and loop 1
2020.01.10 16:23:20 4: XiaomiBTLESens (Birkenfeige) - Run CreateParamGatttool with mod: read
2020.01.10 16:23:20 5: XiaomiBTLESens (Birkenfeige) - Read XiaomiBTLESens_ExecGatttool_Run Birkenfeige|C4:7C:8D:6A:56:7A|read|0x38
2020.01.10 16:23:20 4: XiaomiBTLESens (Birkenfeige) - stateRequestTimer: Call Request Timer
2020.01.10 16:23:27 5: XiaomiBTLESens (Birkenfeige) - ExecGatttool_Run: gatttool loop result connect error,Connection refused (111)
2020.01.10 16:23:27 5: XiaomiBTLESens (Birkenfeige) - ExecGatttool_Run: call gatttool with command: ssh pi@10.0.0.211 'gatttool -i hci0 -b C4:7C:8D:6A:56:7A --char-read -a 0x38 2>&1' and loop 2
2020.01.10 16:23:29 3: [Twilight] got no weather info from yahoo. Error code: gethostbyname query.yahooapis.com failed
2020.01.10 16:23:34 1: Timeout for FHEM::XiaomiBTLESens::ExecGatttool_Run reached, terminated process 23544
2020.01.10 16:23:34 4: XiaomiBTLESens (Birkenfeige) - WriteReadings: Readings were written
2020.01.10 16:23:34 4: XiaomiBTLESens (Birkenfeige) - ExecGatttool_Aborted: The BlockingCall Process terminated unexpectedly. Timedout
gatttool -i hci0 -b C4:7C:8D:6A:56:7A --char-read -a 0x38 2>&1
connect error: Connection refused (111)
Zitat von: CoolTux am 09 Januar 2020, 05:01:34
Kannst Du bitte noch einmal runter laden und diesmal nicht das verbose hoch schrauben. Es müsste dann eine spezielle DEBUG Meldung im Log erscheinen. Die Ansicht brauche ich dann bitte.
-t random
Zitat von: Pati_Alpha am 11 Januar 2020, 10:57:18
Ich nutze den RPi auch noch um per presenced/collectord nach Handys zu scannen. Kann es das sein?
hem> l Slaaptemp2
Internals:
BTMAC 58:2D:34:10:C8:6B
DEF 58:2D:34:10:C8:6B
FUUID 5e406756-f33f-5f49-28fb-396f8b14e8329cb8
FVERSION 74_XiaomiBTLESens.pm:v2.8.2-s20924/2020-01-10
INTERVAL 120
NAME Slaaptemp2
NOTIFYDEV global,Slaaptemp2
NR 94
NTFY_ORDER 50-Slaaptemp2
STATE T: 0 H: 0
TYPE XiaomiBTLESens
VERSION v2.8.2
loglevel 4
READINGS:
2020-02-09 21:11:08 firmware 1.1.2_0020
2020-02-09 21:11:08 state T: 0 H: 0
helper:
CallBattery 0
CallSensDataCounter 0
Attributes:
interval 120
model clearGrassSens
room XiaomiBTLESens
2020.02.09 21:17:16 5: XiaomiBTLESens (Slaaptemp2) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,86 77 f7 fb d1 5c e2 08 e6 c5 de bf
2020.02.09 21:17:16 4: XiaomiBTLESens (Slaaptemp2) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,86 77 f7 fb d1 5c e2 08 e6 c5 de bf
2020.02.09 21:17:16 5: Cmd: >{BlockingStart('4')}<
2020.02.09 21:17:16 5: Cmd: >{FHEM::XiaomiBTLESens::ExecGatttool_Done('Slaaptemp2|58:2D:34:10:C8:6B|ok|read|0x3b|{"gtResult":"86 77 f7 fb d1 5c e2 08 e6 c5 de bf "}')}<
2020.02.09 21:17:16 5: XiaomiBTLESens (Slaaptemp2) - ExecGatttool_Done: gatttool return string: Slaaptemp2|58:2D:34:10:C8:6B|ok|read|0x3b|{"gtResult":"86 77 f7 fb d1 5c e2 08 e6 c5 de bf "}
2020.02.09 21:17:16 4: XiaomiBTLESens (Slaaptemp2) - ProcessingNotification
2020.02.09 21:17:16 4: XiaomiBTLESens (Slaaptemp2) - ProcessingNotification: handle 0x3b
2020.02.09 21:17:16 4: XiaomiBTLESens (Slaaptemp2) - Clear Grass Sens Handle0x3b
2020.02.09 21:17:16 5: Starting notify loop for Slaaptemp2, 3 event(s), first is batteryState: low
2020.02.09 21:17:16 5: End notify loop for Slaaptemp2
2020.02.09 21:17:16 4: XiaomiBTLESens (Slaaptemp2) - WriteReadings: Readings were written
2020.02.09 21:17:16 4: XiaomiBTLESens (Slaaptemp2) - Run CreateParamGatttool with mod: read
2020.02.09 21:17:16 4: BlockingCall (FHEM::XiaomiBTLESens::ExecGatttool_Run): created child (19723), uses telnetPort to connect back
2020.02.09 21:17:16 5: Starting notify loop for Slaaptemp2, 1 event(s), first is read sensor data
2020.02.09 21:17:16 5: End notify loop for Slaaptemp2
2020.02.09 21:17:16 5: XiaomiBTLESens (Slaaptemp2) - Read XiaomiBTLESens_ExecGatttool_Run Slaaptemp2|58:2D:34:10:C8:6B|read|0x1e
2020.02.09 21:17:16 4: Connection accepted from telnetPort_127.0.0.1_33226
2020.02.09 21:17:16 5: Cmd: >{BlockingRegisterTelnet($cl,9)}<
2020.02.09 21:17:16 5: XiaomiBTLESens (Slaaptemp2) - ExecGatttool_Run: Execute Command ps ax | grep -E [g]atttool -i hci0 -b 58:2D:34:10:C8:6B
2020.02.09 21:17:16 5: XiaomiBTLESens (Slaaptemp2) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 58:2D:34:10:C8:6B --char-read -a 0x1e 2>&1 and loop 0
2020.02.09 21:17:17 5: XiaomiBTLESens (Slaaptemp2) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,ac
2020.02.09 21:17:17 4: XiaomiBTLESens (Slaaptemp2) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,ac
2020.02.09 21:17:17 5: Cmd: >{BlockingStart('9')}<
2020.02.09 21:17:17 5: Cmd: >{FHEM::XiaomiBTLESens::ExecGatttool_Done('Slaaptemp2|58:2D:34:10:C8:6B|ok|read|0x1e|{"gtResult":"ac "}')}<
2020.02.09 21:17:17 5: XiaomiBTLESens (Slaaptemp2) - ExecGatttool_Done: gatttool return string: Slaaptemp2|58:2D:34:10:C8:6B|ok|read|0x1e|{"gtResult":"ac "}
2020.02.09 21:17:17 4: XiaomiBTLESens (Slaaptemp2) - ProcessingNotification
2020.02.09 21:17:17 4: XiaomiBTLESens (Slaaptemp2) - ProcessingNotification: handle 0x1e
2020.02.09 21:17:17 4: XiaomiBTLESens (Slaaptemp2) - Clear Grass Sens Handle0x1e
2020.02.09 21:17:17 1: PERL WARNING: substr outside of string at ./FHEM/74_XiaomiBTLESens.pm line 1140.
2020.02.09 21:17:17 3: eval: {FHEM::XiaomiBTLESens::ExecGatttool_Done('Slaaptemp2|58:2D:34:10:C8:6B|ok|read|0x1e|{"gtResult":"ac "}')}
2020.02.09 21:17:17 1: PERL WARNING: Use of uninitialized value in hex at ./FHEM/74_XiaomiBTLESens.pm line 1140.
2020.02.09 21:17:17 3: eval: {FHEM::XiaomiBTLESens::ExecGatttool_Done('Slaaptemp2|58:2D:34:10:C8:6B|ok|read|0x1e|{"gtResult":"ac "}')}
2020.02.09 21:17:17 1: PERL WARNING: substr outside of string at ./FHEM/74_XiaomiBTLESens.pm line 1141.
2020.02.09 21:17:17 3: eval: {FHEM::XiaomiBTLESens::ExecGatttool_Done('Slaaptemp2|58:2D:34:10:C8:6B|ok|read|0x1e|{"gtResult":"ac "}')}
2020.02.09 21:17:17 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/74_XiaomiBTLESens.pm line 1141.
2020.02.09 21:17:17 3: eval: {FHEM::XiaomiBTLESens::ExecGatttool_Done('Slaaptemp2|58:2D:34:10:C8:6B|ok|read|0x1e|{"gtResult":"ac "}')}
2020.02.09 21:17:17 5: Starting notify loop for Slaaptemp2, 3 event(s), first is temperature: 0
2020.02.09 21:17:17 5: End notify loop for Slaaptemp2
2020.02.09 21:17:17 4: XiaomiBTLESens (Slaaptemp2) - WriteReadings: Readings were written
Zitat von: Pati_Alpha am 14 Januar 2020, 10:49:19
Ich hab mir als Workaround jetzt auch erstmal ein DOIF gebaut, was einfach auf dem RPi das BT resetted sobald der Xiaomi auf ERROR steht. Nicht schön, aber funktioniert. Triggert aber tatsächlich 1x täglich. Das war vor Buster DEFINITIV nicht so!
Zitat von: IcedEarth am 01 April 2020, 19:28:11
Hallo zusammen,
ich habe ebenfalls das Problem, dass der SEnsor einfach zuufällig irgendwann auf "Device or resource busy (16)" springt. Wenn ich dann händisch per ssh "sudo hciconfig hci0 down" und
"sudo hciconfig hci0 up" ausführe geht es wieder, bis der Fehler erneut auftritt. Gibt es dafür ebenfalls eine komfortable Lösung?
Viele Grüße
Zitat von: CoolTux am 01 April 2020, 20:00:14
Ein Notify welches auf diese Fehlermeldung triggert.
Zitat von: IcedEarth am 02 April 2020, 08:22:06
Wie soll denn fhem den sudo befehl für das device ausführen? Da musst Du mir nochmal einen Denkanstoß liefern ;-)
Viele Grüße
"ssh User@RemoteRechner \"sudo hciconfig hci0 down\""
"ssh User@RemoteRechner \"sudo hciconfig hci0 up\""
FC_1:lastGattError:.*|FC_2:lastGattError:.*
set Telegrambot msg Einer oder beide FC Sensoren nicht erreichbar. (comment ausführen!),
{"sudo /home/pi/XiaomiBluetoothBug.sh"}
Zitat von: IcedEarth am 03 April 2020, 09:18:20
Hallo Joachim,
sorry für die Verwirrung. FHEM läuft bei mir auf dem Raspberry, dessen Bluetooth ich auch nutze. daher ist ein remote ssh gar nicht notwendig (oder?)
Viele Grüße
Zitat
Wenn ich dann händisch per ssh "sudo hciconfig hci0 down" und
"sudo hciconfig hci0 up" ausführe
Zitat von: kroonen am 09 Februar 2020, 21:23:13
Hi,
I use a cleargrass sensor, but only gets values zero
Here the result and also a verbose 5 for the readingCode Auswählen
hem> l Slaaptemp2
Internals:
BTMAC 58:2D:34:10:C8:6B
DEF 58:2D:34:10:C8:6B
FUUID 5e406756-f33f-5f49-28fb-396f8b14e8329cb8
FVERSION 74_XiaomiBTLESens.pm:v2.8.2-s20924/2020-01-10
INTERVAL 120
NAME Slaaptemp2
NOTIFYDEV global,Slaaptemp2
NR 94
NTFY_ORDER 50-Slaaptemp2
STATE T: 0 H: 0
TYPE XiaomiBTLESens
VERSION v2.8.2
loglevel 4
READINGS:
2020-02-09 21:11:08 firmware 1.1.2_0020
2020-02-09 21:11:08 state T: 0 H: 0
helper:
CallBattery 0
CallSensDataCounter 0
Attributes:
interval 120
model clearGrassSens
room XiaomiBTLESens
2020.02.09 21:17:16 5: XiaomiBTLESens (Slaaptemp2) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,86 77 f7 fb d1 5c e2 08 e6 c5 de bf
2020.02.09 21:17:16 4: XiaomiBTLESens (Slaaptemp2) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,86 77 f7 fb d1 5c e2 08 e6 c5 de bf
2020.02.09 21:17:16 5: Cmd: >{BlockingStart('4')}<
2020.02.09 21:17:16 5: Cmd: >{FHEM::XiaomiBTLESens::ExecGatttool_Done('Slaaptemp2|58:2D:34:10:C8:6B|ok|read|0x3b|{"gtResult":"86 77 f7 fb d1 5c e2 08 e6 c5 de bf "}')}<
2020.02.09 21:17:16 5: XiaomiBTLESens (Slaaptemp2) - ExecGatttool_Done: gatttool return string: Slaaptemp2|58:2D:34:10:C8:6B|ok|read|0x3b|{"gtResult":"86 77 f7 fb d1 5c e2 08 e6 c5 de bf "}
2020.02.09 21:17:16 4: XiaomiBTLESens (Slaaptemp2) - ProcessingNotification
2020.02.09 21:17:16 4: XiaomiBTLESens (Slaaptemp2) - ProcessingNotification: handle 0x3b
2020.02.09 21:17:16 4: XiaomiBTLESens (Slaaptemp2) - Clear Grass Sens Handle0x3b
2020.02.09 21:17:16 5: Starting notify loop for Slaaptemp2, 3 event(s), first is batteryState: low
2020.02.09 21:17:16 5: End notify loop for Slaaptemp2
2020.02.09 21:17:16 4: XiaomiBTLESens (Slaaptemp2) - WriteReadings: Readings were written
2020.02.09 21:17:16 4: XiaomiBTLESens (Slaaptemp2) - Run CreateParamGatttool with mod: read
2020.02.09 21:17:16 4: BlockingCall (FHEM::XiaomiBTLESens::ExecGatttool_Run): created child (19723), uses telnetPort to connect back
2020.02.09 21:17:16 5: Starting notify loop for Slaaptemp2, 1 event(s), first is read sensor data
2020.02.09 21:17:16 5: End notify loop for Slaaptemp2
2020.02.09 21:17:16 5: XiaomiBTLESens (Slaaptemp2) - Read XiaomiBTLESens_ExecGatttool_Run Slaaptemp2|58:2D:34:10:C8:6B|read|0x1e
2020.02.09 21:17:16 4: Connection accepted from telnetPort_127.0.0.1_33226
2020.02.09 21:17:16 5: Cmd: >{BlockingRegisterTelnet($cl,9)}<
2020.02.09 21:17:16 5: XiaomiBTLESens (Slaaptemp2) - ExecGatttool_Run: Execute Command ps ax | grep -E [g]atttool -i hci0 -b 58:2D:34:10:C8:6B
2020.02.09 21:17:16 5: XiaomiBTLESens (Slaaptemp2) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 58:2D:34:10:C8:6B --char-read -a 0x1e 2>&1 and loop 0
2020.02.09 21:17:17 5: XiaomiBTLESens (Slaaptemp2) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,ac
2020.02.09 21:17:17 4: XiaomiBTLESens (Slaaptemp2) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,ac
2020.02.09 21:17:17 5: Cmd: >{BlockingStart('9')}<
2020.02.09 21:17:17 5: Cmd: >{FHEM::XiaomiBTLESens::ExecGatttool_Done('Slaaptemp2|58:2D:34:10:C8:6B|ok|read|0x1e|{"gtResult":"ac "}')}<
2020.02.09 21:17:17 5: XiaomiBTLESens (Slaaptemp2) - ExecGatttool_Done: gatttool return string: Slaaptemp2|58:2D:34:10:C8:6B|ok|read|0x1e|{"gtResult":"ac "}
2020.02.09 21:17:17 4: XiaomiBTLESens (Slaaptemp2) - ProcessingNotification
2020.02.09 21:17:17 4: XiaomiBTLESens (Slaaptemp2) - ProcessingNotification: handle 0x1e
2020.02.09 21:17:17 4: XiaomiBTLESens (Slaaptemp2) - Clear Grass Sens Handle0x1e
2020.02.09 21:17:17 1: PERL WARNING: substr outside of string at ./FHEM/74_XiaomiBTLESens.pm line 1140.
2020.02.09 21:17:17 3: eval: {FHEM::XiaomiBTLESens::ExecGatttool_Done('Slaaptemp2|58:2D:34:10:C8:6B|ok|read|0x1e|{"gtResult":"ac "}')}
2020.02.09 21:17:17 1: PERL WARNING: Use of uninitialized value in hex at ./FHEM/74_XiaomiBTLESens.pm line 1140.
2020.02.09 21:17:17 3: eval: {FHEM::XiaomiBTLESens::ExecGatttool_Done('Slaaptemp2|58:2D:34:10:C8:6B|ok|read|0x1e|{"gtResult":"ac "}')}
2020.02.09 21:17:17 1: PERL WARNING: substr outside of string at ./FHEM/74_XiaomiBTLESens.pm line 1141.
2020.02.09 21:17:17 3: eval: {FHEM::XiaomiBTLESens::ExecGatttool_Done('Slaaptemp2|58:2D:34:10:C8:6B|ok|read|0x1e|{"gtResult":"ac "}')}
2020.02.09 21:17:17 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/74_XiaomiBTLESens.pm line 1141.
2020.02.09 21:17:17 3: eval: {FHEM::XiaomiBTLESens::ExecGatttool_Done('Slaaptemp2|58:2D:34:10:C8:6B|ok|read|0x1e|{"gtResult":"ac "}')}
2020.02.09 21:17:17 5: Starting notify loop for Slaaptemp2, 3 event(s), first is temperature: 0
2020.02.09 21:17:17 5: End notify loop for Slaaptemp2
2020.02.09 21:17:17 4: XiaomiBTLESens (Slaaptemp2) - WriteReadings: Readings were written
2020.04.04 13:25:13 4: XiaomiBTLESens (StuffTemHum) - Run CreateParamGatttool with mod: read
2020.04.04 13:25:13 5: XiaomiBTLESens (StuffTemHum) - Read XiaomiBTLESens_ExecGatttool_Run StuffTemHum|58:2D:34:10:45:30|read|0x1e
2020.04.04 13:25:13 4: XiaomiBTLESens (StuffTemHum) - stateRequestTimer: Call Request Timer
2020.04.04 13:25:13 5: XiaomiBTLESens (StuffTemHum) - ExecGatttool_Run: Execute Command ps ax | grep -E [g]atttool -i hci0 -b 58:2D:34:10:45:30
2020.04.04 13:25:13 5: XiaomiBTLESens (StuffTemHum) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 58:2D:34:10:45:30 --char-read -a 0x1e 2>&1 and loop 0
2020.04.04 13:25:20 5: XiaomiBTLESens (StuffTemHum) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,3d
2020.04.04 13:25:20 4: XiaomiBTLESens (StuffTemHum) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,3d
2020.04.04 13:25:20 5: XiaomiBTLESens (StuffTemHum) - ExecGatttool_Done: gatttool return string: StuffTemHum|58:2D:34:10:45:30|ok|read|0x1e|{"gtResult":"3d "}
2020.04.04 13:25:20 4: XiaomiBTLESens (StuffTemHum) - ProcessingNotification
2020.04.04 13:25:20 4: XiaomiBTLESens (StuffTemHum) - ProcessingNotification: handle 0x1e
2020.04.04 13:25:20 4: XiaomiBTLESens (StuffTemHum) - Clear Grass Sens Handle0x1e
2020.04.04 13:25:20 1: dewpoint_notify: humidity device StuffTemHum (humidity) invalid: 0
2020.04.04 13:25:20 4: XiaomiBTLESens (StuffTemHum) - WriteReadings: Readings were written
Internals:
BTMAC 58:2D:34:10:45:30
DEF 58:2D:34:10:45:30
FUUID 5d7a6444-f33f-6911-e514-9a8c304b409d2083
FVERSION 74_XiaomiBTLESens.pm:v2.8.2-s20924/2020-01-10
INTERVAL 300
NAME StuffTemHum
NOTIFYDEV global,StuffTemHum
NR 296
NTFY_ORDER 50-StuffTemHum
STATE T: 0 H: 0
TYPE XiaomiBTLESens
VERSION v2.8.2
loglevel 4
READINGS:
2020-04-03 21:55:30 batteryPercent 128
2020-04-03 21:55:30 batteryState ok
2019-09-12 17:29:51 firmware CGG1
2020-04-04 13:33:26 humidity 0
2020-04-03 15:26:54 lastGattError The BlockingCall Process terminated unexpectedly. Timedout
2020-04-04 13:33:26 state T: 0 H: 0
2020-04-04 13:33:26 temperature 0
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1585943730.71768
updateTimestampCallBattery 2020-04-03 21:55:30
Attributes:
model clearGrassSens
room XiaomiBTLESens
verbose 5
Zitat von: trabatz am 04 April 2020, 14:02:45
Ach so.
Dachte es würde mittlerweile gehen. Mann kann es ja auch als Model auswählen. Ausserdem dachte ich t1me2die (ab #795) hätte es hingekriegt. Hab die Beiträge auch überflogen aber leider ist das ein bisschen zu kompliziert für mich.
Danke trotzdem
Zitat von: Holzlenkrad am 09 April 2020, 07:27:05
Äh, ich habe heute das erste Mal den Sensor aus dem Bad wo er eigentlich hängt mit zum PC genommen und mal die Werte vom Display und den in FHEM angezeigten verglichen.
Und was soll ich sagen? Die sind unterschiedlich :D
Zwar nur um 1-2 Grad bzw. Prozent bei der rH aber immerhin. Liefern die Daten, die per BTLE kommen eine Checksumme mit?
Auf der anderen Seite ist der Unterschied zu gering, als dass die Daten wirklich fehlerhaft übertragen worden sein könnten.
Hat jemand schon ähnliche Beobachtungen gemacht?
Zitat von: vuffiraa am 10 April 2020, 13:54:30
Es könnte vielleicht eine Art Glättung der Werte in der Anzeige sein, damit dort Sprünge durch Messungenauigkeiten nicht so groß auffallen. Nur so als Erklärungsversuch ;)
Timeout for FHEM::XiaomiBTLESens::ExecGatttool_Run reached, terminated process 3786
Zitat von: CoolTux am 29 Februar 2020, 15:47:05
Das Teil kam vor 2 Wochen an, leider hatte ich noch keine Zeit weiter gefunden.
Zitat von: baum am 21 April 2020, 19:33:27
Hier hat jemand demonstriert, wie die Werte mit dem gatttool ausgelesen werden können:
http://www.d0wn.com/using-bash-and-gatttool-to-get-readings-from-xiaomi-mijia-lywsd03mmc-temperature-humidity-sensor/
Zitat von: t1me2die am 18 Oktober 2019, 09:56:06
Moin,
wieder was dazu gelernt :)
Also das "Modul" funktioniert soweit, mehr oder weniger ;D
Wobei mir das auslesen der Werte über bluetoothctl wirklich gar nicht zusagt.
Die Uhrzeit kann ich "komfortable" per gatttool und einem handle auslesen.
Solange ich aber nicht weiß, ob ich noch auf einen anderen Weg an meine Werte komme, muss das so erstmal laufen.
Anfangs stand ich auch vor dem Problem, dass der User fhem keine Berechtigung hatte um "bluetoothctl" auszuführen...
Nun muss ich aber erstmal das Modul aufräumen. Viele Log-Meldungen habe ich mir gebastelt und an einigen Stellen weiß ich schon selber, dass das alles nicht ganz rund ist.
Ich bin aber immer etwas ungeduldig und möchte schnell irgendein Resultat sehen, dass verleitet leider zu "dummen" Quellcode... Muss man üben :)
Ansonsten muss ich mal wirklich das DevelopmentModuleIntro loben, ziemlich tolle Funktionen, die man Standardmäßig nutzen kann!Code Auswählen
Internals:
BTMAC E7:2E:00:E2:74:D6
CFGFN
DEF E7:2E:00:E2:74:D6
FUUID 5da96bdb-f33f-5bc8-2f02-2c9317f0abd6372b
INTERVAL 300
NAME wz_Xiaomi_eInk
NOTIFYDEV global,wz_Xiaomi_eInk
NR 2055
NTFY_ORDER 50-wz_Xiaomi_eInk
STATE T: 18.8 H: 74
TYPE XiaomiEInk
VERSION v0.0.2
loglevel 4
READINGS:
2019-10-18 09:43:08 clock 18.10.2019-09.43.10
2019-10-18 09:44:59 humidity 74
2019-10-18 09:44:59 job done
2019-10-18 09:38:52 model LYWSD02
2019-10-18 09:44:59 state T: 18.8 H: 74
2019-10-18 09:40:05 temperature 18.8
helper:
Attributes:
room XiaomiEInk
PS.: Falls jemand einen Xiaomi LYWSD02 (eInk Display mit Humidity + Temp + Clock) haben sollte und das Modul testen möchte, kann er sich gerne bei mir melden :)
Gruß
Mathze
2020.04.23 09:33:05 4: XiaomiBTLESens (SEN_li_Gewaechshaus) - Run CreateParamGatttool with mod: read
2020.04.23 09:33:05 5: XiaomiBTLESens (SEN_li_Gewaechshaus) - Read XiaomiBTLESens_ExecGatttool_Run SEN_li_Gewaechshaus|C4:7C:8D:66:A6:6E|read|0x38
2020.04.23 09:33:05 5: XiaomiBTLESens (SEN_li_Gewaechshaus) - ExecGatttool_Run: Execute Command ps ax | grep -E [g]atttool -i hci0 -b C4:7C:8D:66:A6:6E
2020.04.23 09:33:05 5: XiaomiBTLESens (SEN_li_Gewaechshaus) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:A6:6E --char-read -a 0x38 2>&1 and loop 0
2020.04.23 09:33:11 5: XiaomiBTLESens (SEN_li_Gewaechshaus) - ExecGatttool_Run: gatttool loop result connect error,Function not implemented (38)
2020.04.23 09:33:11 5: XiaomiBTLESens (SEN_li_Gewaechshaus) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:A6:6E --char-read -a 0x38 2>&1 and loop 1
2020.04.23 09:33:18 5: XiaomiBTLESens (SEN_li_Gewaechshaus) - ExecGatttool_Run: gatttool loop result connect error,Function not implemented (38)
2020.04.23 09:33:18 5: XiaomiBTLESens (SEN_li_Gewaechshaus) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:A6:6E --char-read -a 0x38 2>&1 and loop 2
2020.04.23 09:33:20 5: XiaomiBTLESens (SEN_li_Gewaechshaus) - ExecGatttool_Run: gatttool loop result connect error,Function not implemented (38)
2020.04.23 09:33:20 5: XiaomiBTLESens (SEN_li_Gewaechshaus) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:A6:6E --char-read -a 0x38 2>&1 and loop 3
2020.04.23 09:33:22 5: XiaomiBTLESens (SEN_li_Gewaechshaus) - ExecGatttool_Run: gatttool loop result connect error,Function not implemented (38)
2020.04.23 09:33:22 5: XiaomiBTLESens (SEN_li_Gewaechshaus) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b C4:7C:8D:66:A6:6E --char-read -a 0x38 2>&1 and loop 4
2020.04.23 09:33:25 5: XiaomiBTLESens (SEN_li_Gewaechshaus) - ExecGatttool_Run: gatttool loop result connect error,Function not implemented (38)
2020.04.23 09:33:25 3: XiaomiBTLESens (SEN_li_Gewaechshaus) - ExecGatttool_Run: errorcode: "1", ErrorString: "connect error: Function not implemented (38)
"
2020.04.23 09:33:25 4: XiaomiBTLESens (SEN_li_Gewaechshaus) - ExecGatttool_Run: gatttool result connect error,Function not implemented (38)
2020.04.23 09:33:25 5: XiaomiBTLESens (SEN_li_Gewaechshaus) - ExecGatttool_Done: gatttool return string: SEN_li_Gewaechshaus|C4:7C:8D:66:A6:6E|error|read|0x38|{"gtResult":"Function not implemented (38)"}
2020.04.23 09:33:25 4: XiaomiBTLESens (SEN_li_Gewaechshaus) - ProcessingErrors
2020.04.23 09:33:25 4: XiaomiBTLESens (SEN_li_Gewaechshaus) - WriteReadings: Readings were written
pi@garten:~ $ sudo hcitool lescan
LE Scan ...
F8:04:xx:xx:xx:xx (unknown)
42:8B:(unknown)
79:89: (unknown)
47:5B: (unknown)
80:EA: (unknown)
64:7C: (unknown)
6E:5D: (unknown)
F9:F9: (unknown)
CC:6E: (unknown)
C4:7C: (unknown)
C4:7C: (unknown)
C4:7C: (unknown)
Disable scan failed: Input/output error
pi@garten:~ $
Zitat von: HoTi am 23 April 2020, 12:52:38
bei mir ist das durchgehend!
Es geht leider nix mehr. Mit dem Handy geht alles :-(
Zitat von: CoolTux am 21 April 2020, 19:43:21
Perfekt. Ich denke damit kann ich was anfangen. Ich setze mich am WE da mal ran.
Zitat von: Headhunter667 am 11 Mai 2020, 20:10:16
Hallo,
danke für das Update!
Hier sind auch zwei LYWSD03MMC im Einsatz.
Häufig, wenn ich erst das Eine, dann das Andere Thermometer abfrage kommt ein "error" zurück.
In Summe liefern aber beide Sensoren Werte für Temperatur und Feuchtigkeit.
Im Logfile finde ich das aber leider nicht - ich lese mich mal dazu ein. Ist das erste Mal, dass ich ein Modul selbst eingespielt habe.
Wenn ich das richtig verstanden habe, senden die Thermometer nach dem Trigger einfach zyklisch ihre Messwerte, oder? Kann es daran liegen, dass die Werte ab und zu nicht kommen?
Außerdem scheint die Reichweite der Dinger - naja - begrenzt zu sein...
Grüße und nochmal danke für die Arbeit
2020.05.11 21:10:46 4: XiaomiBTLESens (BTtemp2) - Run CreateParamGatttool with mod: write
2020.05.11 21:10:46 5: XiaomiBTLESens (BTtemp2) - Write XiaomiBTLESens_ExecGatttool_Run BTtemp2|A4:C1:38:B2:63:80|write|0x3|425454454d5032
2020.05.11 21:10:46 5: XiaomiBTLESens (BTtemp2) - ExecGatttool_Run: Execute Command ps ax | grep -E [g]atttool -i hci0 -b A4:C1:38:B2:63:80
2020.05.11 21:10:46 5: XiaomiBTLESens (BTtemp2) - ExecGatttool_Run: call gatttool with command: timeout 10 gatttool -i hci0 -b A4:C1:38:B2:63:80 --char-write-req -a 0x3 -n 425454454d5032 --listen 2>&1 and loop 0
2020.05.11 21:10:56 5: XiaomiBTLESens (BTtemp2) - ExecGatttool_Run: gatttool loop result Characteristic Write Request failed,Attribute can't be written
Notification handle = 0x0036 value,2e 09 2a 44 0c
2020.05.11 21:10:56 4: XiaomiBTLESens (BTtemp2) - ExecGatttool_Run: gatttool result Characteristic Write Request failed,Attribute can't be written
Notification handle = 0x0036 value,2e 09 2a 44 0c
2020.05.11 21:10:56 5: XiaomiBTLESens (BTtemp2) - ExecGatttool_Done: gatttool return string: BTtemp2|A4:C1:38:B2:63:80|error|write|0x3|{"gtResult":"Attribute can't be written"}
2020.05.11 21:10:56 4: XiaomiBTLESens (BTtemp2) - ProcessingErrors
2020.05.11 21:10:56 4: XiaomiBTLESens (BTtemp2) - WriteReadings: Readings were written
2020.05.29 09:15:52 4: XiaomiBTLESens (Gartensensor) - Run CreateParamGatttool with mod: read
2020.05.29 09:15:52 4: BlockingCall (FHEM::XiaomiBTLESens::ExecGatttool_Run): created child (18247), uses telnetForBlockingFn_1590696078 to connect back
2020.05.29 09:15:52 5: Starting notify loop for Gartensensor, 1 event(s), first is read sensor data
2020.05.29 09:15:52 5: End notify loop for Gartensensor
2020.05.29 09:15:52 5: XiaomiBTLESens (Gartensensor) - Read XiaomiBTLESens_ExecGatttool_Run Gartensensor|80:EA:CA:89:48:DF|read|0x38
2020.05.29 09:15:52 4: XiaomiBTLESens (Gartensensor) - stateRequestTimer: Call Request Timer
2020.05.29 09:15:52 4: Connection accepted from telnetForBlockingFn_1590696078_127.0.0.1_44994
2020.05.29 09:15:52 5: Cmd: >{BlockingRegisterTelnet($cl,2262)}<
2020.05.29 09:15:52 5: XiaomiBTLESens (Gartensensor) - ExecGatttool_Run: Execute Command ps ax | grep -E [g]atttool -i hci0 -b 80:EA:CA:89:48:DF
2020.05.29 09:15:52 5: XiaomiBTLESens (Gartensensor) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 80:EA:CA:89:48:DF --char-read -a 0x38 2>&1 and loop 0
2020.05.29 09:15:52 5: XiaomiBTLESens (Gartensensor) - ExecGatttool_Run: gatttool loop result connect error,Device or resource busy (16)
2020.05.29 09:15:52 5: XiaomiBTLESens (Gartensensor) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 80:EA:CA:89:48:DF --char-read -a 0x38 2>&1 and loop 1
2020.05.29 09:15:52 5: XiaomiBTLESens (Gartensensor) - ExecGatttool_Run: gatttool loop result connect error,Device or resource busy (16)
2020.05.29 09:15:52 5: XiaomiBTLESens (Gartensensor) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 80:EA:CA:89:48:DF --char-read -a 0x38 2>&1 and loop 2
2020.05.29 09:15:52 5: XiaomiBTLESens (Gartensensor) - ExecGatttool_Run: gatttool loop result connect error,Device or resource busy (16)
2020.05.29 09:15:52 5: XiaomiBTLESens (Gartensensor) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 80:EA:CA:89:48:DF --char-read -a 0x38 2>&1 and loop 3
2020.05.29 09:15:52 5: XiaomiBTLESens (Gartensensor) - ExecGatttool_Run: gatttool loop result connect error,Device or resource busy (16)
2020.05.29 09:15:52 5: XiaomiBTLESens (Gartensensor) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 80:EA:CA:89:48:DF --char-read -a 0x38 2>&1 and loop 4
2020.05.29 09:15:53 5: XiaomiBTLESens (Gartensensor) - ExecGatttool_Run: gatttool loop result connect error,Device or resource busy (16)
2020.05.29 09:15:53 3: XiaomiBTLESens (Gartensensor) - ExecGatttool_Run: errorcode: "1", ErrorString: "connect error: Device or resource busy (16)
"
2020.05.29 09:15:53 4: XiaomiBTLESens (Gartensensor) - ExecGatttool_Run: gatttool result connect error,Device or resource busy (16)
2020.05.29 09:15:53 5: Cmd: >{BlockingStart('2262')}<
2020.05.29 09:15:53 5: Cmd: >{FHEM::XiaomiBTLESens::ExecGatttool_Done('Gartensensor|80:EA:CA:89:48:DF|error|read|0x38|{"gtResult":"Device or resource busy (16)"}')}<
2020.05.29 09:15:53 5: XiaomiBTLESens (Gartensensor) - ExecGatttool_Done: gatttool return string: Gartensensor|80:EA:CA:89:48:DF|error|read|0x38|{"gtResult":"Device or resource busy (16)"}
2020.05.29 09:15:53 4: XiaomiBTLESens (Gartensensor) - ProcessingErrors
2020.05.29 09:15:53 5: Starting notify loop for Gartensensor, 2 event(s), first is lastGattError: Device or resource busy (16)
2020.05.29 09:15:53 5: End notify loop for Gartensensor
2020.05.29 09:15:53 4: XiaomiBTLESens (Gartensensor) - WriteReadings: Readings were written
Zitat von: Kunibernd am 29 Mai 2020, 13:52:00
Vielen Dank - das hat temporär funktioniert. Und ja, ich musser vor dem Foren-Eintrag noch besser recherchieren ;)
Da sich der Stack scheinbar immer wieder mal aufhängt, werde ich mal nach einer Möglichkeit suchen, dies automatisch zu erkennen und diesen dann automatisch zu resetten.
Zitat von: ext23 am 10 Juni 2020, 20:00:15
Das sind Zimmerpflanzen bei mir, Sonne ist da nicht ;-)
/Daniel
setstate Schlafz_Sensor write sensor data
setstate Schlafz_Sensor 2020-06-19 19:45:33 batteryPercent 5.6809773020555e+35
setstate Schlafz_Sensor 2020-06-19 19:45:33 batteryState ok
setstate Schlafz_Sensor 2020-06-19 19:40:51 firmware Time
setstate Schlafz_Sensor 2020-06-19 19:48:36 lastGattError Attribute can't be written
setstate Schlafz_Sensor 2020-06-19 19:48:36 state write sensor data
2020.06.20 18:29:37 5: XiaomiBTLESens (feuchtesensor_rasen_vorn) - Read XiaomiBTLESens_ExecGatttool_Run feuchtesensor_rasen_vorn|80:EA:CA:89:69:F1|read|0x38
2020.06.20 18:29:37 5: XiaomiBTLESens (feuchtesensor_rasen_vorn) - ExecGatttool_Run: Execute Command ps ax | grep -E [g]atttool -i hci0 -b 80:EA:CA:89:69:F1
2020.06.20 18:29:37 5: XiaomiBTLESens (feuchtesensor_rasen_vorn) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 80:EA:CA:89:69:F1 --char-read -a 0x38 2>&1 and loop 0
2020.06.20 18:29:38 5: XiaomiBTLESens (feuchtesensor_rasen_vorn) - ExecGatttool_Run: gatttool loop result connect error,Function not implemented (38)
2020.06.20 18:29:38 5: XiaomiBTLESens (feuchtesensor_rasen_vorn) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 80:EA:CA:89:69:F1 --char-read -a 0x38 2>&1 and loop 1
2020.06.20 18:29:44 5: XiaomiBTLESens (feuchtesensor_rasen_vorn) - ExecGatttool_Run: gatttool loop result connect error,Function not implemented (38)
2020.06.20 18:29:44 5: XiaomiBTLESens (feuchtesensor_rasen_vorn) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 80:EA:CA:89:69:F1 --char-read -a 0x38 2>&1 and loop 2
2020.06.20 18:29:48 5: XiaomiBTLESens (feuchtesensor_rasen_vorn) - ExecGatttool_Run: gatttool loop result connect error,Function not implemented (38)
2020.06.20 18:29:48 5: XiaomiBTLESens (feuchtesensor_rasen_vorn) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 80:EA:CA:89:69:F1 --char-read -a 0x38 2>&1 and loop 3
2020.06.20 18:29:52 5: XiaomiBTLESens (feuchtesensor_rasen_vorn) - ExecGatttool_Run: gatttool loop result connect error,Function not implemented (38)
2020.06.20 18:29:52 5: XiaomiBTLESens (feuchtesensor_rasen_vorn) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 80:EA:CA:89:69:F1 --char-read -a 0x38 2>&1 and loop 4
2020.06.20 18:29:57 5: XiaomiBTLESens (feuchtesensor_rasen_vorn) - ExecGatttool_Run: gatttool loop result connect error,Function not implemented (38)
2020.06.20 18:29:57 3: XiaomiBTLESens (feuchtesensor_rasen_vorn) - ExecGatttool_Run: errorcode: "1", ErrorString: "connect error: Function not implemented (38)
"
2020.06.20 18:29:57 4: XiaomiBTLESens (feuchtesensor_rasen_vorn) - ExecGatttool_Run: gatttool result connect error,Function not implemented (38)
2020.06.20 18:29:58 5: XiaomiBTLESens (feuchtesensor_rasen_vorn) - ExecGatttool_Done: gatttool return string: feuchtesensor_rasen_vorn|80:EA:CA:89:69:F1|error|read|0x38|{"gtResult":"Function not implemented (38)"}
2020.06.20 18:29:58 4: XiaomiBTLESens (feuchtesensor_rasen_vorn) - ProcessingErrors
2020.06.20 18:29:58 4: XiaomiBTLESens (feuchtesensor_rasen_vorn) - WriteReadings: Readings were written
2020.07.12 16:36:38 4: XiaomiBTLESens (Temp1) - Run CreateParamGatttool with mod: read
2020.07.12 16:36:38 5: XiaomiBTLESens (Temp1) - Read XiaomiBTLESens_ExecGatttool_Run Temp1|A4:C1:38:EC:6E:AF|read|0x1e
2020.07.12 16:36:38 4: XiaomiBTLESens (Temp1) - stateRequestTimer: Call Request Timer
2020.07.12 16:36:38 5: XiaomiBTLESens (Temp1) - ExecGatttool_Run: Execute Command ps ax | grep -E [g]atttool -i hci0 -b A4:C1:38:EC:6E:AF
2020.07.12 16:36:38 5: XiaomiBTLESens (Temp1) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b A4:C1:38:EC:6E:AF --char-read -a 0x1e 2>&1 and loop 0
2020.07.12 16:36:44 5: XiaomiBTLESens (Temp1) - ExecGatttool_Run: gatttool loop result connect error,Transport endpoint is not connected (107)
2020.07.12 16:36:44 5: XiaomiBTLESens (Temp1) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b A4:C1:38:EC:6E:AF --char-read -a 0x1e 2>&1 and loop 1
2020.07.12 16:36:49 5: XiaomiBTLESens (Temp1) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,06 1f 00 12 2b 0d 0c 0b 0a 09 08 07 06 05 04 03 02 01 00
2020.07.12 16:36:49 4: XiaomiBTLESens (Temp1) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,06 1f 00 12 2b 0d 0c 0b 0a 09 08 07 06 05 04 03 02 01 00
2020.07.12 16:36:49 5: XiaomiBTLESens (Temp1) - ExecGatttool_Done: gatttool return string: Temp1|A4:C1:38:EC:6E:AF|ok|read|0x1e|{"gtResult":"06 1f 00 12 2b 0d 0c 0b 0a 09 08 07 06 05 04 03 02 01 00 "}
2020.07.12 16:36:49 4: XiaomiBTLESens (Temp1) - ProcessingNotification
2020.07.12 16:36:49 4: XiaomiBTLESens (Temp1) - ProcessingNotification: handle 0x1e
2020.07.12 16:36:49 4: XiaomiBTLESens (Temp1) - Clear Grass Sens Handle0x1e
2020.07.12 16:36:49 4: XiaomiBTLESens (Temp1) - WriteReadings: Readings were written
Zitat von: hackslash am 16 Juli 2020, 21:33:39
Kann es sein das über FHEM Update eine alte Version ausgeliefert wird? Ich hatte bei Model keine Auswahl für die neuen Mijia LYWSD03MMC. Die Version im Git bringt das aber mit
Zitat von: Jamo am 12 August 2020, 09:01:21
Ich habe 13 Flower sense am laufen. Ohne Probleme.
Zitat von: mi.ke am 13 Januar 2019, 18:36:08
Ich tippe auch auf Reichweitenproblemen und/oder zu kurze Abfrage-Intervalle
Bei Reichweitenproblemen zusätzlichen RPiZ über SSH verwenden !
Hier laufen z.Z. (Winter) 17 Stk.
Im Sommer sind es dann wieder ca. 30.
Bluetooth ist auf diesem RPi auch noch mit Anwesenheitskennung und Batterieüberwachung beschäftigt.
Allerdings auf einem anderen hcidevice.
Bei mehrere Sensoren muss/darf der interval nicht zu kurz sein, sonst versuchen doch mehrere Devices/Sensoren gleichzeitig Daten zu bekommen. Cooltux hatte seinerzeit schon eine zufällige Verzögerungszeit eingebaut, die das kompensiert.
Aber mal ehrlich. Pflanzen sind nicht wirklich "plötzlich" trocken und müssen nicht alle 10 Minuten abgefragt werden. 8)
Das einzige "Problem" ist, dass nach dem fhem-Start alle Devices zur gleichen Zeit starten wollen.
Hier hab ich mir ein Script geschrieben, dass nach starten des Hostes alle Devices deaktiviert und dann im Zeitversatz von einigen Minuten nacheinander aktiviert. Das funktioniert dann sehr gut.
Da die Sensoren aber mehr können als "Erde Trocken||Nass" setze ich sie auch z.B. zur Beschattung ein.
Diese haben eine dann einen kürzeren Interval und dafür auch eine höhere Prio beim automatisierten Startvorgang.
Cheers
mi.ke
attr <device> hciDevice hci0 (oder hci1)
Zitat von: myrave am 12 August 2020, 09:48:03
Sehr gut, so hatte ich es eigentlich erwartet, dann besteht auf jeden Fall Hoffnung.
Ich habe es auf RPI 4 aufgesetzt mit dem integrierten BT.
Welchen RPI hast du und mit dem integrierten BT Modul oder einem BT USB Stick?
Vielleicht kann es sonst an der Software, also Bluez Version liegen? Welche hast du?
Eventuell reicht hier ja eine Änderung an der Stelle, dass es dann funktioniert.
Ich hatte am Anfang beim Aufsetzen mit Bluez und Gattool einige Probleme,
würde daher nicht ausschließen, dass andere SW / Version daran Schuld ist.
Zitat von: revres am 13 August 2020, 16:42:32
Ich habe mittlerweile ein Firmware update gemacht. Seit dem scheint es über das interne modul stabil zu laufen (über 24h.). Mal schauen ob das so bleibt. Ansonsten versuche ich auch mal einen externen stick.
Device or resource busy (16)
Transport endpoint is not connected (107)
Letzteres schiebe ich auf Empfangsprobleme, weil sich das meistens von selbst wieder gibt.sudo invoke-rc.d bluetooth restart
sudo hciconfig hci0 reset
Device or resource busy (16)
zu triggern und dann ein Shellscript mit den beiden reset-Befehlen auszuführen. Kann eigentlich nicht schwierig sein, schüttele ich nur nicht aus dem Handgelenk.define Restart_Bluetooth notify TempLuft.*:lastGattError:.Device.or.resource.busy.\(16\) {qx(sudo /usr/sbin/service bluetooth restart)}
2020.08.23 22:25:54 1: Timeout for FHEM::XiaomiBTLESens::ExecGatttool_Run reached, terminated process 755
Connection to 10.0.0.211 closed by remote host.
Zitat von: Pati_Alpha am 23 August 2020, 23:06:07
Hey, ich habe jetzt schon zum 3. mal festgestellt, dass das XiaomiBTLESens-Modul mein komplettes FHEM lahmgelegt hat!
Diesmal war die Logmeldung die folgende:Code Auswählen2020.08.23 22:25:54 1: Timeout for FHEM::XiaomiBTLESens::ExecGatttool_Run reached, terminated process 755
Connection to 10.0.0.211 closed by remote host.
(10.0.0.211 ist mein RasPi)
Daraufhin ist FHEM komplett nicht mehr ansprechbar. Laut htop hat der FHEM-Rechner aber auch keine Last in der Zeit. Der Raspberry ist auch ansprechbar. Starte ich den Raspberry dann neu, ist FHEM nach ca. 5 Sekunden wieder normal am Start.
Was kann es damit auf sich haben?
Zitat von: CoolTux am 31 August 2020, 11:45:39
Ohne genauere Logausgaben kann man dazu schwer was sagen.
Da die Abfrage der Sensoren nonBlocking passiert sollte FHEM nicht blockiert werden.
(XiaomiBTLE).*:(ExecGatttool).*
Hygro_Wohnzimmer:lastGattError:.* //funktioniert für "normale" Fehler des Geräts, z.B. "Transport endpoint is not connected (107)" oder "no data response"
XiaomiBTLE.*:(ExecGatttool).*
XiaomiBTLE.*:ExecGatttool.*
XiaomiBTLESens:.*
2020.10.02 10:41:10 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:11 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:12 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:13 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:14 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:15 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:16 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:17 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:18 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:19 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:20 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:21 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:23 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:24 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:25 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:26 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:27 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:28 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:29 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:30 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:31 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:32 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:33 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:34 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:35 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:36 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:37 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:38 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:40 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:41 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:42 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:43 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:44 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:45 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:46 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:47 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:48 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:49 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:50 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:51 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:52 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:53 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:54 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:55 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:57 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:58 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:41:59 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:00 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:01 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:02 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:03 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:04 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:05 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:06 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:07 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:08 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:09 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:10 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:11 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:13 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:14 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:15 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:16 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:17 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:18 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:19 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:20 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:21 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:22 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:23 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:24 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:25 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:26 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:27 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:28 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:29 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:31 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:32 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:33 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:34 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:35 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:36 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:37 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:38 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:39 3: XiaomiBTLESens (Hygro_Wohnzimmer) - ExecGatttool_Run: another gatttool process is running. waiting...
2020.10.02 10:42:40 1: Timeout for FHEM::XiaomiBTLESens::ExecGatttool_Run reached, terminated process 19914
l Schuurtemp
Internals:
BTMAC 58:2D:34:10:C8:6B
DEF 58:2D:34:10:C8:6B
FUUID 5f8b4583-f33f-c802-1596-13eb0ea5d655ee50
FVERSION 74_XiaomiBTLESens.pm:v3.0.0-s22474/2020-07-26
INTERVAL 300
NAME Schuurtemp
NOTIFYDEV global,Schuurtemp
NR 20
NTFY_ORDER 50-Schuurtemp
STATE T: 0 H: 0
TYPE XiaomiBTLESens
VERSION v3.0.0
loglevel 4
READINGS:
2020-10-28 06:49:24 batteryPercent 116
2020-10-28 06:49:24 batteryState ok
2020-10-17 20:27:46 firmware 1.1.2_0020
2020-10-28 06:49:24 humidity 0
2020-10-18 13:21:46 lastGattError The BlockingCall Process terminated unexpectedly. Timedout
2020-10-28 06:49:24 state T: 0 H: 0
2020-10-28 06:49:24 temperature 0
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1603867764.15303
updateTimestampCallBattery 2020-10-28 06:49:24
Attributes:
model clearGrassSens
room XiaomiBTLESens
verbose 5
2020.10.28 06:49:18 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: Execute Command ps ax | grep -E [g]atttool -i hci0 -b 58:2D:34:10:C8:6B
2020.10.28 06:49:18 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 58:2D:34:10:C8:6B --char-read -a 0x3b 2>&1 and loop 0
2020.10.28 06:49:24 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,5d f7 0e 85 34 ab 77 74 99 3b 89 95
2020.10.28 06:49:24 4: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,5d f7 0e 85 34 ab 77 74 99 3b 89 95
2020.10.28 06:49:24 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Done: gatttool return string: Schuurtemp|58:2D:34:10:C8:6B|ok|read|0x3b|{"gtResult":"5d f7 0e 85 34 ab 77 74 99 3b 89 95 "}
2020.10.28 06:49:24 4: XiaomiBTLESens (Schuurtemp) - ProcessingNotification
2020.10.28 06:49:24 4: XiaomiBTLESens (Schuurtemp) - ProcessingNotification: handle 0x3b
2020.10.28 06:49:24 4: XiaomiBTLESens (Schuurtemp) - Clear Grass Sens Handle0x3b
2020.10.28 06:49:24 4: XiaomiBTLESens (Schuurtemp) - WriteReadings: Readings were written
2020.10.28 06:49:24 4: XiaomiBTLESens (Schuurtemp) - Run CreateParamGatttool with mod: read
2020.10.28 06:49:24 5: XiaomiBTLESens (Schuurtemp) - Read XiaomiBTLESens_ExecGatttool_Run Schuurtemp|58:2D:34:10:C8:6B|read|0x1e
2020.10.28 06:49:24 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: Execute Command ps ax | grep -E [g]atttool -i hci0 -b 58:2D:34:10:C8:6B
2020.10.28 06:49:24 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 58:2D:34:10:C8:6B --char-read -a 0x1e 2>&1 and loop 0
2020.10.28 06:49:24 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,05
2020.10.28 06:49:24 4: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,05
2020.10.28 06:49:24 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Done: gatttool return string: Schuurtemp|58:2D:34:10:C8:6B|ok|read|0x1e|{"gtResult":"05 "}
2020.10.28 06:49:24 4: XiaomiBTLESens (Schuurtemp) - ProcessingNotification
2020.10.28 06:49:24 4: XiaomiBTLESens (Schuurtemp) - ProcessingNotification: handle 0x1e
2020.10.28 06:49:24 4: XiaomiBTLESens (Schuurtemp) - Clear Grass Sens Handle0x1e
2020.10.28 06:49:24 1: PERL WARNING: substr outside of string at ./FHEM/74_XiaomiBTLESens.pm line 1321.
2020.10.28 06:49:24 3: eval: {FHEM::XiaomiBTLESens::ExecGatttool_Done('Schuurtemp|58:2D:34:10:C8:6B|ok|read|0x1e|{"gtResult":"05 "}')}
2020.10.28 06:49:24 1: PERL WARNING: Use of uninitialized value in hex at ./FHEM/74_XiaomiBTLESens.pm line 1321.
2020.10.28 06:49:24 3: eval: {FHEM::XiaomiBTLESens::ExecGatttool_Done('Schuurtemp|58:2D:34:10:C8:6B|ok|read|0x1e|{"gtResult":"05 "}')}
2020.10.28 06:49:24 1: PERL WARNING: substr outside of string at ./FHEM/74_XiaomiBTLESens.pm line 1322.
2020.10.28 06:49:24 3: eval: {FHEM::XiaomiBTLESens::ExecGatttool_Done('Schuurtemp|58:2D:34:10:C8:6B|ok|read|0x1e|{"gtResult":"05 "}')}
2020.10.28 06:49:24 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/74_XiaomiBTLESens.pm line 1322.
2020.10.28 06:49:24 3: eval: {FHEM::XiaomiBTLESens::ExecGatttool_Done('Schuurtemp|58:2D:34:10:C8:6B|ok|read|0x1e|{"gtResult":"05 "}')}
2020.10.28 06:49:24 4: XiaomiBTLESens (Schuurtemp) - WriteReadings: Readings were written
Zitat von: kroonen am 28 Oktober 2020, 07:55:42
Hi,
I'm trying to get the Xiaomi CCG1 to work with FHEM, but I get values for temp and humidity 0.
The temp should be 12.9 and humidity should be 80.6%Code Auswählen
l Schuurtemp
Internals:
BTMAC 58:2D:34:10:C8:6B
DEF 58:2D:34:10:C8:6B
FUUID 5f8b4583-f33f-c802-1596-13eb0ea5d655ee50
FVERSION 74_XiaomiBTLESens.pm:v3.0.0-s22474/2020-07-26
INTERVAL 300
NAME Schuurtemp
NOTIFYDEV global,Schuurtemp
NR 20
NTFY_ORDER 50-Schuurtemp
STATE T: 0 H: 0
TYPE XiaomiBTLESens
VERSION v3.0.0
loglevel 4
READINGS:
2020-10-28 06:49:24 batteryPercent 116
2020-10-28 06:49:24 batteryState ok
2020-10-17 20:27:46 firmware 1.1.2_0020
2020-10-28 06:49:24 humidity 0
2020-10-18 13:21:46 lastGattError The BlockingCall Process terminated unexpectedly. Timedout
2020-10-28 06:49:24 state T: 0 H: 0
2020-10-28 06:49:24 temperature 0
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1603867764.15303
updateTimestampCallBattery 2020-10-28 06:49:24
Attributes:
model clearGrassSens
room XiaomiBTLESens
verbose 5
and the logging verbose 5Code Auswählen
2020.10.28 06:49:18 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: Execute Command ps ax | grep -E [g]atttool -i hci0 -b 58:2D:34:10:C8:6B
2020.10.28 06:49:18 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 58:2D:34:10:C8:6B --char-read -a 0x3b 2>&1 and loop 0
2020.10.28 06:49:24 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,5d f7 0e 85 34 ab 77 74 99 3b 89 95
2020.10.28 06:49:24 4: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,5d f7 0e 85 34 ab 77 74 99 3b 89 95
2020.10.28 06:49:24 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Done: gatttool return string: Schuurtemp|58:2D:34:10:C8:6B|ok|read|0x3b|{"gtResult":"5d f7 0e 85 34 ab 77 74 99 3b 89 95 "}
2020.10.28 06:49:24 4: XiaomiBTLESens (Schuurtemp) - ProcessingNotification
2020.10.28 06:49:24 4: XiaomiBTLESens (Schuurtemp) - ProcessingNotification: handle 0x3b
2020.10.28 06:49:24 4: XiaomiBTLESens (Schuurtemp) - Clear Grass Sens Handle0x3b
2020.10.28 06:49:24 4: XiaomiBTLESens (Schuurtemp) - WriteReadings: Readings were written
2020.10.28 06:49:24 4: XiaomiBTLESens (Schuurtemp) - Run CreateParamGatttool with mod: read
2020.10.28 06:49:24 5: XiaomiBTLESens (Schuurtemp) - Read XiaomiBTLESens_ExecGatttool_Run Schuurtemp|58:2D:34:10:C8:6B|read|0x1e
2020.10.28 06:49:24 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: Execute Command ps ax | grep -E [g]atttool -i hci0 -b 58:2D:34:10:C8:6B
2020.10.28 06:49:24 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: call gatttool with command: gatttool -i hci0 -b 58:2D:34:10:C8:6B --char-read -a 0x1e 2>&1 and loop 0
2020.10.28 06:49:24 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: gatttool loop result Characteristic value/descriptor,05
2020.10.28 06:49:24 4: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,05
2020.10.28 06:49:24 5: XiaomiBTLESens (Schuurtemp) - ExecGatttool_Done: gatttool return string: Schuurtemp|58:2D:34:10:C8:6B|ok|read|0x1e|{"gtResult":"05 "}
2020.10.28 06:49:24 4: XiaomiBTLESens (Schuurtemp) - ProcessingNotification
2020.10.28 06:49:24 4: XiaomiBTLESens (Schuurtemp) - ProcessingNotification: handle 0x1e
2020.10.28 06:49:24 4: XiaomiBTLESens (Schuurtemp) - Clear Grass Sens Handle0x1e
2020.10.28 06:49:24 1: PERL WARNING: substr outside of string at ./FHEM/74_XiaomiBTLESens.pm line 1321.
2020.10.28 06:49:24 3: eval: {FHEM::XiaomiBTLESens::ExecGatttool_Done('Schuurtemp|58:2D:34:10:C8:6B|ok|read|0x1e|{"gtResult":"05 "}')}
2020.10.28 06:49:24 1: PERL WARNING: Use of uninitialized value in hex at ./FHEM/74_XiaomiBTLESens.pm line 1321.
2020.10.28 06:49:24 3: eval: {FHEM::XiaomiBTLESens::ExecGatttool_Done('Schuurtemp|58:2D:34:10:C8:6B|ok|read|0x1e|{"gtResult":"05 "}')}
2020.10.28 06:49:24 1: PERL WARNING: substr outside of string at ./FHEM/74_XiaomiBTLESens.pm line 1322.
2020.10.28 06:49:24 3: eval: {FHEM::XiaomiBTLESens::ExecGatttool_Done('Schuurtemp|58:2D:34:10:C8:6B|ok|read|0x1e|{"gtResult":"05 "}')}
2020.10.28 06:49:24 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/74_XiaomiBTLESens.pm line 1322.
2020.10.28 06:49:24 3: eval: {FHEM::XiaomiBTLESens::ExecGatttool_Done('Schuurtemp|58:2D:34:10:C8:6B|ok|read|0x1e|{"gtResult":"05 "}')}
2020.10.28 06:49:24 4: XiaomiBTLESens (Schuurtemp) - WriteReadings: Readings were written
Zitat von: Holger S am 03 Dezember 2020, 19:12:30
Bei welchem Model
Zitat von: Deco am 03 Dezember 2020, 21:10:33
Hallo, die zweite Gen, also die eckigen.
Edit: Genauer LYWSD03MMC
2020.12.08 14:27:20 4: XiaomiBTLESens (Wohnzimmer.temp) - ExecGatttool_Run: gatttool result Characteristic value/descriptor,31 2e 30 2e 30 5f 30 31 30 39 00
2020.12.08 14:28:34 4: XiaomiBTLESens (Wohnzimmer.temp) - WriteReadings: Readings were written
2020.12.08 14:28:34 4: XiaomiBTLESens (Wohnzimmer.temp) - ExecGatttool_Aborted:The BlockingCall Process terminated unexpectedly. Timedout
Zitat von: CoolTux am 08 Dezember 2020, 19:34:51
Wie weit ist der Sensor entfernt?
READINGS:
2020-12-16 16:09:34 batteryPercent 399616
2020-12-16 16:09:34 batteryState ok
2020-12-16 16:12:26 firmware
2020-12-16 16:35:36 humidity 394.5
2020-12-16 16:10:56 lastGattError Attribute can't be written
2020-12-16 16:35:36 state T: 11.4 H: 394.5
2020-12-16 16:35:36 temperature 11.4
2020-12-28 13:42:50 XiaomiBTLESens Blume10 minMoisture ok
2020-12-28 13:42:50 XiaomiBTLESens Blume10 maxMoisture ok
2020-12-28 13:42:50 XiaomiBTLESens Blume10 minTemp ok
Internals:
BTMAC C4:7C:8D:65:EA:0B
DEF C4:7C:8D:65:EA:0B
FUUID 5c42ee45-f33f-97bf-55a4-bd59c7cd8d4bed81
FVERSION 74_XiaomiBTLESens.pm:v3.0.0-s22474/2020-07-26
INTERVAL 14400
NAME Blume10
NOTIFYDEV global,Blume10
NR 2757
NTFY_ORDER 50-Blume10
STATE M[20]: 23   B(99)     T: 19.0°C   Lx: 248   Ft: 65   <style="text-align:right">12-28</style>
TYPE XiaomiBTLESens
VERSION v3.0.0
loglevel 4
READINGS:
2020-08-21 15:32:45 BatterieWechsel 01.09.2020 (8 Monate, last 01.12.2019 10.04.2019)
2020-12-28 01:35:59 OldMoist 23
2020-12-28 09:42:10 batteryPercent 99
2020-12-28 09:42:10 batteryState ok
2020-12-28 13:42:50 fertility 65
2020-12-28 09:42:10 firmware 3.1.9
2020-12-22 07:37:46 lastGattError Function not implemented (38)
2020-12-28 13:42:50 lux 248
2020-12-28 13:42:50 moisture 23
2020-12-28 13:42:50 state active
2020-12-28 13:42:50 temperature 19
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1609144930.06366
updateTimestampCallBattery 2020-12-28 09:42:10
Attributes:
alias Elefantenfuss
devStateStyle style="text-align:left"
event-on-change-reading moisture,batteryState,batteryPercent
group BLUMEN
hciDevice hci1
interval 14400
maxMoisture 50
minMoisture 20
minTemp 15
model flowerSens
room Favourites,AllRooms->Wohnung
sortby 04
sshHost pizero
stateFormat {MyFlowerCheck($name)}
verbose 0
webCmd upd
Zitat von: Jamo am 28 Dezember 2020, 13:52:12
Hallo Cooltux,
obwohl event-on-change-reading nur auf "moisture" (und battery..) gesetzt ist, werden trotzdem immer folgende events gefeuert.
Ich habe 13 Blumensensoren, und es werden jedes interval 13*3=39 für mich unnötige Events generiert. Wie kann ich das abstellen?
Ich versuche gerade im Zuge der Optimierung des Systems die Anzahl der Events zu reduzieren, und ich denke das sollte im Modul geändert werden
Events:Code Auswählen2020-12-28 13:42:50 XiaomiBTLESens Blume10 minMoisture ok
2020-12-28 13:42:50 XiaomiBTLESens Blume10 maxMoisture ok
2020-12-28 13:42:50 XiaomiBTLESens Blume10 minTemp ok
List einer BlumeCode AuswählenInternals:
BTMAC C4:7C:8D:65:EA:0B
DEF C4:7C:8D:65:EA:0B
FUUID 5c42ee45-f33f-97bf-55a4-bd59c7cd8d4bed81
FVERSION 74_XiaomiBTLESens.pm:v3.0.0-s22474/2020-07-26
INTERVAL 14400
NAME Blume10
NOTIFYDEV global,Blume10
NR 2757
NTFY_ORDER 50-Blume10
STATE M[20]: 23   B(99)     T: 19.0°C   Lx: 248   Ft: 65   <style="text-align:right">12-28</style>
TYPE XiaomiBTLESens
VERSION v3.0.0
loglevel 4
READINGS:
2020-08-21 15:32:45 BatterieWechsel 01.09.2020 (8 Monate, last 01.12.2019 10.04.2019)
2020-12-28 01:35:59 OldMoist 23
2020-12-28 09:42:10 batteryPercent 99
2020-12-28 09:42:10 batteryState ok
2020-12-28 13:42:50 fertility 65
2020-12-28 09:42:10 firmware 3.1.9
2020-12-22 07:37:46 lastGattError Function not implemented (38)
2020-12-28 13:42:50 lux 248
2020-12-28 13:42:50 moisture 23
2020-12-28 13:42:50 state active
2020-12-28 13:42:50 temperature 19
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1609144930.06366
updateTimestampCallBattery 2020-12-28 09:42:10
Attributes:
alias Elefantenfuss
devStateStyle style="text-align:left"
event-on-change-reading moisture,batteryState,batteryPercent
group BLUMEN
hciDevice hci1
interval 14400
maxMoisture 50
minMoisture 20
minTemp 15
model flowerSens
room Favourites,AllRooms->Wohnung
sortby 04
sshHost pizero
stateFormat {MyFlowerCheck($name)}
verbose 0
webCmd upd
Zitat von: Jamo am 28 Dezember 2020, 14:01:58
Hallo Cooltux,
ja, das habe ich mir schon gedacht, aber die Frage war ob Du als Modulautor das ändern kannst/willst.
Es gibt gerade eine Diskussion dazu, und es wurde angeregt, evtl auch den Modulautor anzusprechen.
https://forum.fhem.de/index.php/topic,117075.msg1114327.html#msg1114327
Geruhsame Tage!
Zitat von: CoolTux am 04 Dezember 2020, 14:42:02
Ich schaue mal ob ich das gefixt bekomme
Zitat von: kurt6908 am 30 Dezember 2020, 20:35:14
Hallo,
ich habe das gleiche Temperatur-Problem. Bei Temperaturen < 0 Grad, zeigt das Model mijiaLYWSD03MMC über 650 Grad an:
Gibts dazu schon ein Update?
Viele Grüße
Kurt
Zitat von: ToKa am 01 Januar 2021, 14:49:37
... Ihr setzt die Thermometer also auch Outdoor ein. Sind die dafür geeignet und der falsche Wert ist nur ein Modulproblem? ...
... Verträgt sich das 74_XiaomiBTLESens Modul mit dem Presence Modul bzw. lepresenced, das ja auch die BTLE (hcitool) Technik nutzt?
Jan 4 20:23:45 starhome lepresenced[16291]: [tid:2] main::bluetooth_dump_thread: Received '< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2', telling hcidump and hcitool to restart...
Jan 4 20:23:45 starhome lepresenced[16291]: [tid:2] main::bluetooth_dump_thread: restarting hcidump...
Jan 4 20:23:57 starhome lepresenced[16291]: [tid:1] main::bluetooth_scan_thread: restarting hcitool...
Jan 4 20:23:59 starhome lepresenced[16291]: [tid:2] main::bluetooth_dump_thread: Received '< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2', telling hcidump and hcitool to restart...
Jan 4 20:23:59 starhome lepresenced[16291]: [tid:2] main::bluetooth_dump_thread: restarting hcidump...
Jan 4 20:23:59 starhome lepresenced[16291]: [tid:1] main::bluetooth_scan_thread: restarting hcitool...
Jan 4 20:24:01 starhome lepresenced[16291]: [tid:2] main::bluetooth_dump_thread: Received '< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2', telling hcidump and hcitool to restart...
Jan 4 20:24:01 starhome lepresenced[16291]: [tid:2] main::bluetooth_dump_thread: restarting hcidump...
Jan 4 20:24:01 starhome lepresenced[16291]: [tid:1] main::bluetooth_scan_thread: restarting hcitool...
Jan 4 20:24:07 starhome lepresenced[16291]: [tid:2] main::bluetooth_dump_thread: Received '< HCI Command: Disconnect (0x01|0x0006) plen 3', telling hcidump and hcitool to restart...
Jan 4 20:24:07 starhome lepresenced[16291]: [tid:2] main::bluetooth_dump_thread: restarting hcidump...
Jan 4 20:24:07 starhome lepresenced[16291]: [tid:1] main::bluetooth_scan_thread: restarting hcitool...
Jan 4 20:24:08 starhome lepresenced[16291]: [tid:1] main::bluetooth_scan_thread: Received 'Set scan parameters failed: Input/output error', resetting...
Jan 4 20:24:08 starhome lepresenced[16291]: [tid:1] main::bluetooth_scan_thread: hcitool exited, retrying...
Zitat von: Deco am 03 Dezember 2020, 17:00:24
Hallo,
nun sind draußen wieder negative Temperaturen in unseren Breitengraden und mir fiel gestern auf, dass meinem Sensor wohl heiß wird ;D
Spaß bei Seite, die Temperaturen im negativen Bereich wird wohl nicht korrekt ausgewertet. Ich hatte relativ weit vorne hier im Thread bereits davon gelesen, dass dieses Problem behoben sein sollte, allerdings ist es das in der aktuellen Version scheinbar nicht?!
Anbei ein Screenshot dazu.
Gruß Deco
Zitat von: ToKa am 04 Januar 2021, 20:27:48
Hallo zusammen,
die LYWSD03MMC sind eingetroffen und ich habe einen in Betrieb genommen. Die Einbindung mit dem Modul hat schnell und gut geklappt.
Das Setzen des devicename hat leider nicht funktioniert und ich erhalte im Reading lastGattError die Nachricht "Attribute can't be written". Weiterhin bringt lepresenced bei der Abfrage der Sensordaten (zyklisch nach Intervall oder bei get sensorData) die nachfoldenden Meldungen im Systemlog:Code AuswählenJan 4 20:23:45 starhome lepresenced[16291]: [tid:2] main::bluetooth_dump_thread: Received '< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2', telling hcidump and hcitool to restart...
Jan 4 20:23:45 starhome lepresenced[16291]: [tid:2] main::bluetooth_dump_thread: restarting hcidump...
Jan 4 20:23:57 starhome lepresenced[16291]: [tid:1] main::bluetooth_scan_thread: restarting hcitool...
Jan 4 20:23:59 starhome lepresenced[16291]: [tid:2] main::bluetooth_dump_thread: Received '< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2', telling hcidump and hcitool to restart...
Jan 4 20:23:59 starhome lepresenced[16291]: [tid:2] main::bluetooth_dump_thread: restarting hcidump...
Jan 4 20:23:59 starhome lepresenced[16291]: [tid:1] main::bluetooth_scan_thread: restarting hcitool...
Jan 4 20:24:01 starhome lepresenced[16291]: [tid:2] main::bluetooth_dump_thread: Received '< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2', telling hcidump and hcitool to restart...
Jan 4 20:24:01 starhome lepresenced[16291]: [tid:2] main::bluetooth_dump_thread: restarting hcidump...
Jan 4 20:24:01 starhome lepresenced[16291]: [tid:1] main::bluetooth_scan_thread: restarting hcitool...
Jan 4 20:24:07 starhome lepresenced[16291]: [tid:2] main::bluetooth_dump_thread: Received '< HCI Command: Disconnect (0x01|0x0006) plen 3', telling hcidump and hcitool to restart...
Jan 4 20:24:07 starhome lepresenced[16291]: [tid:2] main::bluetooth_dump_thread: restarting hcidump...
Jan 4 20:24:07 starhome lepresenced[16291]: [tid:1] main::bluetooth_scan_thread: restarting hcitool...
Jan 4 20:24:08 starhome lepresenced[16291]: [tid:1] main::bluetooth_scan_thread: Received 'Set scan parameters failed: Input/output error', resetting...
Jan 4 20:24:08 starhome lepresenced[16291]: [tid:1] main::bluetooth_scan_thread: hcitool exited, retrying...
Meine G-Tags, die über lepresenced laufen gehen kurz auf disconnect und dann wieder auf present.
Läßt sich daran etwas machen oder muss ich auf einen zweiten bluetooth dongle ausweichen?
Viele Grüße
Torsten
Zitat von: ToKa am 05 Januar 2021, 07:40:33
Hallo Cooltux,
gibt es eine Empfehlung, welche Empfänger im Zusammenhang mit dem Xiaomi Sensoren am besten geeignet sind?
Viele Grüße
Zitat
Würde empfehlen, mal einen von den eckigen mit alternativer firmware zu betanken - geht OTA, wenn man ein Handy+Browser, der Zugriff auf die BT-Schnittstelle hat (bei mir funktionierte es mit Chrome + https://atc1441.github.io/TelinkFlasher.html; über den link kommt man auch an die firmware). Kann sein, dass CoolTux dann ein Log braucht, um den "neuen" Sensor dann auch einzubinden, aber mit der firmware sind die Dinger wenigstens eindeutig benannt (Teile der BT-MAC werden im Namen verwurstelt) und es entfällt die Anmelde-/Ausleseprozedur, was sich auch positiv auf die Batterielebensdauer auswirken sollte...
Zitat von: ToKa am 05 Januar 2021, 20:38:28
Hallo Cooltux,
Bluetooth 4.0 sollte doch ausreichen oder?
Beta-User hat mir in einem anderen Thread diesen Hinweis gegeben:
Bevor ich das aber ausprobiere, wollte ich Dich fragen, ob Dein Modul dann noch funktioniert bzw. ein Log genügt, um die andere firmware zu unterstützen.
Viele Grüße
Torsten
Device or resource busy (16)
Zitat von: ToKa am 08 Januar 2021, 14:26:13
Hallo Tomcat,
habe jetzt zwei eingebunden und auch mit unterschiedlichen Intervallen, wobei ich den Eindruck habe, dass das mit den Intervallen nicht wirklich greift. Es kommt trotzdem zu "Aussetzern" z.B. wird einer seit 3 Stunden nicht aktualisiert und es kommt die Fehlermeldung:Code AuswählenDevice or resource busy (16)
@CoolTux: Ist es grundsätzlich ein Problem mit mehreren Sensoren? Kannst Du da etwas machen anhand der Fehlermeldung oder benötigst Du ein Log dazu?
Viele Grüße
Torsten
Zitat von: ToKa am 08 Januar 2021, 16:57:50
Hallo CoolTux,
habe ja einen zweiten Bluetooth Empfänger (hci1) gekauft und über den laufen nur die Xiaomi Sensoren. Die G-Tags mit leprecenced über hci0.
Im Syslog finden sich auch keine Auffälligkeiten und die Intervalle für die beiden Sensoren sind entzerrt. Macht es Sinn verbose auf einen bestimmten Wert einzustellen und mitzuloggen?
VG
Torsten
Internals:
BTMAC A4:C1:38:56:4D:A1
DEF A4:C1:38:56:4D:A1
FUUID 5ff36603-f33f-2e5f-f813-bd879db8acd53cbb
FVERSION 74_XiaomiBTLESens.pm:v3.0.0-s22474/2020-07-26
INTERVAL 855
NAME E1_wz_THHY_Wand
NOTIFYDEV global,E1_wz_THHY_Wand
NR 340
NTFY_ORDER 50-E1_wz_THHY_Wand
STATE Temperatur: 21.09 °C </br>
Feuchtigkeit: 55 % </br>
Stand: 2021-01-08 19:23:00
TYPE XiaomiBTLESens
VERSION v3.0.0
loglevel 4
Helper:
DBLOG:
humidity:
logdb:
TIME 1610130180.90625
VALUE 55
temperature:
logdb:
TIME 1610130180.90625
VALUE 21.09
READINGS:
2021-01-08 08:52:12 batteryPercent 63
2021-01-08 08:52:12 batteryState ok
2021-01-07 17:46:24 devicename LYWSD03MMC
2021-01-04 20:05:22 firmware 1.0.0_0106
2021-01-08 19:23:00 humidity 55
2021-01-08 19:41:04 lastActivity 2021-01-08 19:23:00
2021-01-08 19:41:04 lastGattError no data response
2021-01-08 19:41:04 state error
2021-01-08 19:23:00 temperature 21.09
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 1610092332.59243
updateTimestampCallBattery 2021-01-08 08:52:12
Attributes:
DbLogInclude batteryPercent,batteryState,humidity,temperature
alias Thermometer Wohnzimmer
event-min-interval humidity:1800,temperature:1800
event-on-change-reading humidity,temperature,batteryPercent,batteryState,batteryState
group Heizungssteuerung
hciDevice hci1
interval 855
model mijiaLYWSD03MMC
room XiaomiBTLESens
sortby 1
stateFormat Temperatur: temperature °C </br>
Feuchtigkeit: humidity % </br>
Stand: lastActivity
userReadings lastActivity {ReadingsTimestamp ($name,"temperature","--")}
Zitat von: Holzlenkrad am 08 Februar 2021, 02:01:19
Moin CoolTux,
magst du vielleicht für die Werte, die aus dem Sensor ausgelesen werden (Temperatur usw) jeweils ein Attribut zur Kalibrierung hinzufügen? Mein Thermometer zeigt leider chronisch eine zu hohe Luftfeuchtigkeit an und ich würde einfach direkt -4.0 abziehen wollen. Dann wäre das Reading direkt schon verändert und ich muss nicht jedes Mal, wenn der Wert in der UI angezeigt oder in die InfluxDB geschrieben werden soll daran denken die Werte anzupassen.
Danke :)
2021.03.04 14:36:18 3: XiaomiBTLESens (wz_pflanze6) - ExecGatttool_Run: errorcode: "1", ErrorString: "connect: Connection refused (111)
"
2021.03.04 14:36:18 3: XiaomiBTLESens (wz_pflanze7) - ExecGatttool_Run: errorcode: "1", ErrorString: "connect: Connection refused (111)
"
2021.03.04 14:36:18 3: XiaomiBTLESens (wz_pflanze5) - ExecGatttool_Run: errorcode: "1", ErrorString: "connect: Connection refused (111)
"
2021.03.04 14:36:18 3: XiaomiBTLESens (wz_pflanze2) - ExecGatttool_Run: errorcode: "1", ErrorString: "connect: Connection refused (111)
"
2021.03.04 14:36:18 3: XiaomiBTLESens (wz_pflanze3) - ExecGatttool_Run: errorcode: "1", ErrorString: "connect: Connection refused (111)
"
2021.03.04 14:36:18 3: XiaomiBTLESens (wz_pflanze4) - ExecGatttool_Run: errorcode: "1", ErrorString: "connect: Connection refused (111)
Zitat von: Jamo am 04 März 2021, 14:58:12Danke für den Tipp!
Hallo Koersten,
Ich hatte mal die gleiche Fehlermeldung. Du kannst mal versuchen dein hci interface (bei mir hci1) neu zu starten, mit
- sudo hciconfig hci1 down
- sudo hciconfig hci1 up
Danach sollte es wieder funktionieren
sudo btmgmt le on && sudo service bluetooth restart &
(hci0 ist default da kann man das -i hci0 weglassen) oder eben für hci1 sudo btmgmt -i hci1 le on && sudo service bluetooth restart &
Zitat von: Jamo am 25 März 2021, 21:15:11
Hallo Koersten,
ich hatte jetzt auch wieder öfter Schwierigkeiten, ich weiss mein Tip mit hci0/1 up/down hat Dir nicht geholfen,
das funktioniert bei mir auch nicht immer. Ich habe jetzt aber nochmal viel gegoogled, was funktioniert isCode Auswählensudo btmgmt le on && sudo service bluetooth restart &
(hci0 ist default da kann man das -i hci0 weglassen) oder ebenCode Auswählensudo btmgmt -i hci1 le on && sudo service bluetooth restart &
ZitatInternals:
BTMAC 80:EA:CA:89:41:A6
DEF 80:EA:CA:89:41:A6
FUUID 60a90a77-f33f-5ea6-39e1-2794c8c40575fc67
FVERSION 74_XiaomiBTLESens.pm:v3.0.0-s22474/2020-07-26
INTERVAL 7200
NAME wz_pflanze1
NOTIFYDEV global,wz_pflanze1
NR 867
NTFY_ORDER 50-wz_pflanze1
STATE error
TYPE XiaomiBTLESens
VERSION v3.0.0
loglevel 4
READINGS:
2021-05-22 16:16:37 lastGattError No route to host (113)
2021-05-22 16:16:37 state error
helper:
CallBattery 0
CallSensDataCounter 0
updateTimeCallBattery 0
Attributes:
alias Erster Sensor
interval 7200
model flowerSens
room XiaomiBTLESens
Zitat von: knxler am 22 Mai 2021, 16:28:05Nutzt den internen BT Chip oder hast Du noch einen zusätzliche BT Dongle eingesteckt?
Unter linux wird er Sensor auf dem PI gefunden. Wenn ich dann in Fehm "get firmware" abrufe bekomme ich die Fehlermeldung No route to host(113) geliefert. Hat einer einen Tip für mich an was das liegt?
Zitatsudo gatttool -b 80:EA:CA:89:41:A6 -Iund in meiner Logdatei von Fehm seht folgendes
[80:EA:CA:89:41:A6][LE]> connect
Attempting to connect to 80:EA:CA:89:41:A6
Connection successful
Notification handle = 0x0021 value: 00
Notification handle = 0x0021 value: 00
Notification handle = 0x0021 value: 00
[80:EA:CA:89:41:A6][LE]>
(gatttool:3934): GLib-WARNING **: 22:32:14.523: Invalid file descriptor.
Zitat2021.05.23 00:00:17.251 4: XiaomiBTLESens (wz_pflanze1) - Run CreateParamGatttool with mod: read
2021.05.23 00:00:17.381 4: XiaomiBTLESens (wz_pflanze1) - stateRequestTimer: Call Request Timer
2021.05.23 00:00:18.276 3: XiaomiBTLESens (wz_pflanze1) - ExecGatttool_Run: errorcode: "1", ErrorString: "connect: No route to host (113)
"
2021.05.23 00:00:18.277 4: XiaomiBTLESens (wz_pflanze1) - ExecGatttool_Run: gatttool result connect,No route to host (113)
2021.05.23 00:00:18.290 4: XiaomiBTLESens (wz_pflanze1) - ProcessingErrors
2021.05.23 00:00:18.305 4: XiaomiBTLESens (wz_pflanze1) - WriteReadings: Readings were written
Zitathcitool lescan
LE Scan ...
80:EA:CA:89:41:E0 Flower care
Zitat von: CoolTux am 08 Februar 2021, 06:13:04
Kann ich mir bei Gelegenheit gerne anschauen.
Zitat von: Holzlenkrad am 25 Juni 2021, 05:31:56
Hey,
hattest du schon mal Gelegenheit dir das anzugucken? Sollte ja nicht so umfangreich sein. :)
Sonst würde ich mir selbst mal angucken, wie die Scripte für FHEM aufgebaut sind.
Zitat von: Pati_Alpha am 14 Januar 2020, 10:49:19
Die Befürchtung habe ich auch. Aber ich habe auch hier und da gelesen, dass der RPi mit nem aktuellen Linux Kernel noch Probleme mit dem BT hat? Denn bevor ich den ganzen Kram auf Buster geupdated habe, hatte ich diese Probleme nicht!
Ich hab mir als Workaround jetzt auch erstmal ein DOIF gebaut, was einfach auf dem RPi das BT resetted sobald der Xiaomi auf ERROR steht. Nicht schön, aber funktioniert. Triggert aber tatsächlich 1x täglich. Das war vor Buster DEFINITIV nicht so!
Zitat von: persching am 03 Oktober 2021, 12:55:12
Ich habe (versehentlich) 2 Xiaomi MCCGQ02HL Fensterkontakte mit BT LE bestellt (wollte eigentlich die mit Zigbee). Die Retoure ist hier nicht so besonders wirtschaftlich und ich dachte, vielleicht kann ich sie ja in dem Raum nutzen wo mein FHEM Rechner steht.
Leider musste ich feststellen, dass dieses Modul diesen Sensor nicht kennt. Wie kann man den einbinden? bzw. kann ich hier unterstützen, damit dieses Modul zukünftig in FHEM funktioniert?
Zitat von: persching am 03 Oktober 2021, 17:01:01
Ist es denn eine große Anpassung hier einen weiteren Sensor dazu zu nehmen? Ich meine die Basis ist ja immer BTLE. Ich würde auch den Sensor zur Implementierung spendieren! ;)
Zitat von: moppy am 17 Dezember 2021, 09:34:33
Hi! Habe mir einen HHCC Flower Care Max gekauft, quasi ein etwas größerer Flowercare mit Akku den man dann auch über USB aufladen kann. In der App funktioniert der Sensor wie schon vorher die kleineren FlowerCare Sensoren. In Fhem kann die Firmware und Battery ausgelesen werden, jedoch übertragt es keine weiteren Werte.
lastGattError
Function not implemented (38)
Wäre es möglich, den Sensor gangbar zu machen? Kann gerne weitere Details dazu liefern.
lg Emanuel
$readings{'temperature'} = hex( "0x" . $splitVal[1] . $splitVal[0] ) / 100;
$readings{'temperature'} = hex( "0x" . $splitVal[1] . $splitVal[0] );
if ($readings{'temperature'} > 20000){
$readings{'temperature'}=(-65536 + $readings{'temperature'});
}
$readings{'temperature'}=$readings{'temperature'}/100;
attr AZ.Thermo userattr K2.Thermo K2.Thermo_map room_map structexclude
attr AZ.Thermo alias Arbeitszimmer Thermo-/Hygrometer
attr AZ.Thermo appOptions { "template": "thermometer" }
attr AZ.Thermo group Sensoren
attr AZ.Thermo hciDevice hci0
attr AZ.Thermo icon temperature_humidity
attr AZ.Thermo interval 7200
attr AZ.Thermo model mijiaLYWSD03MMC
attr AZ.Thermo room 12_Arbeitszimmer,XiaomiBTLESens
attr AZ.Thermo userReadings temp {sprintf("%.1f °C",ReadingsNum($name,"temperature",0))}
setstate AZ.Thermo T: 22.94 H: 53 D: 12.8
setstate AZ.Thermo 2022-01-20 10:10:26 batteryPercent 63
setstate AZ.Thermo 2022-01-20 10:10:26 batteryState ok
setstate AZ.Thermo 2022-01-20 10:10:37 dewpoint 12.8
setstate AZ.Thermo 2021-03-17 14:19:30 firmware 1.0.0_0109
Zitat von: Beta-User am 06 Januar 2021, 17:50:08Prinzipiell glaube ich, dass es für diese Sensoren besser ist, die umzuflashen (https://github.com/pvvx/ATC_MiThermometer), leider kann das Modul hier das (noch) nicht, es müßte jemand den Code erweitern...
Also: die LYWSD03MMC geben ihre Daten mit der Original-firmware nur preis, wenn man sich darauf einloggt. Das sperrt aber offenkundig die Schnittstelle für die Zeit, womit praktisch alle Lösungen ein Problem haben (das Modul hier kann (derzeit) nur einen gleichzeitig und OpenMQTTGateway auf ESP32 kommt damit uU. auch aus dem Tritt, wobei das auch andere Gründe haben kann).
Zitat von: CoolTux am 15 Januar 2022, 20:47:44
Traut sich jemand zu das mal zu testen
https://git.cooltux.net/FHEM/mod-XiaomiBTLESens/raw/branch/devel/74_XiaomiBTLESens.pm
Ich habe einiges geändert. Bitte beim testen das Logfile im Auge behalten.
setstate KUE.Thermo 2022-01-20 14:48:14 state T: -4.48 H: 69
setstate KUE.Thermo 2022-01-20 14:48:14 temp -4.5 °C
setstate KUE.Thermo 2022-01-20 14:48:14 temperature -4.48
Zitat von: CoolTux am 20 Januar 2022, 16:46:21
Ich habe die neue Version eingecheckt.
Zitat von: marboj am 20 Januar 2022, 17:05:47
Muss ich die manuell eingespielte Version jetzt löschen? Oder wird das künftig trotzdem aktualisiert?
Zitat von: Beta-User am 20 Januar 2022, 11:38:23
Hmm, leider finde ich die Fundstelle grade nicht, meine aber, dass das mit den falschen Batterie-Werten ein allg. Problem bei denen (mit der original-firmware) sei.
Das mit dem Hängenbleiben dürfte mit dem Erfordernis des Einloggens zu tun haben:Prinzipiell glaube ich, dass es für diese Sensoren besser ist, die umzuflashen (https://github.com/pvvx/ATC_MiThermometer), leider kann das Modul hier das (noch) nicht, es müßte jemand den Code erweitern...
Zitat von: CoolTux am 21 Januar 2022, 07:34:06
Nein. Das Modul liest direkt den Sensor aus und schreibt was dieser übertragt. Wenn die Daten nicht valide aus dem Sensor kommen kann ich da leider nichts machen.
Zitat von: marboj am 20 Januar 2022, 14:49:40
Hab es mal in das Gefrierfach gelegt. Sieht gut aus...Code Auswählensetstate KUE.Thermo 2022-01-20 14:48:14 state T: -4.48 H: 69
setstate KUE.Thermo 2022-01-20 14:48:14 temp -4.5 °C
setstate KUE.Thermo 2022-01-20 14:48:14 temperature -4.48
Zitat von: ares am 26 Februar 2022, 12:45:34
Ist geplant, eine Unterstützung für die Xiaomi Mi Scale umzusetzen?
https://github.com/lolouk44/xiaomi_mi_scale
Viele Grüße
Manfred
Zitat von: CoolTux am 26 Februar 2022, 12:48:09Da die Daten bereits mit dem Modul und falscher Device bereits im Event monitor von fhem ankommen, hatte ich gehofft, die Messdaten (nur Gewicht) ohne weitere Verarbeitung oder eigenes Modul einfach integrieren zu können.
Nein. Aber es gibt eine Alternative für FHEM, fhempy mit dem lowenergy Bluetooth
Zitat von: Beta-User am 26 Februar 2022, 13:16:52Meine Waage ist nicht mehr in Empfangsreichweite meines Raspberry im Keller mit der fhem-Installation. Ich hatte daher einen Raspberry Pi Zero 2 W geplant, der auch einen noch nicht vorhandenen FlowerSens überwachen sollte.
OpenMQTTGateway (ESP32) kann die u.a. auch...
Zitat von: ares am 27 Februar 2022, 09:18:39Der Aufwand mit einem ESP32 dürfte geringer sein wie mit dem Zero W - die "dev-boards" haben in der Regel einen Micro-USB-Anschluss, über den sie auch geflasht werden. Meine beiden sitzen je in einem alten FritzBox-Gehäuse - zusammen mit anderem "Bastelgruscht".
Ich hatte daher einen Raspberry Pi Zero 2 W geplant, der auch einen noch nicht vorhandenen FlowerSens überwachen sollte.
Mit dem ESP32 hatte ich mich bisher noch nicht befasst, da ich nicht löten kann und das auch nicht mehr lernen werde. Kann ich beim ESP32 auch einfach etwas inklusive Netzteil und ohne Löten zusammenbauen das nicht nach einer Bastellösung aussieht?
Zitat von: RudiRoechel am 26 Juli 2022, 16:30:53
Ich dachte da muss do irgendwo ein "Schalter" sein nach dem Motto: "Logge alles außer state"
define FileLog_Pflanze_01 FileLog ./log/Pflanze_01-%Y-%U.log Pflanze_01:(moisture|temperature|fertility|lux).*
2022.08.16 19:54:18 3: eval: {FHEM::XiaomiBTLESens::ExecGatttool_Done('TempHumXiaomiBLE|A4:C1:38:C2:CC:B9|ok|read|0x18|{"gtResult":"6d 69 61 6f 6d 69 61 6f 63 65 2e 63 6f 6d 00 "}')}
2022.08.16 19:54:18 1: PERL WARNING: Hexadecimal number > 0xffffffff non-portable at ./FHEM/74_XiaomiBTLESens.pm line 1115.
2022.08.16 19:54:18 3: eval: {FHEM::XiaomiBTLESens::ExecGatttool_Done('TempHumXiaomiBLE|A4:C1:38:C2:CC:B9|ok|read|0x18|{"gtResult":"6d 69 61 6f 6d 69 61 6f 63 65 2e 63 6f 6d 00 "}')}
2022.08.16 19:54:18 1: PERL WARNING: Integer overflow in hexadecimal number at ./FHEM/74_XiaomiBTLESens.pm line 1116.
2022.08.16 19:54:18 3: eval: {FHEM::XiaomiBTLESens::ExecGatttool_Done('TempHumXiaomiBLE|A4:C1:38:C2:CC:B9|ok|read|0x18|{"gtResult":"6d 69 61 6f 6d 69 61 6f 63 65 2e 63 6f 6d 00 "}')}
2022.08.16 19:54:18 1: PERL WARNING: Hexadecimal number > 0xffffffff non-portable at ./FHEM/74_XiaomiBTLESens.pm line 1116.
2022.08.16 19:54:18 3: eval: {FHEM::XiaomiBTLESens::ExecGatttool_Done('TempHumXiaomiBLE|A4:C1:38:C2:CC:B9|ok|read|0x18|{"gtResult":"6d 69 61 6f 6d 69 61 6f 63 65 2e 63 6f 6d 00 "}')}
Zitat von: Tobseb am 16 August 2022, 20:08:48
Hallo zusammen, ich versuche momentan einen Xiaomi Temperatur/Humidity Sensor in FHEM zu integrieren. Leider wird mir ein Error bzgl. Batterie-Status geworfen. Ich bekomme es bisher leider noch nicht hin Sensordaten ausgelesen zu bekommen.Code Auswählen
2022.08.16 19:54:18 3: eval: {FHEM::XiaomiBTLESens::ExecGatttool_Done('TempHumXiaomiBLE|A4:C1:38:C2:CC:B9|ok|read|0x18|{"gtResult":"6d 69 61 6f 6d 69 61 6f 63 65 2e 63 6f 6d 00 "}')}
2022.08.16 19:54:18 1: PERL WARNING: Hexadecimal number > 0xffffffff non-portable at ./FHEM/74_XiaomiBTLESens.pm line 1115.
2022.08.16 19:54:18 3: eval: {FHEM::XiaomiBTLESens::ExecGatttool_Done('TempHumXiaomiBLE|A4:C1:38:C2:CC:B9|ok|read|0x18|{"gtResult":"6d 69 61 6f 6d 69 61 6f 63 65 2e 63 6f 6d 00 "}')}
2022.08.16 19:54:18 1: PERL WARNING: Integer overflow in hexadecimal number at ./FHEM/74_XiaomiBTLESens.pm line 1116.
2022.08.16 19:54:18 3: eval: {FHEM::XiaomiBTLESens::ExecGatttool_Done('TempHumXiaomiBLE|A4:C1:38:C2:CC:B9|ok|read|0x18|{"gtResult":"6d 69 61 6f 6d 69 61 6f 63 65 2e 63 6f 6d 00 "}')}
2022.08.16 19:54:18 1: PERL WARNING: Hexadecimal number > 0xffffffff non-portable at ./FHEM/74_XiaomiBTLESens.pm line 1116.
2022.08.16 19:54:18 3: eval: {FHEM::XiaomiBTLESens::ExecGatttool_Done('TempHumXiaomiBLE|A4:C1:38:C2:CC:B9|ok|read|0x18|{"gtResult":"6d 69 61 6f 6d 69 61 6f 63 65 2e 63 6f 6d 00 "}')}
Ich habe schon geschaut ob ich am Code etwas zur möglichen Fehlerbehebung finden kann, aber ich verstehe davon nichts:
https://github.com/mhop/fhem-mirror/blob/master/fhem/FHEM/74_XiaomiBTLESens.pm#L1115
Das Gerät ist neu, testweise hab ich es kurz mit meinem Handy gekoppelt um an die MAC zu kommen - danach wieder entkoppelt. Hat in der App schon sinnvolle Werte angezeigt. Raspberry steht in der direkten Nähe, via commandline kann ich mich erfolgreich verbinden.
Irgendwelche Anhaltspunkte was ich weiter probieren kann sind sehr gerne gesehen. :'(
Zitat von: marboj am 20 Januar 2022, 11:12:21
Hallo zusammen,
habe seit einem Jahr 10 dieser Thermometer mijiaLYWSD03MMC im Einsatz. Grundsätzlich funktionieren sie.
Folgende Probleme habe ich allerdings:
- batteryPercent steht immer auf 63, egal wie neu die Batterie ist.
- Hin und wieder muss das BT neu gestartet werden, damit die Verbindung wieder funktioniert
- die im Thread schon angesprochenen Reichweitenprobleme
Habe im Thread noch keine finale Lösung für das Verbindungsproblem gefunden. Das Batterieproblem habe ich gar nicht gefunden.
Jemand eine Idee?
exemplarisch mal ein Device:Code Auswählen
attr AZ.Thermo userattr K2.Thermo K2.Thermo_map room_map structexclude
attr AZ.Thermo alias Arbeitszimmer Thermo-/Hygrometer
attr AZ.Thermo appOptions { "template": "thermometer" }
attr AZ.Thermo group Sensoren
attr AZ.Thermo hciDevice hci0
attr AZ.Thermo icon temperature_humidity
attr AZ.Thermo interval 7200
attr AZ.Thermo model mijiaLYWSD03MMC
attr AZ.Thermo room 12_Arbeitszimmer,XiaomiBTLESens
attr AZ.Thermo userReadings temp {sprintf("%.1f °C",ReadingsNum($name,"temperature",0))}
setstate AZ.Thermo T: 22.94 H: 53 D: 12.8
setstate AZ.Thermo 2022-01-20 10:10:26 batteryPercent 63
setstate AZ.Thermo 2022-01-20 10:10:26 batteryState ok
setstate AZ.Thermo 2022-01-20 10:10:37 dewpoint 12.8
setstate AZ.Thermo 2021-03-17 14:19:30 firmware 1.0.0_0109
Vielen Dank
Gruß
Marco
sub mijiaLYWSD03MMC_Handle0x38 {
### mijiaLYWSD03MMC - Read Sensor Data
my ( $hash, $notification ) = @_;
my $name = $hash->{NAME};
my %readings;
Log3( $name, 4, "XiaomiBTLESens ($name) - mijiaLYWSD03MMC Handle0x38" );
return stateRequest($hash)
unless ( $notification =~ /^([0-9a-f]{2}(\s?))*$/x );
my @splitVal = split /\s/x, $notification;
$notification =~ s/\s+//xg;
$readings{'temperature'} =
hex( "0x" . $splitVal[1] . $splitVal[0] ) > 20000
? ( -65536 + hex( "0x" . $splitVal[1] . $splitVal[0] ) ) / 100
: hex( "0x" . $splitVal[1] . $splitVal[0] ) / 100;
$readings{'humidity'} = hex( "0x" . $splitVal[2] );
$readings{'voltage'} = hex( "0x" . $splitVal[4] . $splitVal[3] ) / 1000;
$hash->{helper}{CallBattery} = 0;
return \%readings;
}
Zitat von: marboj am 11 Oktober 2022, 08:12:38
Wo genau muss ich da wie einbauen zum testen?
Gruß
Marco
$readings{'voltage'} = hex( "0x" . $splitVal[4] . $splitVal[3] ) / 1000;
$readings{'humidity'} = hex( "0x" . $splitVal[2] );
attr global exclude_from_update 74_XiaomiBTLESens.pm
Zitat von: Beta-User am 27 Februar 2022, 09:54:29
Man kann BT-LE übrigens auch mit Tasmota-ESP32 empfangen; vermutlich ginge das auch damit, ist nur noch nicht groß getestet, was die Auswertung der Daten in FHEM angeht (die JSON sind gefühlt etwas "komisch"). Will sagen: Dann geht ggf. auch ein irgendwo verbauter "normaler WLAN-Aktor" als IO-Gerät... (es gibt in der english-corner einen, der seine ewuiva-Thermostate so steuert!).
2023.06.12 08:21:39 4: XiaomiBTLESens (Pfl_Elefantenfuss) - WriteReadings: Readings were written
2023.06.12 08:21:39 4: XiaomiBTLESens (Pfl_Elefantenfuss) - ProcessingErrors
2023.06.12 08:21:39 5: XiaomiBTLESens (Pfl_Elefantenfuss) - ExecGatttool_Done: gatttool return string: Pfl_Elefantenfuss|C4:7C:8D:6C:D7:21|error|read|0x38|{"gtResult":"Function not implemented (38)"}
2023.06.12 08:21:39 4: XiaomiBTLESens (Pfl_Elefantenfuss) - ExecGatttool_Run: gatttool result connect to C4:7C:8D:6C:D7:21,Function not implemented (38)
"
2023.06.12 08:21:39 3: XiaomiBTLESens (Pfl_Elefantenfuss) - ExecGatttool_Run: errorcode: "1", ErrorString: "connect to C4:7C:8D:6C:D7:21: Function not implemented (38)
2023.06.12 08:21:39 5: XiaomiBTLESens (Pfl_Elefantenfuss) - ExecGatttool_Run: gatttool loop result connect to C4:7C:8D:6C:D7:21,Function not implemented (38)
2023.06.12 08:21:36 5: XiaomiBTLESens (Pfl_Elefantenfuss) - ExecGatttool_Run: call gatttool with command: ssh zerow 'gatttool -i hci0 -b C4:7C:8D:6C:D7:21 --char-read -a 0x38 2>&1' and loop 4
2023.06.12 08:21:36 5: XiaomiBTLESens (Pfl_Elefantenfuss) - ExecGatttool_Run: gatttool loop result connect to C4:7C:8D:6C:D7:21,Function not implemented (38)
2023.06.12 08:21:32 5: XiaomiBTLESens (Pfl_Elefantenfuss) - ExecGatttool_Run: call gatttool with command: ssh zerow 'gatttool -i hci0 -b C4:7C:8D:6C:D7:21 --char-read -a 0x38 2>&1' and loop 3
2023.06.12 08:21:32 5: XiaomiBTLESens (Pfl_Elefantenfuss) - ExecGatttool_Run: gatttool loop result connect to C4:7C:8D:6C:D7:21,Function not implemented (38)
2023.06.12 08:21:29 5: XiaomiBTLESens (Pfl_Elefantenfuss) - ExecGatttool_Run: call gatttool with command: ssh zerow 'gatttool -i hci0 -b C4:7C:8D:6C:D7:21 --char-read -a 0x38 2>&1' and loop 2
2023.06.12 08:21:29 5: XiaomiBTLESens (Pfl_Elefantenfuss) - ExecGatttool_Run: gatttool loop result connect to C4:7C:8D:6C:D7:21,Function not implemented (38)
2023.06.12 08:21:24 5: XiaomiBTLESens (Pfl_Elefantenfuss) - ExecGatttool_Run: call gatttool with command: ssh zerow 'gatttool -i hci0 -b C4:7C:8D:6C:D7:21 --char-read -a 0x38 2>&1' and loop 1
2023.06.12 08:21:24 5: XiaomiBTLESens (Pfl_Elefantenfuss) - ExecGatttool_Run: gatttool loop result connect to C4:7C:8D:6C:D7:21,Function not implemented (38)
2023.06.12 08:21:19 5: XiaomiBTLESens (Pfl_Elefantenfuss) - ExecGatttool_Run: call gatttool with command: ssh zerow 'gatttool -i hci0 -b C4:7C:8D:6C:D7:21 --char-read -a 0x38 2>&1' and loop 0
2023.06.12 08:21:18 5: XiaomiBTLESens (Pfl_Elefantenfuss) - ExecGatttool_Run: Execute Command ps ax | grep -E [g]atttool -i hci0 -b C4:7C:8D:6C:D7:21
2023.06.12 08:21:15 5: XiaomiBTLESens (Pfl_Elefantenfuss) - Read XiaomiBTLESens_ExecGatttool_Run Pfl_Elefantenfuss|C4:7C:8D:6C:D7:21|read|0x38
2023.06.12 08:21:15 4: XiaomiBTLESens (Pfl_Elefantenfuss) - Run CreateParamGatttool with mod: read
Linux zerow 6.1.21+ #1642 Mon Apr 3 17:19:14 BST 2023 armv6l GNU/Linux
cat /etc/debian_version
12.0
root@raspberrypi:/home/pi# gatttool
Usage:
gatttool [OPTION?]
Help Options:
-h, --help Show help options
--help-all Show all help options
--help-gatt Show all GATT commands
--help-params Show all Primary Services/Characteristics arguments
--help-char-read-write Show all Characteristics Value/Descriptor Read/Write arguments
Application Options:
-i, --adapter=hciX Specify local adapter interface
-b, --device=MAC Specify remote Bluetooth address
-t, --addr-type=[public | random] Set LE address type. Default: public
-m, --mtu=MTU Specify the MTU size
-p, --psm=PSM Specify the PSM for GATT/ATT over BR/EDR
-l, --sec-level=[low | medium | high] Set security level. Default: low
-I, --interactive Use interactive mode
Internals:
BTMAC 80:EA:CA:89:62:4E
DEF 80:EA:CA:89:62:4E
FUUID 64958e77-f33f-49b7-a719-70ae7cc2624a7716
FVERSION 74_XiaomiBTLESens.pm:v3.0.0-s22474/2020-07-26
INTERVAL 300
NAME BF_Tomaten1
NOTIFYDEV global,BF_Tomaten1
NR 16
NTFY_ORDER 50-BF_Tomaten1
STATE moisture% (Bat: batteryPercent%)
TYPE XiaomiBTLESens
VERSION v3.0.0
loglevel 4
READINGS:
2023-06-23 15:51:36 lastGattError Function not implemented (38)
2023-06-23 15:51:36 state error
helper:
CallBattery 0
CallSensDataCounter 0
Attributes:
model flowerSens
mqttAlias batteryPercent=batteryLevel
mqttPublish *:topic={"TulpeMD/Garden/SoilMoisture/$device/$name"}
room XiaomiBTLESens
stateFormat moisture% (Bat: batteryPercent%)
root@raspberrypi:/home/pi# gatttool -b 80:EA:CA:89:62:4E -I
[80:EA:CA:89:62:4E][LE]> connect
Attempting to connect to 80:EA:CA:89:62:4E
Error: connect error: Function not implemented (38)
[80:EA:CA:89:62:4E][LE]> connect
Attempting to connect to 80:EA:CA:89:62:4E
Error: connect error: Function not implemented (38)
[80:EA:CA:89:62:4E][LE]> connect
Attempting to connect to 80:EA:CA:89:62:4E
Error: connect error: Function not implemented (38)
[80:EA:CA:89:62:4E][LE]> connect
Attempting to connect to 80:EA:CA:89:62:4E
Error: connect error: Function not implemented (38)
[80:EA:CA:89:62:4E][LE]> connect
Attempting to connect to 80:EA:CA:89:62:4E
Error: connect error: Function not implemented (38)
[80:EA:CA:89:62:4E][LE]> connect
Attempting to connect to 80:EA:CA:89:62:4E
Error: connect error: Function not implemented (38)
[80:EA:CA:89:62:4E][LE]> connect
Attempting to connect to 80:EA:CA:89:62:4E
Error: connect error: Function not implemented (38)
[80:EA:CA:89:62:4E][LE]> exit
root@raspberrypi:/home/pi# gatttool -b 80:EA:CA:89:61:5E -I
[80:EA:CA:89:61:5E][LE]> connect
Attempting to connect to 80:EA:CA:89:61:5E
Connection successful
Notification handle = 0x0021 value: 00
Notification handle = 0x0021 value: 00
Notification handle = 0x0021 value: 00
[80:EA:CA:89:61:5E][LE]>
(gatttool:618): GLib-WARNING **: 16:13:37.758: Invalid file descriptor.
[80:EA:CA:89:61:5E][LE]> exit
root@raspberrypi:/home/pi# gatttool -b 80:EA:CA:89:67:1C -I
[80:EA:CA:89:67:1C][LE]> connect
Attempting to connect to 80:EA:CA:89:67:1C
Connection successful
Notification handle = 0x0021 value: 00
Notification handle = 0x0021 value: 00
[80:EA:CA:89:67:1C][LE]>
(gatttool:624): GLib-WARNING **: 16:14:42.341: Invalid file descriptor.
[80:EA:CA:89:67:1C][LE]> exit
root@raspberrypi:/home/pi# gatttool -b 80:EA:CA:89:62:4E -I
[80:EA:CA:89:62:4E][LE]> connect
Attempting to connect to 80:EA:CA:89:62:4E
Error: connect error: Function not implemented (38)
[80:EA:CA:89:62:4E][LE]> connect
Attempting to connect to 80:EA:CA:89:62:4E
Error: connect error: Function not implemented (38)
[80:EA:CA:89:62:4E][LE]> connect
Attempting to connect to 80:EA:CA:89:62:4E
Error: connect error: Function not implemented (38)
[80:EA:CA:89:62:4E][LE]> exit
root@raspberrypi:/home/pi#
Zitat von: Tobias am 23 Juni 2023, 16:23:17Also ist das fehlerhafte Device einfach nur defekt???