[GELÖST] global nicht INIZIALIZED? -> <no definition>

Begonnen von roman1528, 11 Dezember 2015, 12:15:57

Vorheriges Thema - Nächstes Thema

roman1528

Moin.

Wollte für eine Startroutine in FHEM das global state INIZIALIZED nutzen.

Allerdings steht da immer! (egal wie viele Neustarts oder so):

STATE       <no definition>

Ist das schon einmal aufgetreten? (im Forum nichts gefunden)

Und was muss ich tun um das zu beheben?

LogFile vom FHEM-Start:
2015.12.11 11:18:23 0: Server shutdown
"my" variable $dayDiff masks earlier declaration in same scope at ./FHEM/99_myUtils.pm line 70.
"my" variable $dayDiff masks earlier declaration in same scope at ./FHEM/99_myUtils.pm line 74.
2015.12.11 11:18:27 1: reload: Error:Modul 99_myUtils deactivated:

2015.12.11 11:18:27 1: Including fhem.cfg
2015.12.11 11:18:27 3: telnetPort: port 7072 opened
2015.12.11 11:18:27 3: WEB: port 8083 opened
2015.12.11 11:18:28 2: eventTypes: loaded 1996 events from /mnt/fhem/log/eventTypes.txt
2015.12.11 11:18:29 3: Opening FritzBoxCallMonitor device 192.168.1.1:1012
2015.12.11 11:18:29 3: FritzBoxCallMonitor device opened
2015.12.11 11:18:29 3: FB_CALLMONITOR (FritzBoxCallMonitor) - unable to access cache file: /mnt/fhem/log/telefonbuch_cache.txt
Smartmatch is experimental at ./FHEM/31_MilightDevice.pm line 134, <$fh> line 58.
Smartmatch is experimental at ./FHEM/31_MilightDevice.pm line 359, <$fh> line 58.
Smartmatch is experimental at ./FHEM/31_MilightDevice.pm line 390, <$fh> line 58.
Smartmatch is experimental at ./FHEM/31_MilightDevice.pm line 411, <$fh> line 58.
Smartmatch is experimental at ./FHEM/31_MilightDevice.pm line 456, <$fh> line 58.
Smartmatch is experimental at ./FHEM/31_MilightDevice.pm line 487, <$fh> line 58.
Smartmatch is experimental at ./FHEM/31_MilightDevice.pm line 514, <$fh> line 58.
Smartmatch is experimental at ./FHEM/31_MilightDevice.pm line 721, <$fh> line 58.
2015.12.11 11:18:30 1: I2C_TSL2561_Define start: 3/Lux_Sensor I2C_TSL2561 0x39
Smartmatch is experimental at ./FHEM/10_RESIDENTS.pm line 159, <$fh> line 127.
Smartmatch is experimental at ./FHEM/10_RESIDENTS.pm line 160, <$fh> line 127.
Smartmatch is experimental at ./FHEM/10_RESIDENTS.pm line 230, <$fh> line 127.
Smartmatch is experimental at ./FHEM/20_ROOMMATE.pm line 226, <$fh> line 134.
2015.12.11 11:18:33 3: TABLETUI: new ext defined infix:ftui/: dir:./www/tablet/:
2015.12.11 11:18:33 3: Registering HTTPSRV TABLETUI for URL /ftui   and assigned link ftui/ ...
2015.12.11 11:18:33 3: Opening vsx_510 device 192.168.1.3:8102
2015.12.11 11:18:33 3: vsx_510 device opened
2015.12.11 11:18:33 3: PIONEERAVR vsx_510: PIONEERAVR_statusUpdate()
Smartmatch is experimental at ./FHEM/71_PIONEERAVRZONE.pm line 166, <$fh> line 190.
2015.12.11 11:19:15 3: POLLEN: Defined with URL http://www.donnerwetter.de/pollenflug/region.hts?lid=DE24162&Ort=SEHNDE and interval 7200
given is experimental at ./FHEM/59_PROPLANTA.pm line 515, <$fh> line 338.
when is experimental at ./FHEM/59_PROPLANTA.pm line 517, <$fh> line 338.
when is experimental at ./FHEM/59_PROPLANTA.pm line 521, <$fh> line 338.
2015.12.11 11:19:19 3: Opening cul_433 device /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A9ULLB7N-if00-port0
2015.12.11 11:19:19 3: Setting cul_433 serial parameters to 38400,8,N,1
2015.12.11 11:19:19 3: cul_433 device opened
2015.12.11 11:19:22 3: cul_433: Possible commands: BCFiAZEkGMKUYRTVWXefltx
2015.12.11 11:19:23 3: Opening cul_MAX device 192.168.1.20:2323
2015.12.11 11:19:23 3: cul_MAX device opened
2015.12.11 11:19:23 3: cul_MAX: Possible commands: BCFiAZEGMKLUYRTVWXefltx
2015.12.11 11:19:23 2: Switched cul_MAX rfmode to MAX
2015.12.11 11:19:23 3: Opening cul_868 device /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A9CJN9DD-if00-port0
2015.12.11 11:19:23 3: Setting cul_868 serial parameters to 38400,8,N,1
2015.12.11 11:19:23 3: cul_868 device opened
2015.12.11 11:19:26 3: cul_868: Possible commands: BCFiAZEkGMKUYRTVWXefltx
2015.12.11 11:19:26 3: CUL_MAX_Check: Detected firmware version 154 of the CUL-compatible IODev
2015.12.11 11:19:27 1: Including ./log/fhem.save
2015.12.11 11:19:28 3: FB_CALLMONITOR (FritzBoxCallMonitor) - found 1 phonebooks
2015.12.11 11:19:28 2: FB_CALLMONITOR (FritzBoxCallMonitor) - read 7 contacts from remote phonebook "Telefonbuch"
2015.12.11 11:19:28 1: usb create starting
2015.12.11 11:19:29 3: Probing CUL device /dev/ttyAMA0
2015.12.11 11:19:29 3: Can't open /dev/ttyAMA0: Keine Berechtigung
2015.12.11 11:19:29 1: usb create end
2015.12.11 11:19:29 0: Featurelevel: 5.7
2015.12.11 11:19:29 0: Server started with 135 defined entities (fhem.pl:10116/2015-12-06 perl:5.020002 os:linux user:fhem pid:4941)


Danke im Vorraus

Grüße^^
i3-10305T 4x3GHz;8GB RAM;250GB & 1TB NVMe:
FHEM 6.2;FTUI;8" Tablet's+Fully;NsPanelPro;HUE;ESPRGBWW;HM(CCU3);Duofern; ASC;MQTT(Tasmota);netatmo;SONOS;eBus;DbLog;XiaomiDevice;NUT;ModbusAttr

RPi3+: FHEM 6.2;I²C;GPIO;RFID;G-Tag;XiaomiBTLESens
RPi3: FHEM 6.2;DIY Relais-Board;I²C;GPIO;RFID;Photovoltaik

marvin78

global kennt keinen STATE. Das ist also völlig normal. STATE ist aber auch nicht gleich Event. Ein Event INITIALIZED wird es auf jeden Fall geben.

roman1528

#2
Zitat von: marvin78 am 11 Dezember 2015, 12:18:55
Ein Event INITIALIZED wird es auf jeden Fall geben.

Ahja... also das Event in einem notify nutzen anstatt den (nicht vorhandenen STATE) auszulesen

Besten Dank.
i3-10305T 4x3GHz;8GB RAM;250GB & 1TB NVMe:
FHEM 6.2;FTUI;8" Tablet's+Fully;NsPanelPro;HUE;ESPRGBWW;HM(CCU3);Duofern; ASC;MQTT(Tasmota);netatmo;SONOS;eBus;DbLog;XiaomiDevice;NUT;ModbusAttr

RPi3+: FHEM 6.2;I²C;GPIO;RFID;G-Tag;XiaomiBTLESens
RPi3: FHEM 6.2;DIY Relais-Board;I²C;GPIO;RFID;Photovoltaik