FHEM beendet sich selbst // Xiaomi

Begonnen von Tardar, 08 Juli 2018, 20:35:48

Vorheriges Thema - Nächstes Thema

Tardar

Hallo Leute,

ich habe das Problem, dass ich gerade ein paar XIAOMI Devices angemeldet habe (via deren App).
Wenn ich nun FHEM restarte, beendet es sich kurz daraufhin selbst:

Jul 08 20:23:41 raspberrypi systemd[1]: Starting FHEM Home Automation...
Jul 08 20:23:41 raspberrypi fhem[16900]: Starting fhem...
Jul 08 20:23:41 raspberrypi systemd[1]: Started FHEM Home Automation.
Jul 08 20:24:04 raspberrypi systemd[1]: fhem.service: Main process exited, code=exited, status=22/n/a
Jul 08 20:24:04 raspberrypi fhem[16986]: Stopping fhem...


die letzten Einträge im FHEM Log sagen folgendes:

2018.07.08 20:26:03 2: autocreate: define XMI_158d0002378228 XiaomiSmartHome_Device 158d0002378228 weather.v1 xiaomiGatewayEins
2018.07.08 20:26:03 2: autocreate: define FileLog_XMI_158d0002378228 FileLog ./log/XMI_158d0002378228-%Y.log XMI_158d0002378228
2018.07.08 20:26:03 1: PERL WARNING: Use of uninitialized value in string eq at ./FHEM/71_XiaomiSmartHome.pm line 161.
2018.07.08 20:26:03 1: PERL WARNING: Use of uninitialized value in string ne at ./FHEM/71_XiaomiSmartHome.pm line 164.
2018.07.08 20:26:03 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/71_XiaomiSmartHome.pm line 165.
2018.07.08 20:26:03 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/71_XiaomiSmartHome.pm line 167.
2018.07.08 20:26:03 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/71_XiaomiSmartHome.pm line 169.
2018.07.08 20:26:03 1: PERL WARNING: Use of uninitialized value in hash element at fhem.pl line 3755.
2018.07.08 20:26:03 1: PERL WARNING: Use of uninitialized value in split at fhem.pl line 4789.
2018.07.08 20:26:03 1: PERL WARNING: Use of uninitialized value $dev in hash element at fhem.pl line 3456.
2018.07.08 20:26:03 1: PERL WARNING: Use of uninitialized value $name in concatenation (.) or string at fhem.pl line 3818.
2018.07.08 20:26:03 3: : Unknown code {"cmd":"read_ack","model":"weather.v1","sid":"158d000247cede","short_id":64012,"data":"{\"voltage\":3055,\"temperature\":\"2699\",\"humidity\":\"4587\",\"pressure\":\"101230\"}"}, help me!
send: Invalid argument at ./FHEM/71_XiaomiSmartHome.pm line 525.


Zeileninhalt:
71_XiaomiSmartHome.pm 161:
if ($modules{XiaomiSmartHome_Device}{defptr}{$rsid}{IODev}->{NAME} eq $hash->{NAME}) {

71_XiaomiSmartHome.pm 164:
elsif ($modules{XiaomiSmartHome_Device}{defptr}{$rsid}{IODev}->{NAME} ne $hash->{NAME}) {

71_XiaomiSmartHome.pm 165:
Log3 $name, 5, "$name: Read> Wrong Modul HASH Trying to find the right one " . $modules{XiaomiSmartHome_Device}{defptr}{$rsid}{IODev}->{NAME} .  " <> " . $hash->{NAME} ;

71_XiaomiSmartHome.pm 167:
Log3 $name, 5, "$name: Read> Using this GW " . $hash->{NAME};

71_XiaomiSmartHome.pm 169:
Log3 $name, 5, "$name: Read> Dispatching " . $buf . " " . $hash->{NAME};

71_XiaomiSmartHome.pm 525:
$sock->mcast_send($msg,$GATEWAY .':9898') or die "send: $!";

fhem.pl; line 3755:
  my $module = $modules{$hash->{TYPE}};

fhem.pl; line 4789:
  my @mRe = split(":", $hash->{Clients} ? $hash->{Clients}:$module->{Clients});

fhem.pl; line 3456:
  my $hash = $defs{$dev};

fhem.pl; line 3818:
      Log3 $name, 3, "$name: Unknown code $dmsg, help me!";


Hat jemand von Euch eine Idee ? :)
Die fhem.pl wurde weder angepasst noch sonstiges - einzig und allein die Updates aus FHEM heraus wurden gemacht.


Danke euch und viele Grüße

CoolTux

Ich denke mal der Thread ist im passe der Unterforum besser aufgehoben.
Bitte verschieben Ihn dahin. Ganz unten im Thread links verschieben.
Wohin sagt Dir MAINTAINER.TXT
https://svn.fhem.de/trac/browser/trunk/fhem/MAINTAINER.txt
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