FRITZBOX - Fritz!Box und Fritz!Fon sprechen - Jetzt auch ohne Telnet

Begonnen von tupol, 28 November 2014, 23:46:54

Vorheriges Thema - Nächstes Thema

volschin

Da läuft bei Dir vermutlich etwas anderes schief. Ich habe auch mit 31437 ordentliche Readings.
Intel NUC+Ubuntu 24.04+Docker+FHEM6
HomeMatic: HM-MOD-RPI-PCB+HM-USB-CFG2+hmland+diverse, HUE: Hue-Bridge, RaspBee+deCONZ+diverse
Amzn Dash-Buttons, Siro Rollos
4xRPi, 4xCO20, OWL+USB, HarmonyHub, FRITZ!Box 7690, Echo Dots+Show8, HomeBridge

Jamo

Mmmh, ich habe vergessen zu erwähnen, das ich in der FritzBox in den "Internals" als  "STATE" immer "Check APIs" habe.
Ein "set FritzBox checkAPIs" hat bisher nichts gebracht, auch re-booten des RaspberryPi2(fhem) oder der Fritzbox bringt keine Änderung.

Ansonsten habe ich alles so gemacht wie bei meinem FritzRepeater, das allerdings mit der alten Firmware läuft.

"Allow tr064" commands habe ich in der FritzBox auch angeschaltet.

Noch eine weitere Idee??
Bullseye auf iNUC, Homematic + HMIP(UART/HMUSB), Debmatic, HUEBridge, Zigbee/Conbee III, FB7690, Alexa (fhem-lazy), Livetracking, LaCrosse JeeLink, LoRaWan / TTN / Chirpstack, Sonos, ESPresence

tupol

da brauche ich wie üblich ein list und ein log-Auszug bei modul verbose 5 und set checkapis.

Tommy82

Hi,
bin mir nicht sicher ob ich hier ganz richtig bin, aber ist es möglich aus fhem heraus (auf Cubietruck) einen Anruf über die FB auf eine Bestimmte nummer auszulösen? Als ich fhem noch auf der FB am laufen hatte, hatte ich das über ein:
Zitat` echo "ATD362522600167" | nc 127.0.0.1 1011`;
gelöst, aber wie könnte ich das jetzt von dem Cubie aus auslösen?

Danke
Fhem Cubitruck  Armbian Buster with Linux 5.3.9-sunxi
HM-CC_RT-DN, HM-Sec-RHS,HM-Sec-SD, HM-Sec-SCo,IT1500,1xIT GRR-3500 Fritz!Dect200,Powerline546E,Enigma2 Modul mit 3 Vu+,Wol Modul für WinServer2016 und WinServer 2019,FB6590
Allnetl Wandtablett mit FTUI

tupol

Einfach den Anfang des Beitrages und die commandref lesen.

Jamo

Zitat von: tupol am 01 Oktober 2015, 17:57:54
da brauche ich wie üblich ein list und ein log-Auszug bei modul verbose 5 und set checkapis.

Hallo Tupol,
hier das das list und ein log-Auszug bei modul verbose 5 und set checkapis.
Internals:
   APICHECKED 1
   CFGFN
   DEF        172.21.0.1
   HOST       172.21.0.1
   INTERVAL   300
   LUAQUERY   1
   M3U_LOCAL  ./www/images/FritzBox.m3u
   M3U_URL    undefined
   NAME       FritzBox
   NR         2099
   REMOTE     1
   SECPORT    49443
   STATE      Check APIs
   TELNET     0
   TR064      1
   TYPE       FRITZBOX
   WEBCM      0
   Readings:
     2015-10-01 22:53:53   lastReadout     9 values captured in 0.68 s
   Fhem:
     LOCAL      0
     definedHost 172.21.0.1
     lastHour   0
     modulVersion $Date: 2015-09-27 18:28:53 +0200 (Sun, 27 Sep 2015) $
   Helper:
     TimerCmd   FritzBox.Cmd
     TimerReadout FritzBox.Readout
     Readout_running_pid:
       abortFn    FRITZBOX_Readout_Aborted
       finishFn   FRITZBOX_Readout_Done
       fn         FRITZBOX_Readout_Run_Web
       pid        21586
       Abortarg:
Attributes:
   allowTR064Command 1
   fritzBoxIP 172.21.0.1
   group      SERVER
   room       FritzBox,Favourites
   sortby     5
   verbose    1


ein log-Auszug bei modul verbose 5 und set checkapis.
2015.10.01 23:15:34 3: FRITZBOX: set FritzBox checkAPIs
2015.10.01 23:15:34 1: FRITZBOX FritzBox: Readout_Start.613 Old readout process still running. Killing old process HASH(0x46ed588)
2015.10.01 23:15:34 4: FRITZBOX FritzBox: Readout_Start.622 Fork process FRITZBOX_API_Check_Run
2015.10.01 23:15:34 5: FRITZBOX FritzBox: Readout_Add_Reading.1668 ->REMOTE: 1
2015.10.01 23:15:34 4: FRITZBOX FritzBox: API_Check_Run.671 FRITZBOX modul runs in remote mode.
2015.10.01 23:15:34 5: FRITZBOX FritzBox: Readout_Add_Reading.1668 ->WEBCM: 0
2015.10.01 23:15:34 4: FRITZBOX FritzBox: API_Check_Run.691 API webcm does not exist: 404 Not Found
2015.10.01 23:15:34 5: FRITZBOX FritzBox: Readout_Add_Reading.1668 ->LUAQUERY: 1
2015.10.01 23:15:34 4: FRITZBOX FritzBox: API_Check_Run.699 API luaQuery found.
2015.10.01 23:15:35 5: FRITZBOX FritzBox: Readout_Add_Reading.1668 ->TR064: 1
2015.10.01 23:15:35 4: FRITZBOX FritzBox: API_Check_Run.711 API TR-064 found.
2015.10.01 23:15:35 4: FRITZBOX FritzBox: API_Check_Run.723 Created m3u file './www/images/FritzBox.m3u'.
2015.10.01 23:15:35 5: FRITZBOX FritzBox: Readout_Add_Reading.1668 ->M3U_LOCAL: ./www/images/FritzBox.m3u
2015.10.01 23:15:35 4: FRITZBOX FritzBox: API_Check_Run.731 Try to get my IP address.
2015.10.01 23:15:35 4: FRITZBOX FritzBox: API_Check_Run.737 Try to get a FHEMWEB port.
2015.10.01 23:15:35 4: FRITZBOX FritzBox: API_Check_Run.749 Try to get 'http://172.21.0.25:8088/fhem/images/FritzBox.m3u'
2015.10.01 23:15:35 4: FRITZBOX FritzBox: API_Check_Run.752 Failed to get 'http://172.21.0.25:8088/fhem/images/FritzBox.m3u': 401 Authorization Required
2015.10.01 23:15:35 5: FRITZBOX FritzBox: Readout_Add_Reading.1668 ->M3U_URL: undefined
2015.10.01 23:15:35 5: FRITZBOX FritzBox: Readout_Add_Reading.1668 ->TELNET: 0
2015.10.01 23:15:35 4: FRITZBOX FritzBox: API_Check_Run.774 Could not open telnet connection to 172.21.0.1: Connection refused
2015.10.01 23:15:35 5: FRITZBOX FritzBox: Readout_Add_Reading.1668 ->APICHECKED: 1
2015.10.01 23:15:35 4: FRITZBOX FritzBox: API_Check_Run.788 Captured 10 values
2015.10.01 23:15:35 5: FRITZBOX FritzBox: API_Check_Run.789 Handover (144): ->REMOTE|1|->WEBCM|0|->LUAQUERY|1|->TR064|1|->M3U_LOCAL|./www/images/FritzBox.m3u|->M3U_URL|undefined|->TELNET|0|->APICHECKED|1|readoutTime|0.79
2015.10.01 23:15:35 4: FRITZBOX FritzBox: Readout_Done.1422 Back at main process
2015.10.01 23:15:35 4: FRITZBOX FritzBox: Readout_Process.1443 Processing 9 readouts.
2015.10.01 23:15:35 4: FRITZBOX FritzBox: Readout_Process.1548 9 values captured in 0.79 s


Ich hoffe das hilft :-)

Danke, Ingolf
Bullseye auf iNUC, Homematic + HMIP(UART/HMUSB), Debmatic, HUEBridge, Zigbee/Conbee III, FB7690, Alexa (fhem-lazy), Livetracking, LaCrosse JeeLink, LoRaWan / TTN / Chirpstack, Sonos, ESPresence

Jamo

... und beim Readout kommt folgendes:

mit einer Fehlermeldung invalid character encountered while parsing JSON string, at character offset 5723 (before "\x{f}4@"\n },\n {\n ...") at ./FHEM/72_FRITZBOX.pm line 4287.


2015.10.01 23:15:44 4: FRITZBOX FritzBox: Readout_Start.622 Fork process FRITZBOX_Readout_Run_Web
2015.10.01 23:15:44 4: FRITZBOX FritzBox: Readout_Run_Web.1147 Start update of slow changing device readings.
2015.10.01 23:15:44 5: FRITZBOX FritzBox: Readout_Add_Reading.1668 fhem->lastHour: 401037
2015.10.01 23:15:46 5: FRITZBOX FritzBox: Readout_Add_Reading.1668 box_model: FRITZ!Box 7490
2015.10.01 23:15:46 5: FRITZBOX FritzBox: Readout_Add_Reading.1668 box_oem: avm
2015.10.01 23:15:46 4: FRITZBOX FritzBox: Readout_Run_Web.1173 Start update of fast changing device readings.
2015.10.01 23:15:46 5: FRITZBOX FritzBox: readPassword.4335 Read FritzBox password from file
2015.10.01 23:15:46 4: FRITZBOX FritzBox: Web_OpenCon.4133 Open Web connection to 172.21.0.1
2015.10.01 23:15:46 4: FRITZBOX FritzBox: Web_OpenCon.4137 Web session opened with 02bf24efea492e05
2015.10.01 23:15:47 5: FRITZBOX FritzBox: Web_Query.4263 Response: {
"radio" : [
{
"Name" : "Dradio Wissen"
},
{
"Name" : "Eins Live Diggi"
},
{
"Name" : ""
},
.
.
.

},
{
"name" : "172.21.0.2",
"filter_profile_UID" : "filtprof6384",
"this_month_time" : "0",
"today_time" : "0",
"type" : "1"
}
],
"is_double_wlan": "1",
"box_wlan_24GHz": "1",
"box_wlan_5GHz": "1",
"box_guestWlan": "0",
"box_guestWlanRemain": "0",
"TodayBytesReceivedHigh": "0",
"TodayBytesReceivedLow": "461009957",
"TodayBytesSentHigh": "0",
"TodayBytesSentLow": "95119894"
}


invalid character encountered while parsing JSON string, at character offset 5723 (before "\x{f}4@"\n },\n {\n ...") at ./FHEM/72_FRITZBOX.pm line 4287.
Bullseye auf iNUC, Homematic + HMIP(UART/HMUSB), Debmatic, HUEBridge, Zigbee/Conbee III, FB7690, Alexa (fhem-lazy), Livetracking, LaCrosse JeeLink, LoRaWan / TTN / Chirpstack, Sonos, ESPresence

realkeule

hallo,

wurde an dem fritzbox modul etwas geändert? ich bin auf fw 6.25 (extra zurückgegangen) um auf meinen fritz fons morgens radio laufen zu lassen. mit:
set fritzbox startRadio 611 HR 3
wird 1x ein klingelton abgespielt und das wars.

...es ist so wie immer... gestern gings noch...

bin auf der aktuellen version von fhem.

grüße bernd
Somfy
Ebus

tupol

Zitat von: inoma am 01 Oktober 2015, 23:24:38
... und beim Readout kommt folgendes:

mit einer Fehlermeldung invalid character encountered while parsing JSON string, at character offset 5723 (before "\x{f}4@"\n },\n {\n ...") at ./FHEM/72_FRITZBOX.pm line 4287.


2015.10.01 23:15:44 4: FRITZBOX FritzBox: Readout_Start.622 Fork process FRITZBOX_Readout_Run_Web
2015.10.01 23:15:44 4: FRITZBOX FritzBox: Readout_Run_Web.1147 Start update of slow changing device readings.
2015.10.01 23:15:44 5: FRITZBOX FritzBox: Readout_Add_Reading.1668 fhem->lastHour: 401037
2015.10.01 23:15:46 5: FRITZBOX FritzBox: Readout_Add_Reading.1668 box_model: FRITZ!Box 7490
2015.10.01 23:15:46 5: FRITZBOX FritzBox: Readout_Add_Reading.1668 box_oem: avm
2015.10.01 23:15:46 4: FRITZBOX FritzBox: Readout_Run_Web.1173 Start update of fast changing device readings.
2015.10.01 23:15:46 5: FRITZBOX FritzBox: readPassword.4335 Read FritzBox password from file
2015.10.01 23:15:46 4: FRITZBOX FritzBox: Web_OpenCon.4133 Open Web connection to 172.21.0.1
2015.10.01 23:15:46 4: FRITZBOX FritzBox: Web_OpenCon.4137 Web session opened with 02bf24efea492e05
2015.10.01 23:15:47 5: FRITZBOX FritzBox: Web_Query.4263 Response: {
"radio" : [
{
"Name" : "Dradio Wissen"
},
{
"Name" : "Eins Live Diggi"
},
{
"Name" : ""
},
.
.
.

},
{
"name" : "172.21.0.2",
"filter_profile_UID" : "filtprof6384",
"this_month_time" : "0",
"today_time" : "0",
"type" : "1"
}
],
"is_double_wlan": "1",
"box_wlan_24GHz": "1",
"box_wlan_5GHz": "1",
"box_guestWlan": "0",
"box_guestWlanRemain": "0",
"TodayBytesReceivedHigh": "0",
"TodayBytesReceivedLow": "461009957",
"TodayBytesSentHigh": "0",
"TodayBytesSentLow": "95119894"
}


invalid character encountered while parsing JSON string, at character offset 5723 (before "\x{f}4@"\n },\n {\n ...") at ./FHEM/72_FRITZBOX.pm line 4287.

Fehlt da was im log?

tupol

Zitat von: realkeule am 02 Oktober 2015, 09:25:15
hallo,

wurde an dem fritzbox modul etwas geändert? ich bin auf fw 6.24 (extra zurückgegangen) um auf meinen fritz fons morgens radio laufen zu lassen. mit:
set fritzbox startRadio 611 HR 3
wird 1x ein klingelton abgespielt und das wars.

...es ist so wie immer... gestern gings noch...

bin auf der aktuellen version von fhem.

grüße bernd
Eigentlich nicht. Funktioniert der Sender am FritzFon? Ansonsten brauche ich bitte ein log bei Modul verbose 5

realkeule

Zitat von: tupol am 02 Oktober 2015, 22:10:58
Eigentlich nicht. Funktioniert der Sender am FritzFon? Ansonsten brauche ich bitte ein log bei Modul verbose 5
Radio von fritzfon geht einwandfrei. Verbose 5 kommt morgen 8)

Gesendet von meinem LG-D802 mit Tapatalk

Somfy
Ebus

realkeule

Zitat von: tupol am 02 Oktober 2015, 22:10:58
Eigentlich nicht. Funktioniert der Sender am FritzFon? Ansonsten brauche ich bitte ein log bei Modul verbose 5

2015.10.03 14:40:14 5: Cmd: >set Fritzbox FritzOben<
2015.10.03 14:40:14 3: FRITZBOX: set Fritzbox startRadio 612 Radio Fritz
2015.10.03 14:40:14 5: FRITZBOX Fritzbox: readPassword.4335 Read FritzBox password from file
2015.10.03 14:40:14 4: FRITZBOX Fritzbox: Telnet_OpenCon.3767 Open Telnet connection to fritz.box
2015.10.03 14:40:14 5: FRITZBOX Fritzbox: Telnet_OpenCon.3777 Wait for user or password prompt.
2015.10.03 14:40:15 5: FRITZBOX Fritzbox: Telnet_OpenCon.3810 Entering password
2015.10.03 14:40:15 5: FRITZBOX Fritzbox: Telnet_OpenCon.3813 Wait for command prompt
2015.10.03 14:40:15 5: FRITZBOX Fritzbox: Telnet_OpenCon.3832 Change command prompt
2015.10.03 14:40:15 4: FRITZBOX Fritzbox: Shell_Exec_Telnet.3689 Execute 2 command(s)
2015.10.03 14:40:15 5: FRITZBOX Fritzbox: Shell_Exec_Telnet.3693 Execute 'ctlmgr_ctl r telcfg settings/Foncontrol/User3/IntRingTone'
2015.10.03 14:40:15 5: FRITZBOX Fritzbox: Shell_Exec_Telnet.3701 Result ''
2015.10.03 14:40:15 5: FRITZBOX Fritzbox: Shell_Exec_Telnet.3693 Execute 'ctlmgr_ctl r telcfg settings/Foncontrol/User3/RadioRingID'
2015.10.03 14:40:16 5: FRITZBOX Fritzbox: Shell_Exec_Telnet.3701 Result ''
2015.10.03 14:40:16 4: FRITZBOX Fritzbox: Shell_Exec_Telnet.3712 Received 2 answer(s)
2015.10.03 14:40:16 4: FRITZBOX Fritzbox: Shell_Exec_Telnet.3689 Execute 5 command(s)
2015.10.03 14:40:16 5: FRITZBOX Fritzbox: Shell_Exec_Telnet.3693 Execute 'ctlmgr_ctl w telcfg settings/Foncontrol/User3/IntRingTone 33'
2015.10.03 14:40:16 5: FRITZBOX Fritzbox: Shell_Exec_Telnet.3701 Result ''
2015.10.03 14:40:16 5: FRITZBOX Fritzbox: Shell_Exec_Telnet.3693 Execute 'ctlmgr_ctl w telcfg settings/Foncontrol/User3/RadioRingID 5'
2015.10.03 14:40:16 5: FRITZBOX Fritzbox: Shell_Exec_Telnet.3701 Result ''
2015.10.03 14:40:16 5: FRITZBOX Fritzbox: Shell_Exec_Telnet.3693 Execute 'ctlmgr_ctl w telcfg command/Dial **612'
2015.10.03 14:40:16 5: FRITZBOX Fritzbox: Shell_Exec_Telnet.3701 Result ''
2015.10.03 14:40:16 5: FRITZBOX Fritzbox: Shell_Exec_Telnet.3693 Execute 'ctlmgr_ctl w telcfg settings/Foncontrol/User3/IntRingTone '
2015.10.03 14:40:16 5: FRITZBOX Fritzbox: Shell_Exec_Telnet.3701 Result 'parameter error.
usage:
ctlmgr_ctl [options] <r/w> <ui-module> <key1> [value1]
   (r/w: read/write)
options:
-s <sid>
examples:
1) ctlmgr_ctl w wlan settings/STA_enabled 1
2) ctlmgr_ctl r wlan settings/STA_enabled'
2015.10.03 14:40:16 5: FRITZBOX Fritzbox: Shell_Exec_Telnet.3693 Execute 'ctlmgr_ctl w telcfg settings/Foncontrol/User3/RadioRingID '
2015.10.03 14:40:16 5: FRITZBOX Fritzbox: Shell_Exec_Telnet.3701 Result 'parameter error.
usage:
ctlmgr_ctl [options] <r/w> <ui-module> <key1> [value1]
   (r/w: read/write)
options:
-s <sid>
examples:
1) ctlmgr_ctl w wlan settings/STA_enabled 1
2) ctlmgr_ctl r wlan settings/STA_enabled'
2015.10.03 14:40:16 4: FRITZBOX Fritzbox: Shell_Exec_Telnet.3712 Received 5 answer(s)
2015.10.03 14:40:16 4: FRITZBOX Fritzbox: Telnet_CloseCon.3855 Close Telnet connection
2015.10.03 14:40:16 5: Triggering Fritzbox (1 changes)
2015.10.03 14:40:16 5: Notify loop for Fritzbox FritzOben
Somfy
Ebus

tupol

Das ist sehr seltsam. Dein intRingTone ist leer. Poste mal bitte noch ein list.

Tommy82

Zitat von: tupol am 01 Oktober 2015, 20:14:43
Einfach den Anfang des Beitrages und die commandref lesen.

Wäre das hier das wo mit ich mich beschäftigen müsste?
set <name> call <number> [Dauer] [say:Text|play:MP3URL]

Wenn ja wie kann ich das in meine sub in meiner 99_MyUtils einbauen wo der entsprechende Bereich im Moment so aussieht:
sub Rauchmelderalarm () {
my $ausgeloester_Melder = ReadingsVal("Rauchmelder_Btn1","smoke_detect","leer");
       DebianMail('xxx@googlemail.com','FHEM Feueralarm',$ausgeloester_Melder.'Meldet Alarm' );
       ` echo "ATD03244600167" | nc 127.0.0.1 1011`;
}


Danke
Fhem Cubitruck  Armbian Buster with Linux 5.3.9-sunxi
HM-CC_RT-DN, HM-Sec-RHS,HM-Sec-SD, HM-Sec-SCo,IT1500,1xIT GRR-3500 Fritz!Dect200,Powerline546E,Enigma2 Modul mit 3 Vu+,Wol Modul für WinServer2016 und WinServer 2019,FB6590
Allnetl Wandtablett mit FTUI

Jamo

Zitat von: tupol am 02 Oktober 2015, 22:07:40
Fehlt da was im log?

Hallo Tupol,
ich habe den Fehler gefunden. In dem listing vom "set FritzBox update" hatte ich gesehen, das für die Destination der (inaktiven) Rufumleitungen ein "4@" gelistet war.

Nachdem ich alle inaktiven Rufumleitungen im FritzBox Interface gelöscht habe, bekomme ich auch alle Readings und die Fehlermeldung ist weg.
Danke, Ingolf.

Fehlermeldung (jetzt also behoben): "invalid character encountered while parsing JSON string, at character offset 5723 (before "\x{f}4@"\n },\n {\n ...") at ./FHEM/72_FRITZBOX.pm line 4287."

Das Listing mit den "4@"


"diversity" : [
{
"MSN" : "SIP0",
"Active" : "0",
"Destination" : "4@"
},
{
"MSN" : "SIP1",
"Active" : "0",
"Destination" : "4@"
},
Bullseye auf iNUC, Homematic + HMIP(UART/HMUSB), Debmatic, HUEBridge, Zigbee/Conbee III, FB7690, Alexa (fhem-lazy), Livetracking, LaCrosse JeeLink, LoRaWan / TTN / Chirpstack, Sonos, ESPresence