FHEM Forum

FHEM - Hausautomations-Systeme => Sonstige Systeme => Thema gestartet von: magicteddy am 24 Januar 2018, 13:09:52

Titel: Error:Modul 24_NETIO230 deactivated
Beitrag von: magicteddy am 24 Januar 2018, 13:09:52
Moin,

ich weiß nicht genau wann das Problem auftrat aber die Steckdosenleiste will nicht mehr mit FHEM:

BEGIN not safe after errors--compilation aborted at ./FHEM/24_NETIO230.pm line 1391, <$fh> line 268.
Type of arg 1 to keys must be hash or array (not hash element) at ./FHEM/24_NETIO230.pm line 136, near "}) "
2018.01.24 13:02:10 0: Experimental keys on scalar is now forbidden at ./FHEM/24_NETIO230.pm line 136, <$fh> line 268.


-teddy
Titel: Antw:Error:Modul 24_NETIO230 deactivated
Beitrag von: dev0 am 24 Januar 2018, 13:40:48
Wenn Du dieses Modul ( https://github.com/ddtlabs/NETIO230/blob/master/FHEM/24_NETIO230.pm ) verwendest, dann ändere mal bitte Zeile 136 wie folgt und geb bescheid ob das ausreichte. Ist ungetestet, komme gearde nicht dazu.

alt: foreach my $socketNum (keys $hash->{SOCKETS}) {
neu: foreach my $socketNum (keys %{ $hash->{SOCKETS} }) {
Titel: Antw:Error:Modul 24_NETIO230 deactivated
Beitrag von: magicteddy am 25 Januar 2018, 00:46:43
Moin und danke, funktioniert!

-teddy
Titel: Antw:Error:Modul 24_NETIO230 deactivated
Beitrag von: Maista am 27 Mai 2018, 20:48:30
Hallo dev0,

danke bei mir hats ebenso geholfen.

Gruss Gerd