Hallo,
nach dem heutigen update von 73-presence habe ich diese Warnung im Log:
2024.02.02 10:51:10 1: PERL WARNING: Use of uninitialized value $seconds in concatenation (.) or string at ./FHEM/73_PRESENCE.pm line 1211.
2024.02.02 10:51:10 1: eval: {PRESENCE_ProcessLocalScan('FIRETVCube|0|absent')}
2024.02.02 10:51:10 1: stacktrace:
2024.02.02 10:51:10 1: main::__ANON__ called by ./FHEM/73_PRESENCE.pm (1211)
2024.02.02 10:51:10 1: main::PRESENCE_ProcessLocalScan called by (eval 3647) (1)
2024.02.02 10:51:10 1: (eval) called by fhem.pl (1177)
2024.02.02 10:51:10 1: main::AnalyzePerlCommand called by fhem.pl (1206)
2024.02.02 10:51:10 1: main::AnalyzeCommand called by fhem.pl (1133)
2024.02.02 10:51:10 1: main::AnalyzeCommandChain called by ./FHEM/98_telnet.pm (263)
2024.02.02 10:51:10 1: main::telnet_Read called by fhem.pl (3985)
2024.02.02 10:51:10 1: main::CallFn called by fhem.pl (786)
2024.02.02 10:51:10 1: PERL WARNING: Use of uninitialized value $seconds in addition (+) at ./FHEM/73_PRESENCE.pm line 1214.
2024.02.02 10:51:10 1: eval: {PRESENCE_ProcessLocalScan('FIRETVCube|0|absent')}
2024.02.02 10:51:10 1: stacktrace:
2024.02.02 10:51:10 1: main::__ANON__ called by ./FHEM/73_PRESENCE.pm (1214)
2024.02.02 10:51:10 1: main::PRESENCE_ProcessLocalScan called by (eval 3647) (1)
2024.02.02 10:51:10 1: (eval) called by fhem.pl (1177)
2024.02.02 10:51:10 1: main::AnalyzePerlCommand called by fhem.pl (1206)
2024.02.02 10:51:10 1: main::AnalyzeCommand called by fhem.pl (1133)
2024.02.02 10:51:10 1: main::AnalyzeCommandChain called by ./FHEM/98_telnet.pm (263)
2024.02.02 10:51:10 1: main::telnet_Read called by fhem.pl (3985)
2024.02.02 10:51:10 1: main::CallFn called by fhem.pl (786)
hier das device dazu:
defmod FIRETVCube FireTV 192.168.1.99
setstate FIRETVCube absent
setstate FIRETVCube 2024-02-02 10:53:23 .absenceThresholdCounter 0
setstate FIRETVCube 2024-02-02 10:53:23 .presenceThresholdCounter 0
setstate FIRETVCube 2024-02-02 10:53:23 presence absent
setstate FIRETVCube 2024-02-02 10:53:04 screen_state off
setstate FIRETVCube 2024-02-02 10:53:23 state absent
oder ist hier in 98_FireTV was nicht richtig?
matze1999
hab noch mal nachgedacht, es könnte sein, dass die Warnung schon vor dem update da war.
matze1999
Zitat von: matze1999 am 02 Februar 2024, 10:58:50hier das device dazu:
defmod FIRETVCube FireTV 192.168.1.99
oder ist hier in 98_FireTV was nicht richtig?
Würde ich mal vermuten, falls es ein lan-ping sein sollte.
Müsste dann so lauten:
defmod FIRETVCube FireTV lan-ping 192.168.1.99 30
das device wurde bewusst mit FireTV (zur Fernbedienung) angelegt, und da gibt es ein reading "presence", ich hab/brauch kein presence für die FireTVCube.
matze1999
hier
Bildschirmfoto vom 2024-02-02 11-38-25.png
matze1999
Zitat von: Nobbynews am 02 Februar 2024, 11:15:40Müsste dann so lauten:
defmod FIRETVCube FireTV lan-ping 192.168.1.99 30
Ich meinte natürlich:
defmod presence_FIRETVCube PRESENCE lan-ping 192.168.1.99 30
Die def von Deinem FireTV wollte ich nicht ändern.
Sorry.
Zitat von: matze1999 am 02 Februar 2024, 11:35:27und da gibt es ein reading "presence", ich hab/brauch kein presence für die FireTVCube.
Ok, dann habe ich da etwas gründlich missverstanden.
die Lösung findet sieh HIER (https://forum.fhem.de/index.php?topic=68748.msg1302587#msg1302587)
matze1999