[Xiaomi Smart Home] - Aqara Bewegungsmeldern Fehlauslösung

Begonnen von nanocosmos, 23 Oktober 2017, 07:45:47

Vorheriges Thema - Nächstes Thema

nanocosmos

Damit Probleme und deren Lösungen zum Xiaomi Smart Home besser zu identifizieren sind, habe ich hier einen neuen Thread erstellt.

Kurze Beschreibung des Problems:
Die neuen Aqara Bewegungsmeldern senden ca. 1x die Stunde einen state: motion, obwohl es keine Bewegung gab.
Auch der no-motion Zähler wird dann getriggert und zählt die Zeit seit dem Motion hoch. Es gab jedoch nachweislich keine Bewegung in den fraglichen Zeiträumen.
Ist natürlich semioptimal, wenn man die Sensoren eigentlich als Teil einer Alarmanlage nutzen möchte. [emoji4]
Mir ist jedoch aufgefallen, dass es keine Phantom Motions gibt, wenn der Gateway auf das Internet zugreifen darf.


nanocosmos

Hallo,
Danke nochmals für die Hinweise.
Habe bereits nach Deinen Tipps on-change-reading und timestamp-on-change-reading eingestellt.
Bei timestamp-on-change-reading auch schon state, lux. Und bei event-on-change-reading: state statt:.* probiert.

Was ich halt interessant finde, dass bei Zugang zum Internet das Problem nicht auftritt. Daher dachte ich, dass ich das Problem nochmals schildere.

Beste Grüße

torte

Mach mal ein LOG mit Verbose 5 mit Internet und einmal ohne Internet Zugang kann ja mal gucken wie sich das im Log verhält

Grüße
Torte

nanocosmos

Werde ich machen. Komme leider erst morgen dazu.
Danke für die Hilfe!

nanocosmos

Ok, Kommando zurück.
Habe gerade nochmal dem Gateway Internet Zugang gegeben. Es traten doch wieder Phantom Motions auf.

Ich bin nur total verwundert, da ich am Samstag zwischen 18-21 keine solcher Ereignisse hatte.
Habe mir dann nochmal den Filelog von einem Motion Sensor angesehen und habe zwischen 18-21 Uhr auch keine Einträge. Sonst taucht hier jede Stunde ein Motion auf.

Ich habe keine Ahnung, warum es so ist.
Hatte zu der Zeit die MiHome APP geöffnet um neue Sensoren anzulernen. Vielleicht hängt es damit zusammen??

Mir ist beim Studium des FileLogs auch aufgefallen, dass no-motion auch nicht immer hochzählt. Bei vielleicht 5% der motion Ereignisse taucht ein no-motion:0 auf, es wird aber danach nicht hochgezählt.


Wahrscheinlich sind die Aqara Sensoren einfach nicht zu gebrauchen...!?

Beste Grüße


nanocosmos

Einmal der Auszug aus dem Filelog

2017-10-20_18:00:42 XMI_fu_motion motion 2017-10-20_18:00:45 XMI_fu_motion off 2017-10-20_18:02:42 XMI_fu_motion no_motion: 120 2017-10-20_18:03:42 XMI_fu_motion no_motion: 180 2017-10-20_18:05:42 XMI_fu_motion no_motion: 300 2017-10-20_18:10:41 XMI_fu_motion no_motion: 600 2017-10-20_18:20:40 XMI_fu_motion no_motion: 1200 2017-10-20_18:30:39 XMI_fu_motion no_motion: 1800 2017-10-20_18:55:41 XMI_fu_motion no_motion 2017-10-20_21:39:21 XMI_fu_motion motion 2017-10-20_21:39:21 XMI_fu_motion no_motion: 0 2017-10-20_21:39:26 XMI_fu_motion off 2017-10-20_21:40:25 XMI_fu_motion no_motion 2017-10-20_21:41:21 XMI_fu_motion no_motion: 120 2017-10-20_21:42:21 XMI_fu_motion no_motion: 180 2017-10-20_21:44:21 XMI_fu_motion no_motion: 300 2017-10-20_21:47:39 XMI_fu_motion motion 2017-10-20_21:47:39 XMI_fu_motion no_motion: 0 2017-10-20_21:47:44 XMI_fu_motion off 2017-10-20_21:49:38 XMI_fu_motion no_motion: 120 2017-10-20_21:50:38 XMI_fu_motion no_motion: 180 2017-10-20_21:52:38 XMI_fu_motion no_motion: 300 2017-10-20_21:57:37 XMI_fu_motion no_motion: 600 2017-10-20_22:07:37 XMI_fu_motion no_motion: 1200 2017-10-20_22:17:35 XMI_fu_motion no_motion: 1800

torte

du guckst ins falsche log.

FHEM.LOG ist das richtige Log.

Grüße
Torte

nanocosmos

Zitat von: torte am 23 Oktober 2017, 19:50:22
du guckst ins falsche log.

FHEM.LOG ist das richtige Log.

Grüße
Torte
Ich weiß. Wollte das Filelog nur als schnellen Nachweis posten. [emoji4]

Beste Grüße


nanocosmos

#10
Hier mal zwei Logs von Phantom Motions

2017.10.23 15:18:34 5: XiaomiGateway: Read> Read start 2017.10.23 15:18:34 5: XiaomiGateway: Read> {"cmd":"report","model":"sensor_motion.aq2","sid":"158d0001a251cc","short_id":13911,"data":"{\"lux\":\"2\"}"}
2017.10.23 15:18:34 5: XiaomiGateway: Read> Dispatch {"cmd":"report","model":"sensor_motion.aq2","sid":"158d0001a251cc","short_id":13911,"data":"{\"lux\":\"2\"}"}
2017.10.23 15:18:34 5: XiaomiGateway: dispatch {"cmd":"report","model":"sensor_motion.aq2","sid":"158d0001a251cc","short_id":13911,"data":"{\\"lux\\":\\"2\\"}"}
2017.10.23 15:18:34 4: XiaomiGateway: DEV_Parse> IS DEFINED sensor_motion.aq2 : 158d0001a251cc
2017.10.23 15:18:34 5: XiaomiGateway: DEV_Read> SID: 158d0001a251cc XiaomiSmartHome_Device
2017.10.23 15:18:34 3: XiaomiGateway: DEV_Read> Name: XMI_kl_motion SID: 158d0001a251cc Type: sensor_motion.aq2 Illuminance: 2 2017.10.23 15:18:34 5: XiaomiGateway: Read> Read start
2017.10.23 15:18:34 5: XiaomiGateway: Read> {"cmd":"heartbeat","model":"sensor_motion.aq2","sid":"158d0001a251cc","short_id":13911,"data":"{\"voltage\":3015,\"status\":\"motion\",\"lux\":\"2\"}"}
2017.10.23 15:18:34 5: XiaomiGateway: Read> Dispatch {"cmd":"heartbeat","model":"sensor_motion.aq2","sid":"158d0001a251cc","short_id":13911,"data":"{\"voltage\":3015,\"status\":\"motion\",\"lux\":\"2\"}"} 2017.10.23 15:18:34 5: XiaomiGateway: dispatch {"cmd":"heartbeat","model":"sensor_motion.aq2","sid":"158d0001a251cc","short_id":13911,"data":"{\\"voltage\\":3015,\\"status\\":\\"motion\\",\\"lux\\":\\"2\\"}"}
2017.10.23 15:18:34 4: XiaomiGateway: DEV_Parse> IS DEFINED sensor_motion.aq2 : 158d0001a251cc
2017.10.23 15:18:34 5: XiaomiGateway: DEV_Read> SID: 158d0001a251cc XiaomiSmartHome_Device
2017.10.23 15:18:34 3: XiaomiGateway: DEV_Read> Name: XMI_kl_motion SID: 158d0001a251cc Type: sensor_motion.aq2 Status: motion 2017.10.23 15:18:34 3: XiaomiGateway: DEV_Read> Name: XMI_kl_motion SID: 158d0001a251cc Type: sensor_motion.aq2 Voltage: 3015 2017.10.23 15:18:34 3: XiaomiGateway: DEV_Read> Name: XMI_kl_motion SID: 158d0001a251cc Type: sensor_motion.aq2 Illuminance: 2 2017.10.23 15:18:39 3: XiaomiGateway: DEV_Timeout> SID: 158d0001a251cc Type: sensor_motion.aq2 Status:


2017.10.23 16:13:33 5: XiaomiGateway: Read> Read start
2017.10.23 16:13:33 5: XiaomiGateway: Read> {"cmd":"heartbeat","model":"gateway","sid":"34ce008c12d5","short_id":"0","token":"zTehJAthcGFJU5qa","data":"{\"ip\":\"192.168.178.55\"}"} 2017.10.23 16:13:33 5: XiaomiGateway: Read> HASH correctly
2017.10.23 16:13:33 5: XiaomiGateway: Reading> Reading start
2017.10.23 16:13:33 4: XiaomiGateway: Reading> Heartbeat from 192.168.178.55 received with 34ce008c12d5
2017.10.23 16:13:33 5: XiaomiGateway: Read> Read start
2017.10.23 16:13:33 5: XiaomiGateway: Read> {"cmd":"report","model":"sensor_motion.aq2","sid":"158d0001a251cc","short_id":13911,"data":"{\"lux\":\"2\"}"}
2017.10.23 16:13:33 5: XiaomiGateway: Read> Dispatch {"cmd":"report","model":"sensor_motion.aq2","sid":"158d0001a251cc","short_id":13911,"data":"{\"lux\":\"2\"}"}
2017.10.23 16:13:33 5: XiaomiGateway: dispatch {"cmd":"report","model":"sensor_motion.aq2","sid":"158d0001a251cc","short_id":13911,"data":"{\\"lux\\":\\"2\\"}"}
2017.10.23 16:13:33 4: XiaomiGateway: DEV_Parse> IS DEFINED sensor_motion.aq2 : 158d0001a251cc
2017.10.23 16:13:33 5: XiaomiGateway: DEV_Read> SID: 158d0001a251cc XiaomiSmartHome_Device
2017.10.23 16:13:33 3: XiaomiGateway: DEV_Read> Name: XMI_kl_motion SID: 158d0001a251cc Type: sensor_motion.aq2 Illuminance: 2 2017.10.23 16:13:33 5: XiaomiGateway: Read> Read start
2017.10.23 16:13:33 5: XiaomiGateway: Read> {"cmd":"heartbeat","model":"sensor_motion.aq2","sid":"158d0001a251cc","short_id":13911,"data":"{\"voltage\":3015,\"status\":\"motion\",\"lux\":\"2\"}"}
2017.10.23 16:13:33 5: XiaomiGateway: Read> Dispatch {"cmd":"heartbeat","model":"sensor_motion.aq2","sid":"158d0001a251cc","short_id":13911,"data":"{\"voltage\":3015,\"status\":\"motion\",\"lux\":\"2\"}"}
2017.10.23 16:13:33 5: XiaomiGateway: dispatch {"cmd":"heartbeat","model":"sensor_motion.aq2","sid":"158d0001a251cc","short_id":13911,"data":"{\\"voltage\\":3015,\\"status\\":\\"motion\\",\\"lux\\":\\"2\\"}"}
2017.10.23 16:13:33 4: XiaomiGateway: DEV_Parse> IS DEFINED sensor_motion.aq2 : 158d0001a251cc
2017.10.23 16:13:33 5: XiaomiGateway: DEV_Read> SID: 158d0001a251cc XiaomiSmartHome_Device
2017.10.23 16:13:33 3: XiaomiGateway: DEV_Read> Name: XMI_kl_motion SID: 158d0001a251cc Type: sensor_motion.aq2 Status: motion 2017.10.23 16:13:33 3: XiaomiGateway: DEV_Read> Name: XMI_kl_motion SID: 158d0001a251cc Type: sensor_motion.aq2 Voltage: 3015 2017.10.23 16:13:33 3: XiaomiGateway: DEV_Read> Name: XMI_kl_motion SID: 158d0001a251cc Type: sensor_motion.aq2 Illuminance: 2 2017.10.23 16:13:38 3: XiaomiGateway: DEV_Timeout> SID: 158d0001a251cc Type: sensor_motion.aq2 Status: off 2017.10.23 16:13:43 5: XiaomiGateway: Read> Read start 2017.10.23 16:13:43 5: XiaomiGateway: Read> {"cmd":"heartbeat","model":"gateway","sid":"34ce008c12d5","short_id":"0","token":"8qjJSn5txzrMttOX","data":"{\"ip\":\"192.168.178.55\"}"} 2017.10.23 16:13:43 5: XiaomiGateway: Read> HASH correctly 2017.10.23 16:13:43 5: XiaomiGateway: Reading> Reading start 2017.10.23 16:13:43 4: XiaomiGateway: Reading> Heartbeat from 192.168.178.55 received with 34ce008c12d5


ofno

ich habe einen Xiaomi, und habe mir das log auch mal angeschaut, ich habe ein event auf no_motion Wert 0 und habe in letzter Zeit festgestellt, dass es nicht zuverläßig funktioniert.

Die no_motion Meldung mit Sekunden ohne Bewegung kommt nach dem no_motion 0 nicht wirklich zuverläßig, sondern es kommen immer mal wieder motion, die aber eigentlich keine Bewegung sein können, und diese kommen auch stündlich. Hab mir die logs aus dem Juli angeschaut, da kam eigentlich immer nach no_motion: 0 das no_motion: 120

2017-10-23_22:44:10 XMI_158d000 no_motion: 0
2017-10-23_22:44:13 XMI_158d000 off
2017-10-23_22:46:10 XMI_158d000 no_motion: 120
2017-10-23_22:46:56 XMI_158d000 motion
2017-10-23_22:46:56 XMI_158d000 no_motion: 0
2017-10-23_22:46:57 XMI_158d000 off
2017-10-23_22:48:56 XMI_158d000 no_motion: 120
2017-10-23_22:49:16 XMI_158d000 motion
2017-10-23_22:49:16 XMI_158d000 no_motion: 0
2017-10-23_22:49:17 XMI_158d000 off
2017-10-23_22:50:16 XMI_158d000 motion
2017-10-23_22:50:17 XMI_158d000 off
2017-10-23_22:51:20 XMI_158d000 motion
2017-10-23_22:51:21 XMI_158d000 off
2017-10-23_22:53:20 XMI_158d000 no_motion: 120
2017-10-23_22:54:20 XMI_158d000 no_motion: 180
2017-10-23_22:56:19 XMI_158d000 no_motion: 300
2017-10-23_23:01:19 XMI_158d000 no_motion: 600
2017-10-23_23:02:20 XMI_158d000 motion
2017-10-23_23:02:20 XMI_158d000 no_motion: 0
2017-10-23_23:02:22 XMI_158d000 off
2017-10-23_23:04:20 XMI_158d000 no_motion: 120
2017-10-23_23:05:07 XMI_158d000 no_motion
2017-10-23_23:05:19 XMI_158d000 no_motion: 180
2017-10-23_23:07:19 XMI_158d000 no_motion: 300
2017-10-23_23:12:19 XMI_158d000 no_motion: 600
2017-10-23_23:22:17 XMI_158d000 no_motion: 1200
2017-10-23_23:32:16 XMI_158d000 no_motion: 1800
2017-10-24_00:00:10 XMI_158d000 motion
2017-10-24_00:00:10 XMI_158d000 no_motion: 0
2017-10-24_00:00:12 XMI_158d000 off
2017-10-24_00:55:12 XMI_158d000 motion
2017-10-24_00:55:13 XMI_158d000 off
2017-10-24_01:50:12 XMI_158d000 motion
2017-10-24_01:50:13 XMI_158d000 off
2017-10-24_02:45:14 XMI_158d000 motion
2017-10-24_02:45:15 XMI_158d000 off
2017-10-24_03:11:16 XMI_158d000 motion
2017-10-24_03:11:17 XMI_158d000 off
2017-10-24_03:13:15 XMI_158d000 no_motion: 120
2017-10-24_03:13:49 XMI_158d000 motion
2017-10-24_03:13:49 XMI_158d000 no_motion: 0
2017-10-24_03:13:51 XMI_158d000 off
2017-10-24_03:15:49 XMI_158d000 no_motion: 120
2017-10-24_03:16:49 XMI_158d000 no_motion: 180
2017-10-24_03:18:48 XMI_158d000 no_motion: 300
2017-10-24_03:23:48 XMI_158d000 no_motion: 600
2017-10-24_03:33:47 XMI_158d000 no_motion: 1200

nanocosmos

Ich habe mir nochmal das FileLog eines Sensors angeschaut.
Wie bereits gesagt, tauchen 1x in der Stunde diese Phantom Motions auf, z.B.:
2017-10-25_02:18:05 XMI_fu_motion motion
2017-10-25_02:18:10 XMI_fu_motion off
2017-10-25_03:13:08 XMI_fu_motion motion
2017-10-25_03:13:13 XMI_fu_motion off
2017-10-25_04:08:12 XMI_fu_motion motion
2017-10-25_04:08:17 XMI_fu_motion off


Erst bei einer richtigen Bewegung wird no_motion getriggert. Das ist eigentlich super.
Allerdings kann ich ofnos Problem bestätigen. no_motion:0 taucht leider nicht immer mit auf, z.B.:
2017-10-25_05:26:08 XMI_fu_motion motion
2017-10-25_05:26:13 XMI_fu_motion off
2017-10-25_05:28:08 XMI_fu_motion no_motion: 120
2017-10-25_05:29:07 XMI_fu_motion no_motion: 180
2017-10-25_05:31:07 XMI_fu_motion no_motion: 300
2017-10-25_05:36:07 XMI_fu_motion no_motion: 600
2017-10-25_05:46:06 XMI_fu_motion no_motion: 1200

Oder no_motion:0 taucht auch bei Phantom Motions mit auf
2017-10-23_07:17:33 XMI_fu_motion motion
[2017-10-23_07:17:33 XMI_fu_motion no_motion: 0
2017-10-23_07:17:38 XMI_fu_motion off
2017-10-23_08:12:37 XMI_fu_motion motion
2017-10-23_08:12:42 XMI_fu_motion off
2017-10-23_09:07:39 XMI_fu_motion motion
2017-10-23_09:07:44 XMI_fu_motion off
201


Vielleicht kann uns Torsten weiterhelfen?  :)
Schon mal besten Dank fürs Drüber schauen!

nanocosmos

Nach den Problemen mit den Aqara Bewegungsmeldern habe ich die ältere Version der Sensoren gekauft.
Es zeigt sich auch bei den älteren Sensoren das gleiche Problem.
Ungefähr alle 60 Minuten wird ein motion detektiert.
Ich bin leider mit meinem Latein am Ende. Vielleicht hat jemand noch ne Idee, wo das Problem liegen könnte.

Besten Dank und viele Grüße

nanocosmos

Xiaomi hat eine neue Firmware für das Gateway veröffentlicht.
Nachdem ich gestern das Update auf dem Gateway installiert habe, gibt es nun auch keine Fehlauslösungen mehr. [emoji16]