Readingsgroup müllt Log zu

Begonnen von Tobias, 15 Dezember 2013, 07:54:09

Vorheriges Thema - Nächstes Thema

Tobias

Hi,

habe 3 Readingsgroups definiert. Leider wird mein Log zugemüllt:
Use of uninitialized value in string ne at ./FHEM/33_readingsGroup.pm line 499.

Habe erstmal alle Readingsgroups deaktiviet. Jetzt ist Ruhe. Idee was kaputt ist?

define wl_battery readingsGroup .*:battery
attr wl_battery DbLogExclude .*
attr wl_battery mapping {'battery' => ' %DEVICE'}
attr wl_battery nameStyle {($VALUE ne "ok")?'style="color:red"':'style="color:green"'}
attr wl_battery room 99_Devices
attr wl_battery valueStyle {($VALUE ne "ok")?'style="color:red"':'style="color:green"'}
define wl_rferror readingsGroup .*:+rferror
attr wl_rferror DbLogExclude .*
attr wl_rferror mapping {'rferror' => '%DEVICE'}
attr wl_rferror nameStyle {($VALUE eq "1")?'style="color:red"':'style="color:green"'}
attr wl_rferror room 99_Devices
attr wl_rferror valueStyle {($VALUE eq "1")?'style="color:red"':'style="color:green"'}
define wl_rssi readingsGroup .*:+RSSI .*:+rssi_at_xx.*
attr wl_rssi DbLogExclude .*
attr wl_rssi mapping {'RSSI' => '%DEVICE'}
attr wl_rssi room 99_Devices
attr wl_rssi valueStyle {($VALUE >= 90)?'style="color:red"':'style="color:green"'}
Maintainer: Text2Speech, TrashCal, MediaList

Meine Projekte: https://github.com/tobiasfaust
* PumpControl v2: allround Bewässerungssteuerung mit ESP und FHEM
* Ein Modbus RS485 zu MQTT Gateway für SolarWechselrichter

justme1968

einer der Vergleiche spuckt die meldung aus weil $VALUE vermutlich undefined ist.

bitte aktiviere die readingaGroups eine nach der anderen wieder um rauzufinden welche es ist. wenn du sie gefunden hast einfach am anfang  noch auf !defined($VALUE) prüfen und "" oder undefined zurückgeben.

gruss
  andre
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968