72_FRITZBOX.pm ab Version 07.57.10

Begonnen von JoWiemann, 05 Januar 2024, 10:39:57

Vorheriges Thema - Nächstes Thema

MartinTürk

Hallo, hat keine Eile, dachte nur ich frage mal, falls das schon jemand auch mal hatte.
falls das hilft, hier das log:

2024.12.30 14:18:09 3:[fb | 7590 | 154.08.00 | Set.2103] - BASIC:set fb macFilter off
2024.12.30 14:18:09 4:[fb | 7590 | 154.08.00 | Readout_SetGet_Start.6524] - EXPANDED:Set_CMD_Start -> Set.2105 -> macfilter
2024.12.30 14:18:09 4:[fb | 7590 | 154.08.00 | Readout_SetGet_Start.6650] - EXPANDED:Fork process FRITZBOX_Set_macFilter_OnOff
2024.12.30 14:18:09 4:[fb | 7590 | 154.08.00 | open_Web_Connection.10864] - EXPANDED:checking HOST -> 192.168.X.X
2024.12.30 14:18:09 4:[fb | 7590 | 154.08.00 | open_Web_Connection.10904] - EXPANDED:using old SID from 14:16:15
2024.12.30 14:18:09 4:[fb | 7590 | 154.08.00 | call_Lua_Query.10970] - EXPANDED:Request data via API luaQuery
2024.12.30 14:18:09 4:[fb | 7590 | 154.08.00 | call_Lua_Query.10988] - EXPANDED:get -> URL: http://192.168.X.X/query.lua?sid=b82bbd956ecb0f76&box_macFilter_active=wlan:settings/is_macfilter_active
2024.12.30 14:18:09 5:[fb | 7590 | 154.08.00 | call_Lua_Query.10992] - DEBUG:Response: 200 OK
{"box_macFilter_active":"1"}

2024.12.30 14:18:09 4:[fb | 7590 | 154.08.00 | Helper_process_JSON.11274] - EXPANDED:Decode JSON string.
2024.12.30 14:18:09 4:[fb | 7590 | 154.08.00 | Set_macFilter_OnOff.7679] - EXPANDED:set fb macfilter (Fritz!OS: 08.00)
2024.12.30 14:18:09 4:[fb | 7590 | 154.08.00 | Set_macFilter_OnOff.7681] - EXPANDED:set fb macfilter xhr 1 MACFilter 0 currMACFilter 1 apply  lang de page wKey
2024.12.30 14:18:09 4:[fb | 7590 | 154.08.00 | open_Web_Connection.10864] - EXPANDED:checking HOST -> 192.168.X.X
2024.12.30 14:18:09 4:[fb | 7590 | 154.08.00 | open_Web_Connection.10904] - EXPANDED:using old SID from 14:16:15
2024.12.30 14:18:09 4:[fb | 7590 | 154.08.00 | read_LuaData.11043] - EXPANDED:Request data via API dataQuery.
2024.12.30 14:18:09 4:[fb | 7590 | 154.08.00 | read_LuaData.11047] - EXPANDED:URL: http://192.168.X.X/data.lua?sid=b82bbd956ecb0f76
2024.12.30 14:18:10 5:[fb | 7590 | 154.08.00 | read_LuaData.11052] - DEBUG:Response: 200 OK
{"pid":"wKey","hide":{"shareUsb":true,"liveTv":true,"dectRdio":true,"rrd":true,"rss":true,"mobile":true,"dectMail":true,"tfa":true,"ssoSet":true,"liveImg":true},"timeTillLogout":"1200","time":[],"data":{"valerror":{"ok":false,"tomark":[],"result":"notfound","alert":"Es ist ein Fehler aufgetreten. (notfound)\nBitte überprüfen Sie Ihre Eingabe."},"apply":"valerror"},"sid":"b82bbd956ecb0f76"}

2024.12.30 14:18:10 4:[fb | 7590 | 154.08.00 | Helper_process_JSON.11274] - EXPANDED:Decode JSON string.
2024.12.30 14:18:10 4:[fb | 7590 | 154.08.00 | open_Web_Connection.10864] - EXPANDED:checking HOST -> 192.168.X.X
2024.12.30 14:18:10 4:[fb | 7590 | 154.08.00 | open_Web_Connection.10904] - EXPANDED:using old SID from 14:16:15
2024.12.30 14:18:10 4:[fb | 7590 | 154.08.00 | call_Lua_Query.10970] - EXPANDED:Request data via API luaQuery
2024.12.30 14:18:10 4:[fb | 7590 | 154.08.00 | call_Lua_Query.10988] - EXPANDED:get -> URL: http://192.168.X.X/query.lua?sid=b82bbd956ecb0f76&box_macFilter_active=wlan:settings/is_macfilter_active
2024.12.30 14:18:10 5:[fb | 7590 | 154.08.00 | call_Lua_Query.10992] - DEBUG:Response: 200 OK
{"box_macFilter_active":"1"}

2024.12.30 14:18:10 4:[fb | 7590 | 154.08.00 | Helper_process_JSON.11274] - EXPANDED:Decode JSON string.
2024.12.30 14:18:10 4:[fb | 7590 | 154.08.00 | Set_macFilter_OnOff.7711] - EXPANDED:no macFilter change necessary
2024.12.30 14:18:10 4:[fb | 7590 | 154.08.00 | Readout_Add_Reading.6474] - EXPANDED:retStat_macFilter: macFilter->INFO: change necessary
2024.12.30 14:18:10 4:[fb | 7590 | 154.08.00 | Readout_Response.6042] - EXPANDED:Captured 13 values
2024.12.30 14:18:10 4:[fb | 7590 | 154.08.00 | Readout_Response.6043] - EXPANDED:Handover to main process (249):
fb|2|cmV0U3RhdF9tYWNGaWx0ZXJ8bWFjRmlsdGVyLT5JTkZPOiBjaGFuZ2UgbmVjZXNzYXJ5fHJlYWRvdXRUaW1lfDEuMzh8ZmhlbS0+c2lkfGI4MmJiZDk1NmVjYjBmNzZ8ZmhlbS0+c2lkVGltZXwxNzM1NTY0NjkwLjU1OTEyfGZoZW0tPnNpZEVyckNvdW50fDB8LT5XRUJDT05ORUNUfDF8ZmhlbS0+c2lkTmV3Q291bnR8MA==
2024.12.30 14:18:10 4:[fb | 7590 | 154.08.00 | Readout_SetGet_Done.6672] - EXPANDED:Back at main process
2024.12.30 14:18:10 4:[fb | 7590 | 154.08.00 | Readout_Process.6092] - EXPANDED:box_ disable list: none
2024.12.30 14:18:10 4:[fb | 7590 | 154.08.00 | Readout_Process.6096] - EXPANDED:filter list: none
2024.12.30 14:18:10 4:[fb | 7590 | 154.08.00 | Readout_Process.6268] - EXPANDED:SET retStat_macFilter = 'macFilter->INFO: change necessary'
2024.12.30 14:18:10 4:[fb | 7590 | 154.08.00 | Readout_Process.6327] - EXPANDED:BulkUpdate lastReadout: 7 values captured in 1.38 s


sieht so weit für mich erst mal gut aus, aber ...
so wie ich das lese, prüft er ob eine Änderung nötig ist, sagt ja, ist sie aber in der fb passiert nix.

Viele Grüße und rutscht gleich nicht aus !!
Martin
Proxmox: fhem, MariaDB, iobroker, node-red; SIGNALduino, MQTT, Shelly, Tasmota, Kostal Plenticore, Zappi WB, Fritz!, Viessmann Vitodens + vcontrol, Daikin AC, NSPanel
RPI3B (fhem diskless): SIGNALduino, MapleCul (a-culfw), JeeLink Clone (LaCrosse), FHEM2FHEM
PI4 (nfs server): (Test)

JoWiemann

Jörg Wiemann

Slave: RPi B+ mit 512 MB, COC (868 MHz), CUL V3 (433.92MHz SlowRF); FHEMduino, Aktuelles FHEM

Master: CubieTruck; Debian; Aktuelles FHEM

juemuc

Hallo Jörg,

bei mir waren die Tests erfolgreich.

Viele Grüße
Jürgen
3x Sonos Play 1, 1x Sonos Arc + Sub, 1 Sonos-One, 1x Sonos Playbar
FB6690 + FB7490 mit 4x Dect 200 und 3 Dect-ULE-Thermostate,  raspberry3B+, HM Funkmodul HM-MOD-RPI-PCB, HM Klingelsensor HM-Sen-DB-PCB, HM (IP) Fensterkontakte und  Amazon Echo Dot,  piVCCU, pi OS (bookworm).

JoWiemann

Hallo Jürgen,

vielen Dank für die Rückmeldung.

Grüße Jörg
Jörg Wiemann

Slave: RPi B+ mit 512 MB, COC (868 MHz), CUL V3 (433.92MHz SlowRF); FHEMduino, Aktuelles FHEM

Master: CubieTruck; Debian; Aktuelles FHEM

TomLee

#274
Zitatset <name> enableVPNshare <number> <on|off>

<number> ist die Nummer des Readings vpnn..n_user.. oder _box
Schaltet das VPN share mit der Nummer nn an oder aus.
Die Ausführung erfolgt non Blocking. Die Rückmeldung erfolgt im Reading: retStat_enableVPNshare
Benötigt FRITZ!OS 7.21 oder höher.

Hallo,

rein aus Interesse, mit FRITZ!OS 7.57 hab ich keine Readings vpnn..n_user.. oder _box.
Sind die bei den ganzen letzten updates untergegangen oder muss man die erstmal irgendwie anfordern?

Gruß Thomas


edit:

sry, Doku lesen hat geholfen

JoWiemann

Hallo Thomas,

hast Du das Attribut
enableVPNShares <0 | 1>

Schaltet die Übernahme von VPN Shares als Reading aus/ein.

gesetzt?

Grüße Jörg
Jörg Wiemann

Slave: RPi B+ mit 512 MB, COC (868 MHz), CUL V3 (433.92MHz SlowRF); FHEMduino, Aktuelles FHEM

Master: CubieTruck; Debian; Aktuelles FHEM

TomLee

Ja, ohne geht ja auch nicht das schalten mit enableVPNshare
ERROR: vpn readings not activated
War ein "Bedienungsfehler" von mir das ich das erst nach meiner Frage in der Doku gelesen hatte. Im Trott hab ich die zuvor über Help for FRITZBOX aufgerufen und direkt über die Browsersuche nach vpn gesucht und es kamen keine Ergebnisse. Der Grund dafür war aber das die Hilfe nicht aufgerufen wurde, das ist bei mir? ab und an so und nicht gemerkt gehabt.

cschneider

Liebe alle,
ich habe die letzten Tage FHEM auf einem frischen Server aufgesetzt und dabei lange notwendige Updates durchgeführt. Seitdem klappt leider die Anwesenheitserkennung über die Mac-Adresse nicht mehr - die Readings "mac_***" werden nicht mehr aktualisiert.

Ich habe bisher großteils nur mit der FHEM-Oberfläche gearbeitet, kleine Skripte in perl geschrieben - bin aber nicht der Debugging-Experte. Daher hier die Infos, die ich denke, die relevant sein könnten:

- FHEM Latest Revision: 29683
- 72_FRITZBOX.pm       29283 2024-10-23 10:44:11Z jowiemann

Auszug aus dem Log von 72_FRITZBOX (verbose=5):
2025.02.23 11:44:27 4:[FritzBox | 7490 | 113.07.60 | Readout_Add_Reading.6474] - EXPANDED:box_model: FRITZ!Box 7490
2025.02.23 11:44:27 4:[FritzBox | 7490 | 113.07.60 | Readout_Add_Reading.6474] - EXPANDED:box_oem: 7490 - avm
2025.02.23 11:44:27 4:[FritzBox | 7490 | 113.07.60 | Readout_Add_Reading.6474] - EXPANDED:box_fwVersion: 113.07.60
2025.02.23 11:44:27 4:[FritzBox | 7490 | 113.07.60 | Readout_Add_Reading.6474] - EXPANDED:fhem->fwVersion: 760
2025.02.23 11:44:27 4:[FritzBox | 7490 | 113.07.60 | Readout_Add_Reading.6474] - EXPANDED:fhem->fwVersionStr: 07.60
2025.02.23 11:44:27 4:[FritzBox | 7490 | 113.07.60 | Readout_Add_Reading.6474] - EXPANDED:->APICHECKED: 1
2025.02.23 11:44:27 4:[FritzBox | 7490 | 113.07.60 | Readout_Add_Reading.6474] - EXPANDED:->APICHECK_RET_CODES: Ok
2025.02.23 11:44:27 4:[FritzBox | 7490 | 113.07.60 | Readout_Add_Reading.6474] - EXPANDED:fhem->sidTime: 0
2025.02.23 11:44:27 4:[FritzBox | 7490 | 113.07.60 | Readout_Add_Reading.6474] - EXPANDED:fhem->sidErrCount: 0
2025.02.23 11:44:27 4:[FritzBox | 7490 | 113.07.60 | open_Web_Connection.10864] - EXPANDED:checking HOST -> 192.168.175.1
2025.02.23 11:44:32 4:[FritzBox | 7490 | 113.07.60 | open_Web_Connection.10895] - EXPANDED:Host 192.168.175.1 not available
2025.02.23 11:44:32 4:[FritzBox | 7490 | 113.07.60 | Readout_Add_Reading.6474] - EXPANDED:Error: Device is offline
2025.02.23 11:44:32 4:[FritzBox | 7490 | 113.07.60 | Readout_Add_Reading.6474] - EXPANDED:->WEBCONNECT: 0
2025.02.23 11:44:32 4:[FritzBox | 7490 | 113.07.60 | Readout_Add_Reading.6474] - EXPANDED:fhem->sidTime: 0
2025.02.23 11:44:32 4:[FritzBox | 7490 | 113.07.60 | Readout_Add_Reading.6474] - EXPANDED:fhem->sidErrCount: 1
2025.02.23 11:44:32 4:[FritzBox | 7490 | 113.07.60 | Readout_Add_Reading.6474] - EXPANDED:.calledFrom: checkApis
2025.02.23 11:44:32 3:[FritzBox | 7490 | 113.07.60 | Set_check_APIs.7088] - BASIC:Response -> luaQuery:200 luaData:200 TR064:200
2025.02.23 11:44:32 4:[FritzBox | 7490 | 113.07.60 | Set_check_APIs.7089] - EXPANDED:Captured 22 values
2025.02.23 11:44:32 5:[FritzBox | 7490 | 113.07.60 | Set_check_APIs.7090] - DEBUG:Handover to main process (391): ->HINWEIS_BOXUSER||->HINWEIS_PASSWORD||->LUAQUERY|1|->LUADATA|1|->TR064|1|->SECPORT|49443|box_model|FRITZ!Box 7490|box_oem|7490 - avm|box_fwVersion|113.07.60|fhem->fwVersion|760|fhem->fwVersionStr|07.60|->APICHECKED|1|->APICHECK_RET_CODES|Ok|fhem->sidTime|0|fhem->sidErrCount|0|Error|Device is offline|->WEBCONNECT|0|fhem->sidTime|0|fhem->sidErrCount|1|readoutTime|8.61|.calledFrom|checkApis
2025.02.23 11:44:32 4:[FritzBox | 7490 | 113.07.60 | Readout_Done.6062] - EXPANDED:Back at main process
2025.02.23 11:44:32 4:[FritzBox | 7490 | 113.07.60 | Readout_Process.6092] - EXPANDED:box_ disable list: none
2025.02.23 11:44:32 4:[FritzBox | 7490 | 113.07.60 | Readout_Process.6096] - EXPANDED:filter list: none
2025.02.23 11:44:32 4:[FritzBox | 7490 | 113.07.60 | Readout_Process.6268] - EXPANDED:SET .calledFrom = 'checkApis'
2025.02.23 11:44:32 4:[FritzBox | 7490 | 113.07.60 | Readout_Process.6268] - EXPANDED:SET box_model = 'FRITZ!Box 7490 [7490 - avm]'
2025.02.23 11:44:32 4:[FritzBox | 7490 | 113.07.60 | Readout_Process.6268] - EXPANDED:SET box_fwVersion = '113.07.60'
2025.02.23 11:44:32 4:[FritzBox | 7490 | 113.07.60 | Readout_Process.6327] - EXPANDED:BulkUpdate lastReadout: 19 values captured in 8.61 s

Meine Vermutung: In Zeile 10890 des Moduls steht ein "Ping", der - siehe obiges Log - fehlschlägt und sagt, die FritzBox sei offline - was nicht der Fall ist. Als Demo habe ich folgendes Skript - basierend auf einem Forenbeitrag bei stackoverflow - von der Linux-Kommandozeile (Debian Bookworm) mit perl gestartet:

#!/usr/bin/perl
use Net::Ping;
$p = Net::Ping->new();
my $main_ip="$ARGV[0]";

if ($p->ping($main_ip,1)){
    $result=true;
    print "$main_ip is alive \n";
}else{
    print "$main_ip is down \n";
}

Konsequent zeigt es "192.168.175.1 is down" an, ersetze ich aber die Zeile Ping->new() durch Ping->new('icmp') ist der Host verfügbar.

Leider fehlt mir nun das Wissen, ob der genannte Fehler überhaupt relevant ist für die fehlenden Readings bzw. wie ich die 72_FRITZBOX zumindest temporär verändern kann, um es zu testen ...

Daher: Vielleicht kann mir hier jemand helfen, wie ich im Debugging weiter vorgehe! Vielen herzlichen Dank, viele Grüße

Christian

JoWiemann

#278
Hallo Christian,

Du kannst das Attribut disableHostIPv4check setzen. Dann wird zwar weiterhin geprüft, aber nicht weiter verarbeitet.

Grüße Jörg

PS: Ein ICMP Ping benötigt unter Linux Root Rechte. Falls einer einen Weg kennt... Bitte einen Hinweis geben. Danke
Jörg Wiemann

Slave: RPi B+ mit 512 MB, COC (868 MHz), CUL V3 (433.92MHz SlowRF); FHEMduino, Aktuelles FHEM

Master: CubieTruck; Debian; Aktuelles FHEM

Wernieman

ZitatICMP Ping
?? Ist der ICMP Ping nicht der normale Ping? tcp/udp pings brauchen doch andre Rechte ... oder??
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

JoWiemann

Zitat von: Wernieman am 23 Februar 2025, 22:27:28
ZitatICMP Ping
?? Ist der ICMP Ping nicht der normale Ping? tcp/udp pings brauchen doch andre Rechte ... oder??

If the "icmp" protocol is specified, the ping() method sends an icmp echo message to the remote host, which is what the UNIX ping program does. If the echoed message is received from the remote host and the echoed information is correct, the remote host is considered reachable. Specifying the "icmp" protocol requires that the program be run as root or that the program be setuid to root.
Jörg Wiemann

Slave: RPi B+ mit 512 MB, COC (868 MHz), CUL V3 (433.92MHz SlowRF); FHEMduino, Aktuelles FHEM

Master: CubieTruck; Debian; Aktuelles FHEM

cschneider

Hallo Jörg,
super - damit funktioniert es! Jetzt kommen die Readings wieder - klasse! Vielen Dank

Wernieman

Zitat von: JoWiemann am 23 Februar 2025, 22:34:07
Zitat von: Wernieman am 23 Februar 2025, 22:27:28
ZitatICMP Ping
?? Ist der ICMP Ping nicht der normale Ping? tcp/udp pings brauchen doch andre Rechte ... oder??

If the "icmp" protocol is specified, the ping() method sends an icmp echo message to the remote host, which is what the UNIX ping program does. If the echoed message is received from the remote host and the echoed information is correct, the remote host is considered reachable. Specifying the "icmp" protocol requires that the program be run as root or that the program be setuid to root.

Danke fürs raussuchen ....
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

grappa24

Hallo zusammen,

ich hab seit ein paar Tagen alle 5 Minuten (jeweils 3x) die folgende Fehlermeldung:

2025.03.30 07:30:37 2: [FritzBox | 7590 | 154.08.02 | Helper_retMsg.1272] - SIGNIFICANT:ERROR: wrong parameter. Use on|off
2025.03.30 07:30:37 2: [FritzBox | 7590 | 154.08.02 | Helper_retMsg.1272] - SIGNIFICANT:ERROR: wrong parameter. Use on|off
2025.03.30 07:30:37 2: [FritzBox | 7590 | 154.08.02 | Helper_retMsg.1272] - SIGNIFICANT:ERROR: wrong parameter. Use on|off
2025.03.30 07:35:39 2: [FritzBox | 7590 | 154.08.02 | Helper_retMsg.1272] - SIGNIFICANT:ERROR: wrong parameter. Use on|off
2025.03.30 07:35:39 2: [FritzBox | 7590 | 154.08.02 | Helper_retMsg.1272] - SIGNIFICANT:ERROR: wrong parameter. Use on|off
2025.03.30 07:35:39 2: [FritzBox | 7590 | 154.08.02 | Helper_retMsg.1272] - SIGNIFICANT:ERROR: wrong parameter. Use on|off
2025.03.30 07:40:38 2: [FritzBox | 7590 | 154.08.02 | Helper_retMsg.1272] - SIGNIFICANT:ERROR: wrong parameter. Use on|off
2025.03.30 07:40:38 2: [FritzBox | 7590 | 154.08.02 | Helper_retMsg.1272] - SIGNIFICANT:ERROR: wrong parameter. Use on|off
2025.03.30 07:40:38 2: [FritzBox | 7590 | 154.08.02 | Helper_retMsg.1272] - SIGNIFICANT:ERROR: wrong parameter. Use on|off
Gebäudesicherheit/-komfort, PV-Prognose/Verbrauchssteuerung, Heizungssteuerung, Multimedia, ...
KNX, FS20, HM, HUE, Tradfri, Shellies, KLF200, Netatmo, Nuki, SolarForecast, HEOS, Alexa-FHEM, ...
FHEM 6.4, 2 x RasPi 3B+, Debian Bullseye

JoWiemann

Zitat von: grappa24 am 01 April 2025, 23:07:06Hallo zusammen,

ich hab seit ein paar Tagen alle 5 Minuten (jeweils 3x) die folgende Fehlermeldung:

2025.03.30 07:30:37 2: [FritzBox | 7590 | 154.08.02 | Helper_retMsg.1272] - SIGNIFICANT:ERROR: wrong parameter. Use on|off
...
2025.03.30 07:40:38 2: [FritzBox | 7590 | 154.08.02 | Helper_retMsg.1272] - SIGNIFICANT:ERROR: wrong parameter. Use on|off


Hallo,

bitte einmal mit verbose 4 loggen. Hat Du einen Automatismus, der alle 5 Minuten das FritzBox-Device anspricht?

Grüße Jörg
Jörg Wiemann

Slave: RPi B+ mit 512 MB, COC (868 MHz), CUL V3 (433.92MHz SlowRF); FHEMduino, Aktuelles FHEM

Master: CubieTruck; Debian; Aktuelles FHEM