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

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

Vorheriges Thema - Nächstes Thema

u.becker

Falls es relevant ist, ich nutze noch das "alte" 74_XiaomiFlowerSens Modul

Danke

CoolTux

Zitat von: u.becker am 09 Juli 2018, 08:39:13
Falls es relevant ist, ich nutze noch das "alte" 74_XiaomiFlowerSens Modul

Danke

Testen kann ich wenn nur mit dem aktuellen.
Könntest Du denn ohne Probleme updaten. Ich weiß nicht ob es damit besser ist. Aber ein versuch wäre es wert. Wäre auch für mich einfacher.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Tobias

@ext, bei mir habe ich einen pi zero W draußen installiert. Der hat nur fhem drauf und fragt alle BT Sensoren an und schickt die Werte mittels mqtt bridge zum Haupt fhem.
Funktioniert seit 3 Monaten problemlos

Gesendet von meinem Leap mit Tapatalk
Maintainer: Text2Speech, TrashCal, MediaList

Meine Projekte: https://github.com/tobiasfaust
* PumpControl v2: allround Bewässerungssteuerung mit ESP und FHEM
* Ein Modbus RS485 zu MQTT Gateway für SolarWechselrichter

ext23

HM, KNX, FS20, 1-Wire, PanStamp, AVR-NET-IO, EM1000EM, PCA301, EC3000, HM-LAN, CUL868, RFXtrx433, LGW, DMX @Ubuntu-Server (Hauptsystem) & Raspberry Pi (Satellit)

u.becker

So, ich habe auf das neue Modul umgestellt, aber die Ausgabe sieht etwas anders aus als beim alten Modul, den Block mit den gelesenen Werten im Klartext finde ich nicht mehr, Muss da noch was neu eingestellt werden? Hier ein Logauszug, wo in der Mail der Wert von 50 für moisture ausgegeben wird, der Trigger ist aber minmoisture=40


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

CoolTux

Ich muss Dein Notify mal versuchen bei mir nach zu stellen.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

CoolTux

Ich habe das jetzt mal einen Tag getestet, ich kann das bei mir nicht nachstellen. Tut mir leid.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

u.becker

Beim "alten" Modul gab's in der Ausgabe einen Eintrag mit "create encode json", worin die erkannten Werte lesbar waren

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}



Beim aktuellen Modul sehe ich das nicht


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?

CoolTux

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

CoolTux

Zitat von: 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 waren

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}



Beim aktuellen Modul sehe ich das nicht


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?




Ich habe in der neuen Version 2.2.0 eine Erweiterte Ausgabe eingebaut
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

Die neue Version gibt es morgen oder gleich über Github
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

FEHMPiDi

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
FHEM5.7@RaspPi.3|NanoCUL868-HM|NanoCUL868-Max|SDuino|DS18B20|1xHM-Sen-MDIR-WM55|   
2xHM-LC-Sw1PBU-FM|HM-LC-SW4-DR|I2C_MCP23017|2xMAX-ShutterContact|11xHM-LC-Bl1PBU-FM|CTW600|VCONTROL|1xHM-Sen-MDIR-O|2xMilight

CoolTux

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

Ein Maximum gibt es nicht. Aber ich denke mal so ab 10 -14 wird es eng mit dem Zeitversetzen Abfragen.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

ext23

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?

Die werden doch garnicht gekoppelt oder? Ist das nicht nur ein Broadcast was die senden?
HM, KNX, FS20, 1-Wire, PanStamp, AVR-NET-IO, EM1000EM, PCA301, EC3000, HM-LAN, CUL868, RFXtrx433, LGW, DMX @Ubuntu-Server (Hauptsystem) & Raspberry Pi (Satellit)

CoolTux

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

FEHMPiDi

Achso, vielen Dank. Dann werde ich mir mal so ein Ding besorgen und testen. Ich hoffe nur das die BT Reichweite ausreicht.
FHEM5.7@RaspPi.3|NanoCUL868-HM|NanoCUL868-Max|SDuino|DS18B20|1xHM-Sen-MDIR-WM55|   
2xHM-LC-Sw1PBU-FM|HM-LC-SW4-DR|I2C_MCP23017|2xMAX-ShutterContact|11xHM-LC-Bl1PBU-FM|CTW600|VCONTROL|1xHM-Sen-MDIR-O|2xMilight