Xiaomi Smart Home Komponenten

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

Vorheriges Thema - Nächstes Thema

torte

Zitat von: Eckbert0815 am 19 September 2017, 16:53:19
Mit dem neuen Firmware Update gehen wieder beide Tasten an einem 2Fach Taster!

Endlich
Hey Eckbert,

welche Firmware-Version hast du den nun drauf?

Bei mir ist 1.4.1_149.0143

Gruß
Torte

Gesendet mit Tapatalk


Eckbert0815

Bei mir ist jetzt die 1.4.1_150.0143 drauf und nun ist wieder alles palletti

torte

Bei mir kommt nix neues :-(

Beschwerde  ;D

Morrino

Zitat von: torte am 19 September 2017, 22:28:43
Hi,

wie sieht das define aus ?

Gruß
Torte

Gesendet mit Tapatalk

Hi,

wie in Wiki angegeben:

define <DEINNAMEWIEDUWILLST> XiaomiSmartHome <IP_DES_MI_GATEWAYS>

Grüße

Neuhier

Könnte man im ET die Geräte angeben, die schon eingebunden sind?
Es ist "etwas" mühsam, das aus den bisherigen 35 Seiten zu extrahieren und gibt auch Newbies den Kick zum Einstieg.

Habe nämlich den Aqara Luftdruck/Temperatur/Luftfeuchtigkeit Sensor geordert.
Falls der noch nicht dabei ist, könnte ich einen sponsern, zum ausgiebigen Testen und einpflegen.

torte

1. Post erste Zeile einfach dem Link folgen, dann kommst Du zur WIKI.

Dein Sensor ist schon dabei.

Neuhier

#516
Danke.
Manchmal sieht man den Wald vor Bäumen nicht.

Edit:
Genau in dem Link finde ich keine Aufführung der unterstützten Geräte.
Das ist die Anleitung, wie man den Gateway einrichtet. :-[

Morrino

#517
Zitat von: Morrino am 20 September 2017, 20:40:52
Hi,

wie in Wiki angegeben:

define <DEINNAMEWIEDUWILLST> XiaomiSmartHome <IP_DES_MI_GATEWAYS>

Grüße

Abend,

heute ein neuer Fehler:
send: Invalid argument at ./FHEM/71_XiaomiSmartHome.pm line 484

Jetzt auch ab und zu Zeile 484, aber meistens Zeile 277.
Wieder startet danach FHEM nicht mehr weiter... :(

Grüße

torte

Zitat von: Morrino am 21 September 2017, 21:28:30
Abend,

heute ein neuer Fehler:
send: Invalid argument at ./FHEM/71_XiaomiSmartHome.pm line 277.

Wieder startet danach FHEM nicht mehr weiter... :(

Grüße
Nabend,

sorry meine Glaskugel ist kaputt[emoji12] . Wenn ich schreibe wie ist das define hätte ich gerne dein define so wie es bei dir gesetzt ist. Dann wäre auch immer noch hilfreich ein Log mit Verbose 5. Außerdem muss ich wissen wann der Fehler passiert beim schalten von Licht oder oder oder.

So wie es aussieht bist du der einzige der dieses Problem hat.

Hast du eine Firewall, ist das Gateway und Fhem im selben Netz.

Gruß
Torte

Gesendet mit Tapatalk


Morrino

Zitat von: torte am 21 September 2017, 21:35:54
Nabend,

sorry meine Glaskugel ist kaputt[emoji12] . Wenn ich schreibe wie ist das define hätte ich gerne dein define so wie es bei dir gesetzt ist. Dann wäre auch immer noch hilfreich ein Log mit Verbose 5. Außerdem muss ich wissen wann der Fehler passiert beim schalten von Licht oder oder oder.

So wie es aussieht bist du der einzige der dieses Problem hat.

Hast du eine Firewall, ist das Gateway und Fhem im selben Netz.

Gruß
Torte

Gesendet mit Tapatalk

Hi,

sorry für die wenigen Infos:

Mein define sieht folgendermaßen aus:
define Xiaomi_Gateway XiaomiSmartHome 192.168.178.46

Der Fehler passiert nicht immer aber oft. Einmal auch nachdem ich das Modul neu aufgesetzt habe und ein update des Moduls durchgeführt habe.
Ansonsten hängt es (fast) immer bei jedem Neustart, wenn einmal doch FHEM komplett startet funktioniert alles tadellos, auch das Xiaomi Modul.

Anbei ein Verbose 5 log, wobei hier sich nichts unterscheidet zum Log ohne Verbose. FHEm startet ja nicht korrekt:
2017.09.21 22:05:06 3: Opening Mosquitto device 192.168.178.50:1883
2017.09.21 22:05:06 3: Mosquitto device opened
2017.09.21 22:05:06 3: WZ.Harmony: connected
2017.09.21 22:05:07 3: WZ.WifiLight low level cmd queue send ERROR 3100000000000f40, qlen 1 (reconnect giving up)
2017.09.21 22:05:07 5: Xiaomi_Gateway: Notify> NotifyStart
2017.09.21 22:05:07 5: Xiaomi_Gateway: Notify> Starting Connect after global
2017.09.21 22:05:07 1: usb create starting
2017.09.21 22:05:08 3: Probing CUL device /dev/ttyAMA0
2017.09.21 22:05:08 3: Probing TCM_ESP3 device /dev/ttyAMA0
2017.09.21 22:05:08 3: Probing ZWDongle device /dev/ttyAMA0
2017.09.21 22:05:08 3: Probing FRM device /dev/ttyAMA0
2017.09.21 22:05:13 1: usb create end
2017.09.21 22:05:13 3: roku: ssdp responder started
2017.09.21 22:05:14 3: roku: listener started
2017.09.21 22:05:14 2: SecurityCheck:  WEBtablet has no associated allowed device with basicAuth. telnetForBlockingFn has no associated allowed device with password/globalpassword.  Restart FHEM for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2017.09.21 22:05:14 0: Featurelevel: 5.8
2017.09.21 22:05:14 0: Server started with 310 defined entities (fhem.pl:15091/2017-09-18 perl:5.020002 os:linux user:fhem pid:3302)
2017.09.21 22:05:15 3: DbRep DbRep - connected
2017.09.21 22:05:17 1: PERL WARNING: Can't exec "hddtemp": No such file or directory at (eval 487) line 1.
2017.09.21 22:05:17 1: PERL WARNING: Argument "cat: /sys/class/power_supply/ac/voltage_now: No such fil..." isn't numeric in division (/) at (eval 488) line 1.
2017.09.21 22:05:17 1: PERL WARNING: Argument "cat: /sys/class/power_supply/ac/current_now: No such fil..." isn't numeric in division (/) at (eval 489) line 1.
2017.09.21 22:05:17 5: Xiaomi_Gateway: connect> ConnectStart
2017.09.21 22:05:17 4: Xiaomi_Gateway: connecting
[u][b]send: Invalid argument at ./FHEM/71_XiaomiSmartHome.pm line 277.[/b][/u]
2017.09.21 22:05:17 3: UWZ Wetter_UWZ: Run.1000 Done fetching data
2017.09.21 22:05:17 1: BlockingInformParent (BlockingStart): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:17 1: BlockingInformParent (UWZ_Done): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:17 1: BlockingInformParent (BlockingStart): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:17 1: BlockingInformParent (FRITZBOX_Readout_Done): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:20 1: BlockingInformParent (BlockingStart): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:20 1: BlockingInformParent (PRESENCE_ProcessLocalScan): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:20 1: BlockingInformParent (BlockingStart): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:20 1: BlockingInformParent (PRESENCE_ProcessLocalScan): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:20 1: BlockingInformParent (BlockingStart): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:20 1: BlockingInformParent (PRESENCE_ProcessLocalScan): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:20 1: BlockingInformParent (BlockingStart): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:20 1: BlockingInformParent (BlockingStart): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:20 1: BlockingInformParent (BlockingStart): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:20 1: BlockingInformParent (PRESENCE_ProcessLocalScan): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:20 1: BlockingInformParent (PRESENCE_ProcessLocalScan): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:20 1: BlockingInformParent (PRESENCE_ProcessLocalScan): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:20 1: BlockingInformParent (BlockingStart): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:20 1: BlockingInformParent (PRESENCE_ProcessLocalScan): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:23 1: BlockingInformParent (BlockingStart): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:23 1: BlockingInformParent (PRESENCE_ProcessLocalScan): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused


Anbei die Readings:
heartbeat
f0b429cfbb0f
2017-09-21 22:03:32
password
giveaPassword!
2017-09-21 22:02:07
pct
100
2017-09-21 22:02:02
ringtone
21
2017-09-21 22:02:02
state
Connected
2017-09-21 22:02:07
token
XXXXXXXXXXXXXXXXX
2017-09-21 22:03:32
volume
10
2017-09-21 22:02:02



Entferne ich das Modul wieder funktioniert alles normal. Auch die Fehlermeldungen wie
2017.09.21 22:00:00 1: BlockingInformParent (BlockingStart): Can't connect to localhost:44017: IO::Socket::INET: connect: Connection refused
kommen dann beim starten von FHEM nicht mehr.

Gateway und FHEM sind im selben Netz. Firewall glaube ich nicht zu haben  :-[ :-[

Danke für deine Unterstützung.

Grüße

torte

Zitat von: Morrino am 21 September 2017, 22:06:40
Hi,

sorry für die wenigen Infos:

Mein define sieht folgendermaßen aus:
define Xiaomi_Gateway XiaomiSmartHome 192.168.178.46

Der Fehler passiert nicht immer aber oft. Einmal auch nachdem ich das Modul neu aufgesetzt habe und ein update des Moduls durchgeführt habe.
Ansonsten hängt es (fast) immer bei jedem Neustart, wenn einmal doch FHEM komplett startet funktioniert alles tadellos, auch das Xiaomi Modul.

Anbei ein Verbose 5 log, wobei hier sich nichts unterscheidet zum Log ohne Verbose. FHEm startet ja nicht korrekt:
2017.09.21 22:05:06 3: Opening Mosquitto device 192.168.178.50:1883
2017.09.21 22:05:06 3: Mosquitto device opened
2017.09.21 22:05:06 3: WZ.Harmony: connected
2017.09.21 22:05:07 3: WZ.WifiLight low level cmd queue send ERROR 3100000000000f40, qlen 1 (reconnect giving up)
2017.09.21 22:05:07 5: Xiaomi_Gateway: Notify> NotifyStart
2017.09.21 22:05:07 5: Xiaomi_Gateway: Notify> Starting Connect after global
2017.09.21 22:05:07 1: usb create starting
2017.09.21 22:05:08 3: Probing CUL device /dev/ttyAMA0
2017.09.21 22:05:08 3: Probing TCM_ESP3 device /dev/ttyAMA0
2017.09.21 22:05:08 3: Probing ZWDongle device /dev/ttyAMA0
2017.09.21 22:05:08 3: Probing FRM device /dev/ttyAMA0
2017.09.21 22:05:13 1: usb create end
2017.09.21 22:05:13 3: roku: ssdp responder started
2017.09.21 22:05:14 3: roku: listener started
2017.09.21 22:05:14 2: SecurityCheck:  WEBtablet has no associated allowed device with basicAuth. telnetForBlockingFn has no associated allowed device with password/globalpassword.  Restart FHEM for a new check if the problem is fixed, or set the global attribute motd to none to supress this message.
2017.09.21 22:05:14 0: Featurelevel: 5.8
2017.09.21 22:05:14 0: Server started with 310 defined entities (fhem.pl:15091/2017-09-18 perl:5.020002 os:linux user:fhem pid:3302)
2017.09.21 22:05:15 3: DbRep DbRep - connected
2017.09.21 22:05:17 1: PERL WARNING: Can't exec "hddtemp": No such file or directory at (eval 487) line 1.
2017.09.21 22:05:17 1: PERL WARNING: Argument "cat: /sys/class/power_supply/ac/voltage_now: No such fil..." isn't numeric in division (/) at (eval 488) line 1.
2017.09.21 22:05:17 1: PERL WARNING: Argument "cat: /sys/class/power_supply/ac/current_now: No such fil..." isn't numeric in division (/) at (eval 489) line 1.
2017.09.21 22:05:17 5: Xiaomi_Gateway: connect> ConnectStart
2017.09.21 22:05:17 4: Xiaomi_Gateway: connecting
[u][b]send: Invalid argument at ./FHEM/71_XiaomiSmartHome.pm line 277.[/b][/u]
2017.09.21 22:05:17 3: UWZ Wetter_UWZ: Run.1000 Done fetching data
2017.09.21 22:05:17 1: BlockingInformParent (BlockingStart): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:17 1: BlockingInformParent (UWZ_Done): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:17 1: BlockingInformParent (BlockingStart): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:17 1: BlockingInformParent (FRITZBOX_Readout_Done): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:20 1: BlockingInformParent (BlockingStart): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:20 1: BlockingInformParent (PRESENCE_ProcessLocalScan): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:20 1: BlockingInformParent (BlockingStart): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:20 1: BlockingInformParent (PRESENCE_ProcessLocalScan): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:20 1: BlockingInformParent (BlockingStart): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:20 1: BlockingInformParent (PRESENCE_ProcessLocalScan): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:20 1: BlockingInformParent (BlockingStart): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:20 1: BlockingInformParent (BlockingStart): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:20 1: BlockingInformParent (BlockingStart): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:20 1: BlockingInformParent (PRESENCE_ProcessLocalScan): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:20 1: BlockingInformParent (PRESENCE_ProcessLocalScan): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:20 1: BlockingInformParent (PRESENCE_ProcessLocalScan): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:20 1: BlockingInformParent (BlockingStart): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:20 1: BlockingInformParent (PRESENCE_ProcessLocalScan): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:23 1: BlockingInformParent (BlockingStart): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused
2017.09.21 22:05:23 1: BlockingInformParent (PRESENCE_ProcessLocalScan): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused


Anbei die Readings:
heartbeat
f0b429cfbb0f
2017-09-21 22:03:32
password
giveaPassword!
2017-09-21 22:02:07
pct
100
2017-09-21 22:02:02
ringtone
21
2017-09-21 22:02:02
state
Connected
2017-09-21 22:02:07
token
XXXXXXXXXXXXXXXXX
2017-09-21 22:03:32
volume
10
2017-09-21 22:02:02



Entferne ich das Modul wieder funktioniert alles normal. Auch die Fehlermeldungen wie
2017.09.21 22:00:00 1: BlockingInformParent (BlockingStart): Can't connect to localhost:44017: IO::Socket::INET: connect: Connection refused
kommen dann beim starten von FHEM nicht mehr.

Gateway und FHEM sind im selben Netz. Firewall glaube ich nicht zu haben  :-[ :-[

Danke für deine Unterstützung.

Grüße
Hi,

danke super, gucke ich mir morgen an bin gerade unterwegs.

Gruß
Torte

Gesendet mit Tapatalk


ofno

#521
Unterstütze Sensoren
      magnet: Magnetischer Fenster/Tür Sensor
      motion: Bewegungsmelder
      sensor_motion.aq2: Aqara Bewegungsmelder mit lux-Messung
      sensor_ht: Temperatur und Luftdruck
      weather.v1: Aqara Temperatur, Luftdruck und Feuchtigkeit
      switch: Funkschalter
      plug: Schaltbare Funksteckdose
      cube: W&uumlrfel Sensor
      86sw1: Einfacher Wandfunkschalter
      86sw2: Wandfunkschalter doppelt
      ctrl_neutral1: Einfacher Wandschalter schaltbar
      ctrl_neutral2: Doppelter Wandschalter schaltbar
      rgbw_light: RBGW Lampe (nur Anzeige)

ofno

#522
Zitat von: Morrino am 21 September 2017, 22:06:40

send: Invalid argument at ./FHEM/71_XiaomiSmartHome.pm line 277.
2017.09.21 22:05:17 3: UWZ Wetter_UWZ: Run.1000 Done fetching data
2017.09.21 22:05:17 1: BlockingInformParent (BlockingStart): Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused


wurden alle benötigten module vollständig ohne Fehler installiert?


    JSON
    MULTICAST
    CBC (for AES encryption)
    Crypt::Cipher::AES (for AES encryption)

root@fhemdev:~# apt-get install libio-socket-multicast-perl

root@fhemdev:~# apt-get install libjson-perl

root@fhemdev:~# apt-get install libcrypt-cbc-perl

root@fhemdev:~# cpan Crypt::Cipher::AES


Auf welchem System läuft fhem?

torte

Hi Morrino,

so hab mal verglichen was das Modul macht bis zum Abbruch bzw. bis zum BlockingInformParent
Die letzte Meldung im Log ist

Xiaomi_Gateway: connecting

Nach dieser Meldung versucht das Modul einen Ping auf die IP abzusetzen um zu entscheiden ob es mit dem Modul weitergeht oder nicht.
Entweder Connect oder Disconnect wird dann ausgelöst.
Aber keines der beiden passiert. Perl schaft es wohl nicht den Ping abzusetzen oder das BlockingInformParent haut irgendwie dazwischen.

Can't connect to localhost:39275: IO::Socket::INET: connect: Connection refused

Das solltest Du mal klären scheint was spezifisches von Deiner Installation zu sein.
Weiß jetzt nicht was ich da Modul technisch noch abfangen kann.
Such mal hier im Forum nach BlockingInformParent da gibt es schon ein paar Einträge dazu evtl. kann man das Problem ja so einkreisen.
Im Moment fällt mir dazu nichts ein, sorry.

Grüße
Torte



ofno

Ich würde gerne anregen, dass für die xiaomi Sensoren/ Gateway ein eigener Bereich im forum eröffnet wird. Aktuell läuft das hier im sammeln thread und wird doch sehr unübersichtlich. Gerade für Neueinsteiger wie mich wühlt man sich durch und sicher geht einiges unter. So könnte man mit Unterthreads einzelne Themen und auch Beispiele übersichtlicher gestalten. Leider bin ich selbst sehr neu und weiß noch nicht wie und wer dies einrichten könnte.

Gruß ofno