Günstiger und unauffälliger Pflanzensensor: Xiaomi Flower Monitor

Begonnen von stoxx, 17 September 2016, 14:28:54

Vorheriges Thema - Nächstes Thema

Laffer72

#240
Danke CoolTux,

mit der neuesten GitHub-Version funktioniert es jetzt.
Es klappt mit beiden Versionen (2.6.2 und 2.6.6).
State ist jetzt bei beiden, wenn die Abfrage klappt "active".
Werte kommen bei beiden Versionen an.
Raspberry Pi Rev.B, FB7390 (FHEM2FHEM), Sonos, Smarter Coffee
Osram Lightify:2m LED-Streifen, 5m-LED-Streifen, Gartenspot, Surface 28W, Classic E14,E27, Classic RGBW E27, PAR16 GU10, Plug
CUL868:FS20-ST, FS20-DI, FS20-FMS, FS20-ES1
HMUSB:HM-Sec-RHS,HM-Sec-MDIR2
Jeelink868:TX-29-IT, TFA30.315

CoolTux

Dann lassen wir das jetzt mal so stehen und schauen was die anderen die Tage sagen. Wenn das so geht erstelle ich einen eigenen Thread.
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

Pyromane

Zitat von: CoolTux am 13 November 2016, 12:48:56
Wenn du mir sagst wie ich was anpassen muß können wir gerne drüber reden.
Danke für deine Rückmeldung!

Das wären:
Kontrolldatei im Repo
optional wäre noch ein Changed File, damit man Infos zu Änderungen beim Update angezeigt werden
Ordnerstruktur/Pfad wo das Modul dann in FHEM liegen soll

Als kleine Vorlage das: ESPEasy Modul

Hagenuck1

Bei mir haut nun auch alles soweit hin :)

Den Fehler vom Freitag habe ich nun auch gefunden. Ohne -I geht's ja anscheinend gar nicht und meine Abfragen waren die hier.

Falsche von Freitag:
gatttool -I
connect C4:7C:8D:61:86:4D
char-write-cmd 0x33 A01F
char-read-hnd 0x35


Richtig von gestern ist:
gatttool -I
connect C4:7C:8D:61:86:4D
char-write-req 0x33 A01F
char-read-hnd 0x35


Und das req hatten wir ja ohne -I getestet ;)

CoolTux

Muss Dich enttäuschen. Das -I macht das Modul gar nicht.

gatttool -b $mac --char-write-req -a 0x33 -n A01F

So !acht es das Modul.
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

mi.ke

Hi Leon.

Also die 0.1.55 funktioniert gut bei mir.
Alle Sensoren haben Version 2.6.2

Nur bei der Abfrage gibt es einen Logeintrag der etwas mit der Version zutun zu haben scheint:
PERL WARNING: Use of uninitialized value $wfr in numeric eq (==) at ./FHEM/74_XiaomiFlowerSens.pm line 273.Sonst alles prima.





FHEM 5.9 | RPi4 + 5 x RPi(Z) + FB7590 + FB 6890 LTE via LAN und WAN (VPN) verbunden.
2 x CUL868 + 3 x RFXTRX(e) + 6 x HMwLanGW + 4 x z2tGw + 5 x LGW + 2 x IRBlast + CO2 +++
FS20, FHT, FMS, Elro(mod), CM160, Revolt, LGTV, STV, AVR, withings, HM-sec-*, HM-CC-RT-DN, AMAD, PCA301, arlo, Aqara

mi.ke

Tach.

Eine Frage hätte ich dann doch noch.

Ich hab jetzt wieder mehrere laufen und nach einen restart des RPi machen alle brav call data.

Problem ist, das machen sie alle gleichzeitig.
Und bei einem Standard -interval machen sie das auch nach einer Stunde wieder brav ... und wieder gleichzeitig.

Das Resultat ist, dass immer nur einer Werte bekommt, weil gatttool ja für die anderen gerade aktiv ist.

So sieht's im Log aus:

2016.11.13 14:48:28 5: Sub XiaomiFlowerSens (rmt_MI_Pflanze01) - Request Timer wird aufgerufen
2016.11.13 14:48:28 4: Sub XiaomiFlowerSens (rmt_MI_Pflanze01) - Starte Blocking Call
2016.11.13 14:48:28 4: Sub XiaomiFlowerSens_Run (rmt_MI_Pflanze01) - Running nonBlocking

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check
2016.11.13 14:48:30 5: Sub XiaomiFlowerSens (rmt_MI_Pflanze02) - Request Timer wird aufgerufen
2016.11.13 14:48:30 4: Sub XiaomiFlowerSens (rmt_MI_Pflanze02) - Starte Blocking Call
2016.11.13 14:48:30 4: Sub XiaomiFlowerSens_Run (rmt_MI_Pflanze02) - Running nonBlocking

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check
2016.11.13 14:48:31 5: Sub XiaomiFlowerSens (rmt_MI_Pflanze03) - Request Timer wird aufgerufen

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check
2016.11.13 14:48:31 4: Sub XiaomiFlowerSens (rmt_MI_Pflanze03) - Starte Blocking Call
2016.11.13 14:48:32 4: Sub XiaomiFlowerSens_Run (rmt_MI_Pflanze03) - Running nonBlocking

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check
2016.11.13 14:48:34 1: PERL WARNING: Use of uninitialized value $wfr in numeric eq (==) at ./FHEM/74_XiaomiFlowerSens.pm line 273.

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check
2016.11.13 14:48:34 5: Sub XiaomiFlowerSens (rmt_MI_Pflanze04) - Request Timer wird aufgerufen
2016.11.13 14:48:34 4: Sub XiaomiFlowerSens (rmt_MI_Pflanze04) - Starte Blocking Call
2016.11.13 14:48:34 4: Sub XiaomiFlowerSens_Run (rmt_MI_Pflanze04) - Running nonBlocking

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check
2016.11.13 14:48:36 5: Sub XiaomiFlowerSens (rmt_MI_Pflanze05) - Request Timer wird aufgerufen
2016.11.13 14:48:36 4: Sub XiaomiFlowerSens (rmt_MI_Pflanze05) - Starte Blocking Call
2016.11.13 14:48:37 4: Sub XiaomiFlowerSens_Run (rmt_MI_Pflanze05) - Running nonBlocking

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check
2016.11.13 14:48:37 1: PERL WARNING: Use of uninitialized value $wfr in numeric eq (==) at ./FHEM/74_XiaomiFlowerSens.pm line 273.
connect: Device or resource busy (16)
2016.11.13 14:48:38 4: Sub XiaomiFlowerSens_Run (rmt_MI_Pflanze03) - Rückgabe an Auswertungsprogramm beginnt

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check
2016.11.13 14:48:39 1: PERL WARNING: Use of uninitialized value $wfr in numeric eq (==) at ./FHEM/74_XiaomiFlowerSens.pm line 273.

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check
connect: Device or resource busy (16)
2016.11.13 14:48:43 4: Sub XiaomiFlowerSens_Run (rmt_MI_Pflanze05) - Rückgabe an Auswertungsprogramm beginnt
2016.11.13 14:48:43 1: Timeout for XiaomiFlowerSens_Run reached, terminated process 10009

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check
grep: Schreibfehler: Datenübergabe unterbrochen (broken pipe)
2016.11.13 14:48:43 3: (rmt_MI_Pflanze01) - The BlockingCall Process terminated unexpectedly. Timedout
2016.11.13 14:48:44 4: Sub XiaomiFlowerSens_Run (rmt_MI_Pflanze04) - Rückgabe an Auswertungsprogramm beginnt

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check
2016.11.13 14:48:45 4: Sub XiaomiFlowerSens_Done (rmt_MI_Pflanze04) - Abschluss!
2016.11.13 14:48:45 1: Timeout for XiaomiFlowerSens_Run reached, terminated process 10030
2016.11.13 14:48:46 3: (rmt_MI_Pflanze02) - The BlockingCall Process terminated unexpectedly. Timedout
grep: Schreibfehler: Datenübergabe unterbrochen (broken pipe)
2016.11.13 14:50:13 1: TRX_SECURITY_parse_X10Sec() UNDEFINED TRX_MS10A_0c44 TRX_SECURITY MS10A 0c44 motion
2016.11.13 14:50:13 3: TRX_SECURITY_parse_X10Sec() Unknown device TRX_MS10A_0c44, please define it
2016.11.13 14:53:28 5: Sub XiaomiFlowerSens (rmt_MI_Pflanze01) - Request Timer wird aufgerufen
2016.11.13 14:53:28 4: Sub XiaomiFlowerSens (rmt_MI_Pflanze01) - Starte Blocking Call
2016.11.13 14:53:28 4: Sub XiaomiFlowerSens_Run (rmt_MI_Pflanze01) - Running nonBlocking

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check
2016.11.13 14:53:31 5: Sub XiaomiFlowerSens (rmt_MI_Pflanze02) - Request Timer wird aufgerufen
2016.11.13 14:53:31 4: Sub XiaomiFlowerSens (rmt_MI_Pflanze02) - Starte Blocking Call
2016.11.13 14:53:31 4: Sub XiaomiFlowerSens_Run (rmt_MI_Pflanze02) - Running nonBlocking

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check
2016.11.13 14:53:33 5: Sub XiaomiFlowerSens (rmt_MI_Pflanze03) - Request Timer wird aufgerufen
2016.11.13 14:53:33 4: Sub XiaomiFlowerSens (rmt_MI_Pflanze03) - Starte Blocking Call
2016.11.13 14:53:33 4: Sub XiaomiFlowerSens_Run (rmt_MI_Pflanze03) - Running nonBlocking

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check
2016.11.13 14:53:35 1: PERL WARNING: Use of uninitialized value $wfr in numeric eq (==) at ./FHEM/74_XiaomiFlowerSens.pm line 273.
2016.11.13 14:53:35 5: Sub XiaomiFlowerSens (rmt_MI_Pflanze04) - Request Timer wird aufgerufen
2016.11.13 14:53:35 4: Sub XiaomiFlowerSens (rmt_MI_Pflanze04) - Starte Blocking Call

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check
2016.11.13 14:53:36 4: Sub XiaomiFlowerSens_Run (rmt_MI_Pflanze04) - Running nonBlocking

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check
2016.11.13 14:53:38 1: PERL WARNING: Use of uninitialized value $wfr in numeric eq (==) at ./FHEM/74_XiaomiFlowerSens.pm line 273.
2016.11.13 14:53:39 5: Sub XiaomiFlowerSens (rmt_MI_Pflanze05) - Request Timer wird aufgerufen
connect: Device or resource busy (16)
2016.11.13 14:53:39 4: Sub XiaomiFlowerSens_Run (rmt_MI_Pflanze03) - Rückgabe an Auswertungsprogramm beginnt
2016.11.13 14:53:39 4: Sub XiaomiFlowerSens (rmt_MI_Pflanze05) - Starte Blocking Call
2016.11.13 14:53:39 4: Sub XiaomiFlowerSens_Run (rmt_MI_Pflanze05) - Running nonBlocking

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check
2016.11.13 14:53:42 1: PERL WARNING: Use of uninitialized value $wfr in numeric eq (==) at ./FHEM/74_XiaomiFlowerSens.pm line 273.
connect: Device or resource busy (16)
2016.11.13 14:53:42 4: Sub XiaomiFlowerSens_Run (rmt_MI_Pflanze04) - Rückgabe an Auswertungsprogramm beginnt

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check
2016.11.13 14:53:43 1: Timeout for XiaomiFlowerSens_Run reached, terminated process 10219
2016.11.13 14:53:44 3: (rmt_MI_Pflanze01) - The BlockingCall Process terminated unexpectedly. Timedout
grep: Schreibfehler: Datenübergabe unterbrochen (broken pipe)

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check
2016.11.13 14:53:46 4: Sub XiaomiFlowerSens_Run (rmt_MI_Pflanze05) - Rückgabe an Auswertungsprogramm beginnt

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check
2016.11.13 14:53:47 4: Sub XiaomiFlowerSens_Done (rmt_MI_Pflanze05) - Abschluss!
2016.11.13 14:53:47 1: Timeout for XiaomiFlowerSens_Run reached, terminated process 10252
grep: Schreibfehler: Datenübergabe unterbrochen (broken pipe)
2016.11.13 14:53:47 3: (rmt_MI_Pflanze02) - The BlockingCall Process terminated unexpectedly. Timedout



Meine Frage.
Gibts einen Trick, die Abfragen zeitlich versetzt laufen zu lassen?

Cheers
FHEM 5.9 | RPi4 + 5 x RPi(Z) + FB7590 + FB 6890 LTE via LAN und WAN (VPN) verbunden.
2 x CUL868 + 3 x RFXTRX(e) + 6 x HMwLanGW + 4 x z2tGw + 5 x LGW + 2 x IRBlast + CO2 +++
FS20, FHT, FMS, Elro(mod), CM160, Revolt, LGTV, STV, AVR, withings, HM-sec-*, HM-CC-RT-DN, AMAD, PCA301, arlo, Aqara

CoolTux

Eigentlich sollten die gatttools Aufrufe sich nicht gegenseitig blockieren, so lange es nicht die selbe MAC ist. Man kann also laut BT Doku mehrere BT Endgeräte gleichzeitig abfragen. Daher habe ich einen scheck drin der zwar schaut ob das gatttool läuft, aber halt nur für die eigene MAC. Ich schaue es mir noch mal an.

Was mich bisschen wundert ist Deine

2016.11.13 14:48:34 1: PERL WARNING: Use of uninitialized value $wfr in numeric eq (==) at ./FHEM/74_XiaomiFlowerSens.pm line 273.

Meldung. Das sollte nun wirklich nicht sein. Gib mal bitte ein aktuelles list von 2 Devices.

Können bitte die anderen auch mal das log nach dieser Meldung durchsuchen. Danke
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

Pyromane

#248
Zitat von: CoolTux am 13 November 2016, 15:31:13Können bitte die anderen auch mal das log nach dieser Meldung durchsuchen. Danke

Findet sich auch in meinem Log:
PERL WARNING: Use of uninitialized value $wfr in numeric eq (==) at ./FHEM/74_XiaomiFlowerSens.pm line 273.

BTMAC      C4:7C:8D:61:5F:89
   DEF        C4:7C:8D:61:5F:89
   INTERVAL   3600
   NAME       Blume1
   NR         48
   STATE      active
   TYPE       XiaomiFlowerSens
   VERSION    0.1.55
   Helper:
     Dblog:
       Battery:
         Mydblog:
           TIME       1479047305.86783
           VALUE      100
       Fertility:
         Mydblog:
           TIME       1479047305.86783
           VALUE      0
       Firmware:
         Mydblog:
           TIME       1479047305.86783
           VALUE      2.6.2
       Lux:
         Mydblog:
           TIME       1479047305.86783
           VALUE      0
       Moisture:
         Mydblog:
           TIME       1479047305.86783
           VALUE      0
       State:
         Mydblog:
           TIME       1479047305.86783
           VALUE      active
       Temperature:
         Mydblog:
           TIME       1479047305.86783
           VALUE      0
   Readings:
     2016-11-13 15:28:25   battery         100
     2016-11-13 15:28:25   fertility       0
     2016-11-13 15:28:25   firmware        2.6.2
     2016-11-13 15:28:25   lux             0
     2016-11-13 15:28:25   moisture        0
     2016-11-13 15:28:25   state           active
     2016-11-13 15:28:25   temperature     0
   Helper:
Attributes:
   room       FlowerSens


Tante EDIT sagt:
Das ist ebenfalls noch aufgetaucht:
2016.11.13 15:27:54 1: PERL WARNING: Use of uninitialized value $wfr in numeric eq (==) at ./FHEM/74_XiaomiFlowerSens.pm line 273.
2016.11.13 15:28:09 1: Timeout for XiaomiFlowerSens_Run reached, terminated process 10746
2016.11.13 15:28:09 3: (Blume1) - The BlockingCall Process terminated unexpectedly. Timedout
connect error: Connection timed out (110)

mi.ke

Zitat von: CoolTux am 13 November 2016, 15:31:13
Was mich bisschen wundert ist Deine

2016.11.13 14:48:34 1: PERL WARNING: Use of uninitialized value $wfr in numeric eq (==) at ./FHEM/74_XiaomiFlowerSens.pm line 273.

Meldung. Das sollte nun wirklich nicht sein. Gib mal bitte ein aktuelles list von 2 Devices.



Klar, bitte sehr

Internals:
   BTMAC      C4:7C:8D:61:2A:AE
   DEF        C4:7C:8D:61:2A:AE
   INTERVAL   2300
   NAME       rmt_MI_Pflanze03
   NR         254
   STATE      unreachable
   TYPE       XiaomiFlowerSens
   VERSION    0.1.55
   Readings:
     2016-11-13 15:18:47   battery         97
     2016-11-13 15:18:47   fertility       296
     2016-11-13 15:18:47   firmware        2.6.2
     2016-11-13 15:18:47   lux             225
     2016-11-13 15:18:47   moisture        20
     2016-11-13 15:28:48   state           unreachable
     2016-11-13 15:18:47   temperature     17.6
   Helper:
Attributes:
   alias      Basilikum (Küche)
   interval   2300
   room       FlowerSens
   sortby     03
   stateFormat state
   verbose    5



Internals:
   BTMAC      C4:7C:8D:61:4F:73
   DEF        C4:7C:8D:61:4F:73
   INTERVAL   2400
   NAME       rmt_MI_Pflanze05
   NR         258
   STATE      T:17.8°C H:25% D:7 L:271 B:100
   TYPE       XiaomiFlowerSens
   VERSION    0.1.55
   Readings:
     2016-11-13 15:28:56   battery         100
     2016-11-13 15:28:56   fertility       7
     2016-11-13 15:28:56   firmware        2.6.2
     2016-11-13 15:28:56   lux             271
     2016-11-13 15:28:56   moisture        25
     2016-11-13 15:28:56   state           active
     2016-11-13 15:28:56   temperature     17.8
   Helper:
Attributes:
   alias      Kakteenblüte (Küche)
   interval   2400
   room       FlowerSens
   sortby     04
   stateFormat T:temperature°C H:moisture% D:fertility L:lux B:battery
   verbose    5

FHEM 5.9 | RPi4 + 5 x RPi(Z) + FB7590 + FB 6890 LTE via LAN und WAN (VPN) verbunden.
2 x CUL868 + 3 x RFXTRX(e) + 6 x HMwLanGW + 4 x z2tGw + 5 x LGW + 2 x IRBlast + CO2 +++
FS20, FHT, FMS, Elro(mod), CM160, Revolt, LGTV, STV, AVR, withings, HM-sec-*, HM-CC-RT-DN, AMAD, PCA301, arlo, Aqara

CoolTux

So erstmal die Sache mit der nicht definierten Variable gelöst
aktuelle Versionen hier

Bitte alle mal schauen. Sowohl die 2.6.2er als auch die 2.6.6er Kandidaten.
Über das andere mache ich mir Gedanken.
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

mi.ke

Zitat von: CoolTux am 13 November 2016, 15:55:52

Bitte alle mal schauen. Sowohl die 2.6.2er als auch die 2.6.6er Kandidaten.


Vom 2.6.2er  Kandidat:
perfekt
FHEM 5.9 | RPi4 + 5 x RPi(Z) + FB7590 + FB 6890 LTE via LAN und WAN (VPN) verbunden.
2 x CUL868 + 3 x RFXTRX(e) + 6 x HMwLanGW + 4 x z2tGw + 5 x LGW + 2 x IRBlast + CO2 +++
FS20, FHT, FMS, Elro(mod), CM160, Revolt, LGTV, STV, AVR, withings, HM-sec-*, HM-CC-RT-DN, AMAD, PCA301, arlo, Aqara

CoolTux

Kurz noch mal erklärt. Bitte lasst Eure Devices mit Verbose 5 laufen und schaut nach ungewöhnlichen Meldungen. Wenn Ihr Euch nicht Sicher seit dann einfach das ganze hier posten.



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

mi.ke

Noch ein interessantes Phänomen.

Zwei meiner Sensoren aktuallisieren sich gar nicht mehr über das Modul.
Ausgerechnet die beiden ersten.
Bei beiden werden keine Readings erzeugt.

Auch "manuell" über statusRequest kommt der timeout.

Kurz mit dem "alten" Script getestet; funktioniert.

Mit dem Modul:
Internals:
   BTMAC      C4:7C:8D:61:BA:AA
   DEF        C4:7C:8D:61:BA:AA
   INTERVAL   2100
   NAME       rmt_MI_Pflanze01
   NR         252
   STATE      unreachable
   TYPE       XiaomiFlowerSens
   VERSION    0.1.56
   Readings:
     2016-11-13 18:55:09   state           unreachable
   Helper:
Attributes:
   alias      WeihnachtsStern2015
   interval   2100
   room       FlowerSens
   sortby     01
   stateFormat state
   verbose    5



Das schreibt er ins Log:

2016.11.13 19:12:21 1: Logfile gelöscht
2016.11.13 19:12:32 4: Sub XiaomiFlowerSens (rmt_MI_Pflanze01) - Starte Blocking Call
2016.11.13 19:12:32 4: Sub XiaomiFlowerSens_Run (rmt_MI_Pflanze01) - Running nonBlocking

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check

(Sub XiaomiFlowerSens_Run) - gatttool noch aktiv, wait 0.5s for new check
2016.11.13 19:12:47 1: Timeout for XiaomiFlowerSens_Run reached, terminated process 18022
2016.11.13 19:12:48 3: (rmt_MI_Pflanze01) - The BlockingCall Process terminated unexpectedly. Timedout
grep: Schreibfehler: Datenübergabe unterbrochen (broken pipe)


MIt dem Script:


Internals:
   CFGFN
   NAME       MI_Pflanze01
   NR         345
   STATE      done
   TYPE       dummy
   Readings:
     2016-11-13 18:59:22   Battery         99
     2016-11-13 18:59:17   Duenger         353
     2016-11-13 18:59:13   Feuchtigkeit    30
     2016-11-13 18:59:25   Firmware        2.6.2
     2016-11-13 18:59:09   Lux             32
     2016-11-13 18:59:05   Temperatur      21.8
     2016-11-13 18:58:53   gattool         ---
     2016-11-13 18:58:57   gattool_35      Characteristic value/descriptor: da 00 00 20 00 00 00 1e 61 01 00 00 00 00 00 00
     2016-11-13 18:59:01   gattool_38      Characteristic value/descriptor: 63 10 32 2e 36 2e 32
     2016-11-13 18:59:29   state           done
Attributes:
   room       FlowerSens



Die anderen funktionieren klaglos!?!

Merkwürdig


FHEM 5.9 | RPi4 + 5 x RPi(Z) + FB7590 + FB 6890 LTE via LAN und WAN (VPN) verbunden.
2 x CUL868 + 3 x RFXTRX(e) + 6 x HMwLanGW + 4 x z2tGw + 5 x LGW + 2 x IRBlast + CO2 +++
FS20, FHT, FMS, Elro(mod), CM160, Revolt, LGTV, STV, AVR, withings, HM-sec-*, HM-CC-RT-DN, AMAD, PCA301, arlo, Aqara

CoolTux

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