Xiaomi Smart Home Komponenten

Begonnen von FosCo, 21 Dezember 2016, 18:59:59

Vorheriges Thema - Nächstes Thema

basty2

Zitat von: torte am 04 November 2017, 18:10:51
Hi,

meine Motions lösen nur bei Bewegung aus. Zwischen den motions müssen bei mir 60 Sekunden sein, vorher wird eine erneute Bewegung nicht signalisiert.

Grüße
Torte
Hi Torte,

dank Dir für die schnelle Rückmeldung. So ist es bei mir auch. Einige haben hier geschrieben, dass es auch den Fall der 5 sekündigen Auslösung gibt. Das funktioniert bei mir auch eine gewisse Zeit lang nach dem erneuten Anlernen. Leider funktioniert das nach einigen Stunden nicht mehr und es löst nur noch aller 60 Sekunden aus.
Hier die Zeiten bis 17:49 nur alle 60 Sek. und nach dem einmaligen kurzen Druck des Resetknopfes ab 18:17 alle 5 Sekunden.


2017-11-04_17:47:35 XMI_158d0001dxxxxx off
2017-11-04_17:47:39 XMI_158d0001dxxxxx no_motion
2017-11-04_17:47:44 XMI_158d0001dxxxxx motion
2017-11-04_17:47:49 XMI_158d0001dxxxxx off
2017-11-04_17:49:14 XMI_158d0001dxxxxx motion
2017-11-04_17:49:19 XMI_158d0001dxxxxx off
2017-11-04_18:17:01 XMI_158d0001dxxxxx motion
2017-11-04_18:17:01 XMI_158d0001dxxxxx no_motion: 0
2017-11-04_18:17:06 XMI_158d0001dxxxxx off
2017-11-04_18:17:17 XMI_158d0001dxxxxx motion
2017-11-04_18:17:17 XMI_158d0001dxxxxx no_motion: 0
2017-11-04_18:17:22 XMI_158d0001dxxxxx off
2017-11-04_18:17:22 XMI_158d0001dxxxxx motion
2017-11-04_18:17:22 XMI_158d0001dxxxxx no_motion: 0
2017-11-04_18:17:27 XMI_158d0001dxxxxx off
2017-11-04_18:17:28 XMI_158d0001dxxxxx motion
2017-11-04_18:17:28 XMI_158d0001dxxxxx no_motion: 0
2017-11-04_18:17:33 XMI_158d0001dxxxxx off
2017-11-04_18:17:34 XMI_158d0001dxxxxx motion
2017-11-04_18:17:34 XMI_158d0001dxxxxx no_motion: 0
2017-11-04_18:17:39 XMI_158d0001dxxxxx off
2017-11-04_18:17:40 XMI_158d0001dxxxxx motion
2017-11-04_18:17:40 XMI_158d0001dxxxxx no_motion: 0
2017-11-04_18:17:45 XMI_158d0001dxxxxx off



Die Frage ist, warum schaltet die Auslösezeit irgendwann um und kann man das wieder auf die Anfangskonfiguration zurücksetzen ohne den Reset Knopf drücken zu müssen...

Grüße
Basty

torte

Hi Basti,

das mit den 5 Sekunden war mir jetzt so nicht bewusst. Einstellen kann man da nix bzw. ist mir nirgendwo was aufgefallen
das man die Zeit irgendwo einstellen könnte.

Soweit ich weiß ist die Signalisierung in der APP auch nicht anders.

Grüße
Torte

basty2


tomahawk2015

Hallo,

erstmal vielen Dank für die Entwicklung dieses Module. Ich habe auch ein Gateway erhalten und habe erstmal da Sensoren noch
unterwegs versucht dieses standalone einzurichten. Beim Versuch beispielsweise die Farbe des Gateways zu wechseln
erhalte ich im Log diese Meldung
Unknown code {"cmd":"write_ack","sid":"34ce00906ca0","data":"{\"error\":\"No device\"}"}, help me!
Ich habe den Developer Mode gemäß Anleitung eingerichtet und auch das Passwort vergeben...Server und Gateway sind auch
im selben Subnetz und die notwendigen Perl-Bibliothen sind auch eingerichtet.
Ich erhalte regelmäßige Readings
2017-11-12 10:45:30 XiaomiSmartHome Xiaomi_Gateway1 heartbeat: 34ce00906ca0
2017-11-12 10:45:30 XiaomiSmartHome Xiaomi_Gateway1 token: nYAD2x3YEZcAraUU
2017-11-12 10:45:40 XiaomiSmartHome Xiaomi_Gateway1 heartbeat: 34ce00906ca0
aber das Schalten am Gerät selber funktioniert noch nicht.
Gateway Firmware ist aktuell.

Gibt es hierfür eine Lösung, hört sich ja so an, als würde das Gateway gar nicht gefunden (warum dann aber die Heartbeats?)?
Im jetzigen Zustand würde ich auch davon ausgehen, daß das Einlesen von Sensoren auch nicht funktioniert?

Danke + viele Grüße

Thorsten

torte

Hi Thorsten,

gucke mal hier im Thread #633 und dann #636 hört sich so an als könnte es Dein Problem sein.

Grüße
Torte

tomahawk2015

Hallo,

bei mir war es jetzt noch ein weiteres ausstehendes Update. Jetzt scheint es wirklich die aktuellste Firmware zu sein, Befehle nimmt es nun
auch entgegen.

danke + viele Grüße

Thorsten

okiberlin

#651
Hallo,

Ich habe ein Problem. FHEM stürzt ab wenn das Gateway abgefragt wird...

Nach einem FHEM Start:

2017.11.20 14:15:55 3: Xiaomi.GW1: DEV_Read> Name: Taster.X2 SID: 158d00018b4dd5 Type: switch Voltage: 3042
2017.11.20 14:15:55 3: Xiaomi.GW1: DEV_Read> Name: Taster.X1 SID: 158d000149bb9a Type: switch Voltage: 3032
2017.11.20 14:15:55 3: Xiaomi.GW1: DEV_Read> Name: XMI_158d0001826541 SID: 158d0001826541 Type: sensor_ht Voltage: 2965
2017.11.20 14:15:55 3: Xiaomi.GW1: DEV_Read> Name: XMI_158d0001826541 SID: 158d0001826541 Type: sensor_ht Temperature: 21.05
2017.11.20 14:15:55 3: Xiaomi.GW1: DEV_Read> Name: XMI_158d0001826541 SID: 158d0001826541 Type: sensor_ht Humidity: 53.91
2017.11.20 14:15:55 3: Xiaomi.GW1: DEV_Read> Name: SD.X1 SID: 158d000149f757 Type: smoke Voltage: 3105
2017.11.20 14:15:58 1: PERL WARNING: Use of uninitialized value in string ne at ./FHEM/71_XiaomiSmartHome.pm line 142.
2017.11.20 14:15:58 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/71_XiaomiSmartHome.pm line 144.
2017.11.20 14:15:58 1: PERL WARNING: Use of uninitialized value $name in concatenation (.) or string at ./FHEM/71_XiaomiSmartHome.pm line 158.
Can't call method "incr_parse" on an undefined value at ./FHEM/71_XiaomiSmartHome.pm line 159.


Das letzte Device ist ein Rauchmelder.


Internals:
   DEF        158d000149f757 smoke Xiaomi.GW1
   IODev
   IODevName  Xiaomi.GW1
   MODEL      smoke
   NAME       SD.X1
   NR         122
   SID        158d000149f757
   STATE      initialized
   TYPE       XiaomiSmartHome_Device
   VERSION    1.07
   READINGS:
     2017-09-25 18:22:03   arlarm
     2017-11-12 11:52:40   battery         3.115
     2017-11-12 11:52:40   heartbeat       158d000149f757
Attributes:
   IODev      Xiaomi.GW1
   event-on-change-reading .*
   room       MiSmartHome


Gateway und FHEM sind aktuell. Das Problem tritt scheinbar seit dem letzten FW Update beim Gateway auf. Bis vor kurzem lief alles. Gibt es eine Lösung?

Viele Grüße
aus Berlin

torte

Hi,

mach erst mal ein Update auf 1.12 du hast noch 1.07.

Grüße
Torte

okiberlin

Oh, ich hatte gedacht das Modul ist im "normalen" Update mit drin...
das Update hat aber nichts genutzt. Das Problem ist immer noch da.


2017.11.20 16:15:25 1: PERL WARNING: Use of uninitialized value in string ne at ./FHEM/71_XiaomiSmartHome.pm line 147.
2017.11.20 16:15:25 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/71_XiaomiSmartHome.pm line 149.
2017.11.20 16:15:25 1: PERL WARNING: Use of uninitialized value $name in concatenation (.) or string at ./FHEM/71_XiaomiSmartHome.pm line 163.
Can't call method "incr_parse" on an undefined value at ./FHEM/71_XiaomiSmartHome.pm line 164.



Internals:
   DEF        158d000149f757 smoke Xiaomi.GW1
   IODev
   IODevName  Xiaomi.GW1
   MODEL      smoke
   NAME       SD.X1
   NR         122
   SID        158d000149f757
   STATE      initialized
   TYPE       XiaomiSmartHome_Device
   VERSION    1.12
   READINGS:
     2017-09-25 18:22:03   arlarm
     2017-11-12 11:52:40   battery         3.115
     2017-11-12 11:52:40   heartbeat       158d000149f757
Attributes:
   IODev      Xiaomi.GW1
   event-on-change-reading .*
   room       MiSmartHome

wollo

Ich verzweifle mittlerweile auch an dem Modul.
Bis letzte Woche lief es noch einwandfrei bei mir.
Bin schon eine ganze Zeit auf der neuesten Version. 1.12
Aber jetzt bekomme ich von den Sensoren nur noch den Batterie State, aber z.B. kein click mehr für den Switch.
Der Motionsensor schickt auch noch Battery State und no_motion.
Wenn ich die Devices lösche, werden sie neu angelegt, bleiben aber auf initialized.  Battery state wird übertragen und die Batteriespannung. In der App sehe ich die Click Ereignisse. FHEM bekommt sie nicht mehr.
Habe jetzt nochmals ein frisches System aufgestzt. Selbes Problem

torte

Moin,

@OKI, welche Firmwareversion hast Du drauf? Mach bitte ein Verbose 5 Log dann schau ich mal

@Wollo, bitte ein Verbose 5 Log.

Grüße
Torte

blueberry63

Hallo,

ich habe - wohl schon länger - folgende Zeilen im LOG nach einem FHEM-Neustart:


PERL WARNING: Prototype mismatch: sub main::round ($$) vs none at /usr/share/perl/5.14/Exporter.pm line 67, <$fh> line 2255.
PERL WARNING: Scalar value @arround[$round-1] better written as $arround[$round-1] at ./FHEM/71_XiaomiSmartHome_Device.pm line 243, <$fh> line 2262.
PERL WARNING: Scalar value @arround[$round-1] better written as $arround[$round-1] at ./FHEM/71_XiaomiSmartHome_Device.pm line 250, <$fh> line 2262.


Keine Ahnung, ob das wichtig ist, wollte es nur mal erwähnt haben.

Gruß
Blueberry63
FHEM auf BBB mit Wheezy: 1x CUL_HM_HM_SCI_3_FM, 1x INSTAR CAM3010, 1x HM-LC-SW1-PL2, 1x HM-LC-Bl1PBU-FM, 1x HM-Sen-MDIR-O, Viessmann Heizung, Gaszähler via GPIO, Klingel via HM-LC-Bl1PBU-FM an FBox, Mailcheck, AVR, XBMC, NanoCUL 433+668 an Raspi per Ethernet, Funksteckdosen (Pollin, IT), Automower

wollo

beim Neustart kommt:


017.11.21 09:33:58 5: wzXGate: updateAllReadings> Starting UpdateALLReadings
2017.11.21 09:33:58 4: wzXGate: Write> Get all Sensors
2017.11.21 09:33:58 4: wzXGate: Write> {"cmd" : "get_id_list"} 192.168.178.74
2017.11.21 09:33:58 5: wzXGate: Write> End 192.168.178.74
2017.11.21 09:33:58 5: wzXGate: Read> Read start
2017.11.21 09:33:58 5: wzXGate: Read> {"cmd":"get_id_list_ack","sid":"286c07887e80","token":"DdxCqBF29uQM9Vso","data":"[\"158d00012654ce\",\"158d00013f8d72\",\"158d00013ed0a2\",\"158d0001256a00\"]"}
2017.11.21 09:33:58 5: wzXGate: Read> HASH correctly
2017.11.21 09:33:58 5: wzXGate: Reading> Reading start
2017.11.21 09:33:58 4: wzXGate: Reading> PushRead:158d00012654ce
2017.11.21 09:33:58 4: wzXGate: Write> {"cmd":"read","sid":"158d00012654ce"} 192.168.178.74
2017.11.21 09:33:58 5: wzXGate: Write> End 192.168.178.74
2017.11.21 09:33:58 4: wzXGate: Reading> PushRead:158d00013f8d72
2017.11.21 09:33:58 4: wzXGate: Write> {"cmd":"read","sid":"158d00013f8d72"} 192.168.178.74
2017.11.21 09:33:58 5: wzXGate: Write> End 192.168.178.74
2017.11.21 09:33:58 4: wzXGate: Reading> PushRead:158d00013ed0a2
2017.11.21 09:33:58 4: wzXGate: Write> {"cmd":"read","sid":"158d00013ed0a2"} 192.168.178.74
2017.11.21 09:33:58 5: wzXGate: Write> End 192.168.178.74
2017.11.21 09:33:58 4: wzXGate: Reading> PushRead:158d0001256a00
2017.11.21 09:33:58 4: wzXGate: Write> {"cmd":"read","sid":"158d0001256a00"} 192.168.178.74
2017.11.21 09:33:58 5: wzXGate: Write> End 192.168.178.74
2017.11.21 09:33:58 5: wzXGate: Read> Read start
2017.11.21 09:33:58 5: wzXGate: Read> {"cmd":"read_ack","model":"switch","sid":"158d00012654ce","short_id":28244,"data":"{\"voltage\":3022}"}
2017.11.21 09:33:58 5: wzXGate: Read> Dispatch {"cmd":"read_ack","model":"switch","sid":"158d00012654ce","short_id":28244,"data":"{\"voltage\":3022}"}
2017.11.21 09:33:58 5: wzXGate: dispatch {"cmd":"read_ack","model":"switch","sid":"158d00012654ce","short_id":28244,"data":"{\\"voltage\\":3022}"}
2017.11.21 09:33:58 4: wzXGate: DEV_Parse> IS DEFINED switch : 158d00012654ce
2017.11.21 09:33:58 5: wzXGate: DEV_Read> SID: 158d00012654ce XiaomiSmartHome_Device
2017.11.21 09:33:58 4: wzXGate: DEV_Read> Name: swWohnzimmer.1 SID: 158d00012654ce Type: switch Voltage: 3022
2017.11.21 09:33:58 5: Starting notify loop for swWohnzimmer.1, 2 event(s), first is battery: 3.022
2017.11.21 09:33:58 5: createNotifyHash
2017.11.21 09:33:58 5: End notify loop for swWohnzimmer.1
2017.11.21 09:33:58 5: wzXGate: Read> Read start
2017.11.21 09:33:58 5: wzXGate: Read> {"cmd":"read_ack","model":"motion","sid":"158d00013f8d72","short_id":17015,"data":"{\"voltage\":3025,\"status\":\"no_motion\"}"}
2017.11.21 09:33:58 5: wzXGate: Read> Dispatch {"cmd":"read_ack","model":"motion","sid":"158d00013f8d72","short_id":17015,"data":"{\"voltage\":3025,\"status\":\"no_motion\"}"}
2017.11.21 09:33:58 5: wzXGate: dispatch {"cmd":"read_ack","model":"motion","sid":"158d00013f8d72","short_id":17015,"data":"{\\"voltage\\":3025,\\"status\\":\\"no_motion\\"}"}
2017.11.21 09:33:58 4: wzXGate: DEV_Parse> IS DEFINED motion : 158d00013f8d72
2017.11.21 09:33:58 5: wzXGate: DEV_Read> SID: 158d00013f8d72 XiaomiSmartHome_Device
2017.11.21 09:33:58 3: wzXGate: DEV_Read> Name: mtSchlafzimmer SID: 158d00013f8d72 Type: motion Status: no_motion
2017.11.21 09:33:58 4: wzXGate: DEV_Read> Name: mtSchlafzimmer SID: 158d00013f8d72 Type: motion Voltage: 3025
2017.11.21 09:33:58 5: Starting notify loop for mtSchlafzimmer, 3 event(s), first is no_motion
2017.11.21 09:33:58 5: End notify loop for mtSchlafzimmer
2017.11.21 09:33:58 5: wzXGate: Read> Read start
2017.11.21 09:33:58 5: wzXGate: Read> {"cmd":"read_ack","model":"switch","sid":"158d00013ed0a2","short_id":52695,"data":"{\"voltage\":3022}"}
2017.11.21 09:33:58 5: wzXGate: Read> Dispatch {"cmd":"read_ack","model":"switch","sid":"158d00013ed0a2","short_id":52695,"data":"{\"voltage\":3022}"}
2017.11.21 09:33:58 5: wzXGate: dispatch {"cmd":"read_ack","model":"switch","sid":"158d00013ed0a2","short_id":52695,"data":"{\\"voltage\\":3022}"}
2017.11.21 09:33:58 4: wzXGate: DEV_Parse> IS DEFINED switch : 158d00013ed0a2
2017.11.21 09:33:58 5: wzXGate: DEV_Read> SID: 158d00013ed0a2 XiaomiSmartHome_Device
2017.11.21 09:33:58 4: wzXGate: DEV_Read> Name: swSchlafzimmer SID: 158d00013ed0a2 Type: switch Voltage: 3022
2017.11.21 09:33:58 5: Starting notify loop for swSchlafzimmer, 2 event(s), first is battery: 3.022
2017.11.21 09:33:58 5: End notify loop for swSchlafzimmer
2017.11.21 09:33:58 5: wzXGate: Read> Read start
2017.11.21 09:33:58 5: wzXGate: Read> {"cmd":"read_ack","model":"switch","sid":"158d0001256a00","short_id":60881,"data":"{\"voltage\":3072}"}
2017.11.21 09:33:58 5: wzXGate: Read> Dispatch {"cmd":"read_ack","model":"switch","sid":"158d0001256a00","short_id":60881,"data":"{\"voltage\":3072}"}
2017.11.21 09:33:58 5: wzXGate: dispatch {"cmd":"read_ack","model":"switch","sid":"158d0001256a00","short_id":60881,"data":"{\\"voltage\\":3072}"}
2017.11.21 09:33:58 4: wzXGate: DEV_Parse> IS DEFINED switch : 158d0001256a00
2017.11.21 09:33:58 5: wzXGate: DEV_Read> SID: 158d0001256a00 XiaomiSmartHome_Device
2017.11.21 09:33:58 4: wzXGate: DEV_Read> Name: swWohnzimmer.2 SID: 158d0001256a00 Type: switch Voltage: 3072
2017.11.21 09:33:58 5: Starting notify loop for swWohnzimmer.2, 2 event(s), first is battery: 3.072
2017.11.21 09:33:58 5: End notify loop for swWohnzimmer.2


Ansonsten kommt da lange nichts.

Wenn ich dann am wzXGate Helligkeit oder Farbe ändere, bekomme ich:

2017.11.21 09:41:23 4: wzXGate: Write> {"cmd":"write","model":"gateway","sid":"286c07887e80","short_id":0,"key":"8","data":"{\"rgb\":1694433280,\"key\":\"308b19bde9798e4c1fd58e81f8cf3f8b\"}" } 192.168.178.74
2017.11.21 09:41:23 5: wzXGate: Write> End 192.168.178.74
2017.11.21 09:41:23 4: name: /fhem?cmd=set%20wzXGate%20rgb%20ff0000&XHR=1&fw_id=160 / RL:20 / text/plain; charset=UTF-8 / Content-Encoding: gzip
/
2017.11.21 09:41:23 5: wzXGate: Read> Read start
2017.11.21 09:41:23 5: wzXGate: Read> {"cmd":"write_ack","sid":"286c07887e80","data":"{\"error\":\"Invalid key\"}"}
2017.11.21 09:41:23 1: PERL WARNING: Use of uninitialized value in string ne at ./FHEM/71_XiaomiSmartHome.pm line 143.
2017.11.21 09:41:23 5: wzXGate: Read> Dispatch {"cmd":"write_ack","sid":"286c07887e80","data":"{\"error\":\"Invalid key\"}"}
2017.11.21 09:41:23 5: wzXGate: dispatch {"cmd":"write_ack","sid":"286c07887e80","data":"{\\"error\\":\\"Invalid key\\"}"}
2017.11.21 09:41:23 5: Starting notify loop for wzXGate, 1 event(s), first is UNKNOWNCODE {"cmd":"write_ack","sid":"286c07887e80","data":"{\\"error\\":\\"Invalid key\\"}"}
2017.11.21 09:41:23 5: End notify loop for wzXGate
2017.11.21 09:41:23 3: wzXGate: Unknown code {"cmd":"write_ack","sid":"286c07887e80","data":"{\"error\":\"Invalid key\"}"}, help me!


Das Passwort habe ich aber, wie in der App angezeigt, eingegeben.


torte

Hi

jop, ist schon bei mir gefixt.

Zeile 243 muss so aussehen, ist aber nur ein Warning, kommt im nächsten Release.

$temp = nearest($arround[$round-1] ,$temp );


Gruß
Torte

torte

@wollo


wzXGate: Read> {"cmd":"write_ack","sid":"286c07887e80","data":"{\"error\":\"Invalid key\"}"}


Dein Passwort stimmt nicht. Hast Du in der APP auch gespeichert. Erzeuge Dir mal ein neues und setze es in FHEM neu.
Groß und Kleinschreibung beachten!

Gruß
Torte