LuRhe / fhem-46_GoECharger

FHEM - Modul 46_GoECharger
GNU General Public License v3.0
3 stars 5 forks source link

PERL WARNING: Use of uninitialized value $maxamp in concatenation (.) or string #4

Open TungstenE2 opened 2 years ago

TungstenE2 commented 2 years ago

@LuRhe das Modul knallt mir seit ein paar Tagen das Log voll. Hat das sonst noch jemand?

2022.01.04 13:22:34 1: PERL WARNING: Use of uninitialized value $maxamp in concatenation (.) or string at ./FHEM/46_GoECharger.pm line 652. 2022.01.04 13:22:34 1: stacktrace: 2022.01.04 13:22:34 1: main::ANON called by ./FHEM/46_GoECharger.pm (652) 2022.01.04 13:22:34 1: main::GoECharger_Set called by fhem.pl (3896) 2022.01.04 13:22:34 1: main::CallFn called by fhem.pl (1930) 2022.01.04 13:22:34 1: main::DoSet called by fhem.pl (1972) 2022.01.04 13:22:34 1: main::CommandSet called by fhem.pl (2851) 2022.01.04 13:22:34 1: main::getAllSets called by ./FHEM/01_FHEMWEB.pm (3271) 2022.01.04 13:22:34 1: main::FW_devState called by ./FHEM/01_FHEMWEB.pm (3164) 2022.01.04 13:22:34 1: main::FW_Notify called by fhem.pl (3896) 2022.01.04 13:22:34 1: main::CallFn called by fhem.pl (3813) 2022.01.04 13:22:34 1: main::DoTrigger called by fhem.pl (4911) 2022.01.04 13:22:34 1: main::readingsEndUpdate called by ./FHEM/46_GoECharger.pm (732) 2022.01.04 13:22:34 1: main::GoECharger_ErrorHandling called by FHEM/HttpUtils.pm (446) 2022.01.04 13:22:34 1: main::ANON called by fhem.pl (781)

TungstenE2 commented 2 years ago

push

2022.08.11 09:57:23 1: PERL WARNING: Use of uninitialized value $maxamp in concatenation (.) or string at ./FHEM/46_GoECharger.pm line 652. 2022.08.11 09:57:23 1: stacktrace: 2022.08.11 09:57:23 1: main::ANON called by ./FHEM/46_GoECharger.pm (652) 2022.08.11 09:57:23 1: main::GoECharger_Set called by fhem.pl (3950) 2022.08.11 09:57:23 1: main::CallFn called by fhem.pl (1947) 2022.08.11 09:57:23 1: main::DoSet called by fhem.pl (1989) 2022.08.11 09:57:23 1: main::CommandSet called by fhem.pl (2884) 2022.08.11 09:57:23 1: main::getAllSets called by ./FHEM/01_FHEMWEB.pm (3297) 2022.08.11 09:57:23 1: main::FW_devState called by ./FHEM/01_FHEMWEB.pm (1886) 2022.08.11 09:57:23 1: main::FW_makeDeviceLine called by ./FHEM/01_FHEMWEB.pm (2060) 2022.08.11 09:57:23 1: main::FW_showRoom called by ./FHEM/01_FHEMWEB.pm (1204) 2022.08.11 09:57:23 1: main::FW_answerCall called by ./FHEM/01_FHEMWEB.pm (608) 2022.08.11 09:57:23 1: main::FW_Read called by fhem.pl (3950) 2022.08.11 09:57:23 1: main::CallFn called by fhem.pl (781)

LuRhe commented 2 years ago

@TungstenE2 Hi, tut mir leid. Bei mir momentan keine Meldungen. $maxamp wird vstl. erstmals beim Setzen des Sliders gebraucht und wird, so wie ich das auf die Schnelle gesucht habe, erst später berechnet aus den Limits von max. Boxwert 'ama', Typ2-Kabel-Meldung 'cbl' und evtl. Kabel-Adapter-Typ 'adi'. Eigentlich nur eine Warnung beim ersten Aufruf ohne Charger-Daten (weil da noch undefiniert) und bleibt vielleicht, wenn sämtliche Json-Auswertung (oder die von ama,adi, cbl) nicht wie erwartet klappt. Bist Du auf einem relativ aktuellem Fhem? Bei mir

TungstenE2 commented 2 years ago

Danke für deine Antwort, hatte es auch im Forum gepostet: https://forum.fhem.de/index.php/topic,110282.msg1231085.html#msg1231085

Brauch es nicht essentiell und habe aktuell auch nur den Charger und noch kein eAuto. Evtl ist das der Grund. Habe das Device nun auf disabled gestellt, bekomme aber immer noch unregelmäßig die Meldung im Log.

Verbose ist 1 und FHEM aktuell.

grafik

TungstenE2 commented 2 years ago

Habe wie vorgeschlagen my $maxamp; in my $maxamp=6; geändert. Perl Warning kommt wohl jetzt nicht mehr.

Was genau bedeutet $maxamp=6; jetzt genau in diesem Kontext nun bei einem 11kw Charger?

grafik

Danke Dir