GetState.pm und Update

Begonnen von franky08, 20 Februar 2014, 12:49:24

Vorheriges Thema - Nächstes Thema

franky08

Hallo, nach dem update heute bekomme ich folgende Meldung:
Zitat./FHEM/99_GetState.pm: No such file or directory

Im Verzeichnis /opt/fhem/FHEM ist die Datei vorhanden aber kleingeschrieben
also getstate.pm.

Soll ich die jetzt einfach "händisch" umbenennen in GetState??

VG
Frank
Debian Bookworm auf HUNSN / Debian Bullseye auf 2.ter HUNSN F2F an 2x RaspiB
mit FHEM aktuell
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu, raspmatic_rpi3, HMIP-HCU1

rudolfkoenig

FHEM sollte egal sein, wie die Datei heisst, solange sie eine passende Initialize-Funktion hat.

franky08

OK, da ist es Initialize GetState:
package main;
use strict;
use warnings;
use POSIX;

sub CommandGetState($);
sub stringToNumber($);
sub stripNumber($);
sub isNumber;
sub isInteger;
sub isFloat;

#####################################
sub
GetState_Initialize($$)
{
  my %lhash = ( Fn=>"CommandGetState",
                Hlp=>"<devspec>,list short status info" );
  $cmds{getstate} = \%lhash;
}



Ich benenne sie einfach von getstate in GetState um.

Vielen Dank
Frank
Debian Bookworm auf HUNSN / Debian Bullseye auf 2.ter HUNSN F2F an 2x RaspiB
mit FHEM aktuell
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu, raspmatic_rpi3, HMIP-HCU1