Hauptmenü

Floorplan nach Neustart weg

Begonnen von ThomasW, 08 August 2013, 00:55:06

Vorheriges Thema - Nächstes Thema

ThomasW

Hallo liebe Gemeinde,

habe leichte Probleme mit dem Floorplan.
Seit ca. 1 Monat beschäftige ich mich mit FHEM (mehr spielerisch)
Fhem läuft bei mir auf einem Raspberry mit CoC, gesteuert wird nur eine Aussenleuchte
und zum Visualisierung wollte ich nun den Floorplan einrichten

attr global autoload_undefined_devices 0
attr global latitude 47.606742
attr global logfile ./log/fhem-%Y-%m.log
attr global longitude 12.190361
attr global modpath .
attr global motd none
attr global sendStatistics manually
attr global statefile ./log/fhem.save
attr global uniqueID ./FHEM/FhemUtils/uniqueID
attr global userattr devStateIcon devStateStyle fp_Grundriss icon sortby webCmd
attr global verbose 3

#attr global holiday2we Bayern # Feiertage Bayern

#########################################################################
# Die Definition des CUL mit dessen FHT-ID
#define FHZ FHZ /dev/USB0
#define CUL CUL /dev/ttyACM0@9600 1234
#attr CUL rfmode HomeMatic
#define EUL TCM 310 /dev/ttyACM0@57600
#define BscBor TCM 120 /dev/ttyUSB0@9600
#define BscSmartConnect TCM 310 /dev/ttyUSB0@57600
define COC CUL /dev/ttyAMA0@38400 0000
#########################################################################

# Fake FileLog entry, to access the fhem log from FHEMWEB
define Logfile FileLog ./log/fhem-%Y-%m.log fakelog

# Einrichten FLOORPLAN
define Grundriss FLOORPLAN
attr Grundriss commandfield 1
attr Grundriss fp_arrange 1
attr Grundriss fp_default 1
#########################################################################
# eingebundene Conifurationsdateien

include ./config/autocreate_off.cfg
include ./config/server.cfg
include ./config/buero.cfg

include ./config/test.cfg

########### automatisch erkannte Sensoren #############

Nach "Save fhem.cfg" und "Save config" erscheint auch im Menue der Button "Floorplan".
Soweit alles in Ordnung.
Wird nun ein Neustart des Raspberry durch geführt so ist der Button "Floorplan" weg.
In der fhem.cfg sind die Einträge noch vorhanden.
Wird nun nochmals ein "Save config" durchgeführt sind Config-Einträge des Floorplans auch weg.
Um 0:21 wurde ein Reboot des Raspberry durchgefürt.
um 0:33 ein "Save config"

2013.08.08 00:21:49 0: Server shutdown
2013.08.08 00:21:53 1: Including fhem.cfg
2013.08.08 00:21:54 3: Opening COC device /dev/ttyAMA0
2013.08.08 00:21:54 3: Setting COC baudrate to 38400
2013.08.08 00:21:54 3: COC device opened
2013.08.08 00:21:54 3: COC: Possible commands: mCFiAZOGMRTVWXefltux
String found where operator expected at ./FHEM/95_FLOORPLAN.pm line 276, near "FW_pO "</html>\n""
2013.08.08 00:21:54 1: reload: Error:Modul 95_FLOORPLAN deactivated:
 Global symbol "$FW_RET" requires explicit package name at ./FHEM/95_FLOORPLAN.pm line 207, <$fh> line 30.
Global symbol "$FW_subdir" requires explicit package name at ./FHEM/95_FLOORPLAN.pm line 208, <$fh> line 30.
Global symbol "$FW_wname" requires explicit package name at ./FHEM/95_FLOORPLAN.pm line 209, <$fh> line 30.
Global symbol "$FW_wname" requires explicit package name at ./FHEM/95_FLOORPLAN.pm line 210, <$fh> line 30.
Global symbol "$FW_wname" requires explicit package name at ./FHEM/95_FLOORPLAN.pm line 211, <$fh> line 30.
Global symbol "$FW_tp" requires explicit package name at ./FHEM/95_FLOORPLAN.pm line 212, <$fh> line 30.
Global symbol "$FW_RET" requires explicit package name at ./FHEM/95_FLOORPLAN.pm line 227, <$fh> line 30.
Global symbol "$FW_RET" requires explicit package name at ./FHEM/95_FLOORPLAN.pm line 228, <$fh> line 30.
Global symbol "$FW_subdir" requires explicit package name at ./FHEM/95_FLOORPLAN.pm line 230, <$fh> line 30.
Global symbol "$FW_subdir" requires explicit package name at ./FHEM/95_FLOORPLAN.pm line 232, <$fh> line 30.
Global symbol "$FW_subdir" requires explicit package name at ./FHEM/95_FLOORPLAN.pm line 239, <$fh> line 30.
Global symbol "$FW_cname" requires explicit package name at ./FHEM/95_FLOORPLAN.pm line 249, <$fh> line 30.
Global symbol "$FW_wname" requires explicit package name at ./FHEM/95_FLOORPLAN.pm line 251, <$fh> line 30.
./FHEM/95_FLOORPLAN.pm has too many errors.

2013.08.08 00:21:54 0: Global symbol "$FW_RET" requires explicit package name at ./FHEM/95_FLOORPLAN.pm line 207, <$fh> line 30.
Global symbol "$FW_subdir" requires explicit package name at ./FHEM/95_FLOORPLAN.pm line 208, <$fh> line 30.
Global symbol "$FW_wname" requires explicit package name at ./FHEM/95_FLOORPLAN.pm line 209, <$fh> line 30.
Global symbol "$FW_wname" requires explicit package name at ./FHEM/95_FLOORPLAN.pm line 210, <$fh> line 30.
Global symbol "$FW_wname" requires explicit package name at ./FHEM/95_FLOORPLAN.pm line 211, <$fh> line 30.
Global symbol "$FW_tp" requires explicit package name at ./FHEM/95_FLOORPLAN.pm line 212, <$fh> line 30.
Global symbol "$FW_RET" requires explicit package name at ./FHEM/95_FLOORPLAN.pm line 227, <$fh> line 30.
Global symbol "$FW_RET" requires explicit package name at ./FHEM/95_FLOORPLAN.pm line 228, <$fh> line 30.
Global symbol "$FW_subdir" requires explicit package name at ./FHEM/95_FLOORPLAN.pm line 230, <$fh> line 30.
Global symbol "$FW_subdir" requires explicit package name at ./FHEM/95_FLOORPLAN.pm line 232, <$fh> line 30.
Global symbol "$FW_subdir" requires explicit package name at ./FHEM/95_FLOORPLAN.pm line 239, <$fh> line 30.
Global symbol "$FW_cname" requires explicit package name at ./FHEM/95_FLOORPLAN.pm line 249, <$fh> line 30.
Global symbol "$FW_wname" requires explicit package name at ./FHEM/95_FLOORPLAN.pm line 251, <$fh> line 30.
./FHEM/95_FLOORPLAN.pm has too many errors.

2013.08.08 00:21:54 3: Please define Grundriss first
2013.08.08 00:21:54 3: Please define Grundriss first
2013.08.08 00:21:54 3: Please define Grundriss first
2013.08.08 00:21:54 1: Including ./config/autocreate_off.cfg
2013.08.08 00:21:54 1: Including ./config/server.cfg
2013.08.08 00:21:55 3: xx_WEB: port 8083 opened
2013.08.08 00:21:55 3: xx_WEBconfig: port 9093 opened
2013.08.08 00:21:55 3: xx_telnetPort: port 7072 opened
2013.08.08 00:21:55 1: Including ./config/buero.cfg
2013.08.08 00:21:55 1: Including ./config/test.cfg
2013.08.08 00:21:56 1: configfile: Cannot load module FLOORPLAN
Please define Grundriss first
Please define Grundriss first
Please define Grundriss first
2013.08.08 00:21:56 1: Including ./log/fhem.save
2013.08.08 00:21:56 1: statefile: Please define Grundriss first
2013.08.08 00:21:56 3: initialUsbCheck return value: Unknown command usb, try help
2013.08.08 00:21:56 0: Server started with 27 defined entities (version Fhem 5.4 (DEVELOPMENT), $Id: fhem.pl 3506 2013-07-26 08:57:39Z rudolfkoenig $, pid 7895)
2013.08.08 00:33:52 1: Including fhem.cfg
2013.08.08 00:33:52 3: Opening COC device /dev/ttyAMA0
2013.08.08 00:33:52 3: Setting COC baudrate to 38400
2013.08.08 00:33:52 3: COC device opened
2013.08.08 00:33:53 3: COC: Possible commands: mCFiAZOGMRTVWXefltux
Subroutine FLOORPLAN_Initialize redefined at ./FHEM/95_FLOORPLAN.pm line 144, <$fh> line 30.
Subroutine FP_define redefined at ./FHEM/95_FLOORPLAN.pm line 173, <$fh> line 30.
Subroutine FP_Get redefined at ./FHEM/95_FLOORPLAN.pm line 189, <$fh> line 30.
2013.08.08 00:33:53 1: Including ./config/autocreate_off.cfg
2013.08.08 00:33:53 1: Including ./config/server.cfg
2013.08.08 00:33:53 3: xx_WEB: port 8083 opened
2013.08.08 00:33:53 3: xx_WEBconfig: port 9093 opened
2013.08.08 00:33:53 3: xx_telnetPort: port 7072 opened
2013.08.08 00:33:53 1: Including ./config/buero.cfg
2013.08.08 00:33:53 1: Including ./config/test.cfg
2013.08.08 00:33:53 1: Including ./log/fhem.save

Die erste Fehlermeldung zum Floorplan kam am 01.08.2013 noch einem Update von FHEM.
Auch mehrere Configurationsänderungen und Updates brachten keinen erfolg.
Habt Ihr evtl. eine Idee woran es liegen kann.

Besten Dank in voraus ein sprachloser - kopfloser Suchender

Thomas
FHEM auf RPi Rev.2 mit COC, FS20-Module, LAN-Steckdosen, JeeLink - 4x LaCrosse-Sensoren

UliM

Moin,
in fhem.cfg muss die Definition von fhemweb VOR der Definition des floorplans geladen werden.
Du musst also nur die Reihenfolge in Deiner fhem.cfg umstellen.

steht glaub ich im floorplan-Einricjtungsleitfaden ganz am Ende unter troubleshooting.

Gruß, Uli
RPi4/Raspbian, CUL V3 (ca. 30 HomeMatic-devices), LAN (HarmonyHub, alexa etc.).  Fördermitglied des FHEM e.V.

ThomasW


herzlichen Dank für die schnelle Hilfe.
Kaum wird die Reihenfolge in der Config-Datei neu geordnet, schon geht es wieder.
@UliM Danke für den klapps auf den Hinterkopf ;-) das regt das Denkvermögen an.
Ja, man müßte eigendlich Wissen was man schon mal gelesen hat oder
wenigsten mal nachlesen (wenn man einen Fehler hat).
Ich hoffe, ich kann mir das bist zum nächsten Problem merken.
Aber ich glaube, die Tastatur ist dann wieder schneller. :-)

Mit den besten Grüßen
Thomas
FHEM auf RPi Rev.2 mit COC, FS20-Module, LAN-Steckdosen, JeeLink - 4x LaCrosse-Sensoren