Ankündigung

Einklappen
Keine Ankündigung bisher.

AVM Plugin

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • psilo
    antwortet
    1) Mach mal temporär im Plugin in allen Stellen (oder von mir aus nur an bestimmten wo es anschlägt) wo
    xml = minidom.parseString(response.content)
    steht eine Zeile davor ein
    self.logger.debug(response.content)
    rein.
    Danach bitte neuer Logoutput

    2) was liefern curls gegen die box?
    bpsw.
    Code:
    curl --anyauth -u user:password "https://fritz.box:49443/upnp/control/x_voip" -H "Content-Type: text/xml; charset="utf-8"" -H "SoapAction:urn:dslforum-org:service:X_VoIP:1#X_AVM-DE_GetPhonePort" -d "<?xml version='1.0' encoding='utf-8'?><s:Envelope s:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'><s:Body><u:X_AVM-DE_GetPhonePort xmlns:u='urn:dslforum-org:service:X_VoIP:1'><s:NewIndex>1</s:NewIndex></u:X_AVM-DE_GetPhonePort></s:Body></s:Envelope>" -s -k
    oder

    Code:
    curl --anyauth -u user:password "https://fritz.box:49443/upnp/control/x_voip" -H "Content-Type: text/xml; charset="utf-8"" -H "SoapAction:urn:dslforum-org:service:X_VoIP:1#X_AVM-DE_DialGetConfig" -d "<?xml version='1.0' encoding='utf-8'?><s:Envelope s:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'><s:Body><u:X_AVM-DE_DialGetConfig xmlns:u='urn:dslforum-org:service:X_VoIP:1' /></s:Body></s:Envelope>" -s -k
    user und passwort natürlich ersetzen..

    Einen Kommentar schreiben:


  • Sisamiwe
    antwortet
    Hallo,
    ich habe mal aus dem smarthome.log die entsprechenden Meldung direkt nach einem Neustart zusammengestellt (mit Zeitstempel):
    Code:
    2017-01-29  19:54:42 ERROR    Main         Exception when sending POST request or parsing response: mismatched tag: line 1, column 156
    2017-01-29  19:54:42 ERROR    Main         Calllist not available on the FritzDevice
    2017-01-29  19:54:42 ERROR    Main         Calllist not available on the FritzDevice
    2017-01-29  19:54:42 ERROR    Main         Calllist not available on the FritzDevice
    2017-01-29  19:54:42 ERROR    Main         Calllist not available on the FritzDevice
    2017-01-29  19:54:42 ERROR    Main         Calllist not available on the FritzDevice
    2017-01-29  19:54:42 ERROR    Main         Calllist not available on the FritzDevice
    2017-01-29  19:54:42 ERROR    Main         Calllist not available on the FritzDevice
    2017-01-29  19:54:42 ERROR    Main         Calllist not available on the FritzDevice
    2017-01-29  19:54:42 ERROR    Main         Calllist not available on the FritzDevice
    ...
    2017-01-29  19:55:22 ERROR    plugins_dev.avm_fritzbox_7362 Attribute uptime not available on the FritzDevice
    2017-01-29  19:55:22 ERROR    plugins_dev.avm_fritzbox_7362 Attribute serial_number not available on the FritzDevice
    2017-01-29  19:55:22 ERROR    plugins_dev.avm_fritzbox_7362 Attribute software_version not available on the FritzDevice
    2017-01-29  19:55:22 ERROR    plugins_dev.avm_fritzbox_7362 Attribute hardware_version not available on the FritzDevice
    2017-01-29  19:55:22 ERROR    plugins_dev.avm_fritzbox_7362 Attribute tam_name not available on the FritzDevice
    2017-01-29  19:55:22 ERROR    plugins_dev.avm_fritzbox_7362 Attribute tam_new_message_number not available on the FritzDevice
    2017-01-29  19:55:22 ERROR    plugins_dev.avm_fritzbox_7362 Attribute tam_total_message_number not available on the FritzDevice
    2017-01-29  19:55:22 ERROR    plugins_dev.avm_fritzbox_7362 Attribute tam not available on the FritzDevice
    2017-01-29  19:55:22 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wan_upstream not available on the FritzDevice
    2017-01-29  19:55:22 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wan_downstream not available on the FritzDevice
    2017-01-29  19:55:22 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wan_total_packets_sent not available on the FritzDevice
    2017-01-29  19:55:22 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wan_total_packets_received not available on the FritzDevice
    2017-01-29  19:55:22 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wan_total_bytes_sent not available on the FritzDevice
    2017-01-29  19:55:22 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wan_total_bytes_received not available on the FritzDevice
    2017-01-29  19:55:22 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wan_link not available on the FritzDevice
    2017-01-29  19:55:22 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wlanconfig not available on the FritzDevice
    2017-01-29  19:55:22 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wlanconfig_ssid not available on the FritzDevice
    2017-01-29  19:55:22 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wlanconfig not available on the FritzDevice
    2017-01-29  19:55:22 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wlan_guest_time_remaining not available on the FritzDevice
    ...
    2017-01-29  19:56:46 ERROR    plugins_dev.avm_fritzbox_7362 Attribute uptime not available on the FritzDevice
    2017-01-29  19:56:46 ERROR    plugins_dev.avm_fritzbox_7362 Attribute serial_number not available on the FritzDevice
    2017-01-29  19:56:46 ERROR    plugins_dev.avm_fritzbox_7362 Attribute software_version not available on the FritzDevice
    2017-01-29  19:56:46 ERROR    plugins_dev.avm_fritzbox_7362 Attribute hardware_version not available on the FritzDevice
    2017-01-29  19:56:46 ERROR    plugins_dev.avm_fritzbox_7362 Attribute tam_name not available on the FritzDevice
    2017-01-29  19:56:46 ERROR    plugins_dev.avm_fritzbox_7362 Attribute tam_new_message_number not available on the FritzDevice
    2017-01-29  19:56:46 ERROR    plugins_dev.avm_fritzbox_7362 Attribute tam_total_message_number not available on the FritzDevice
    2017-01-29  19:56:46 ERROR    plugins_dev.avm_fritzbox_7362 Attribute tam not available on the FritzDevice
    2017-01-29  19:56:46 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wan_upstream not available on the FritzDevice
    2017-01-29  19:56:46 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wan_downstream not available on the FritzDevice
    2017-01-29  19:56:46 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wan_total_packets_sent not available on the FritzDevice
    2017-01-29  19:56:46 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wan_total_packets_received not available on the FritzDevice
    2017-01-29  19:56:46 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wan_total_bytes_sent not available on the FritzDevice
    2017-01-29  19:56:46 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wan_total_bytes_received not available on the FritzDevice
    2017-01-29  19:56:46 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wan_link not available on the FritzDevice
    2017-01-29  19:56:46 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wlanconfig not available on the FritzDevice
    2017-01-29  19:56:46 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wlanconfig_ssid not available on the FritzDevice
    2017-01-29  19:56:46 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wlanconfig not available on the FritzDevice
    2017-01-29  19:56:46 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wlan_guest_time_remaining not available on the FritzDevice
    ...
    2017-01-29  19:58:46 ERROR    plugins_dev.avm_fritzbox_7362 Exception when parsing response: mismatched tag: line 1, column 156
    2017-01-29  19:58:46 ERROR    plugins_dev.avm_fritzbox_7362 Exception when parsing response: mismatched tag: line 1, column 156
    2017-01-29  19:58:46 ERROR    plugins_dev.avm_fritzbox_7362 Exception when parsing response: mismatched tag: line 1, column 156
    2017-01-29  19:58:46 ERROR    plugins_dev.avm_fritzbox_7362 Exception when parsing response: mismatched tag: line 1, column 156
    2017-01-29  19:58:46 ERROR    plugins_dev.avm_fritzbox_7362 Attribute tam_name not available on the FritzDevice
    2017-01-29  19:58:46 ERROR    plugins_dev.avm_fritzbox_7362 Attribute tam_new_message_number not available on the FritzDevice
    2017-01-29  19:58:46 ERROR    plugins_dev.avm_fritzbox_7362 Attribute tam_total_message_number not available on the FritzDevice
    2017-01-29  19:58:46 ERROR    plugins_dev.avm_fritzbox_7362 Attribute tam not available on the FritzDevice
    2017-01-29  19:58:46 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wan_upstream not available on the FritzDevice
    2017-01-29  19:58:46 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wan_downstream not available on the FritzDevice
    2017-01-29  19:58:46 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wan_total_packets_sent not available on the FritzDevice
    2017-01-29  19:58:46 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wan_total_packets_received not available on the FritzDevice
    2017-01-29  19:58:46 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wan_total_bytes_sent not available on the FritzDevice
    2017-01-29  19:58:46 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wan_total_bytes_received not available on the FritzDevice
    2017-01-29  19:58:46 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wan_link not available on the FritzDevice
    2017-01-29  19:58:47 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wlanconfig not available on the FritzDevice
    2017-01-29  19:58:47 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wlanconfig_ssid not available on the FritzDevice
    2017-01-29  19:58:47 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wlanconfig not available on the FritzDevice
    2017-01-29  19:58:47 ERROR    plugins_dev.avm_fritzbox_7362 Attribute wlan_guest_time_remaining not available on the FritzDevice
    und so geht es dann immer weiter. Ich verwende den aktuellen Master, habe aber auch mit dem develop-Version des AVM Plugins probiert. Gleiches Ergebnis.

    meine plugins.conf (Auszug)
    Code:
    [fb1]
        class_name = AVM
        class_path = plugins_dev.avm
        username = xxx
        password = xxx
        host = 192.168.2.1
        port = 49443
        cycle = 120
        ssl = True     # use https or not
        verify = False  # verify ssl certificate
        call_monitor = True
    #   call_monitor_incoming_filter = ... #optional, don't set if you don't want to watch only one specific number with your call monitor
        instance = fritzbox_7362
    und die avm.conf (Auszug)
    Code:
    [avm]
        [[uptime_7362]]
            type = num
            visu_acl = ro
            avm_data_type@fritzbox_7362 = uptime
        [[serial_number_7362]]
            type = str
            visu_acl = ro
            avm_data_type@fritzbox_7362 = serial_number
        [[firmware_7362]]
            type = str
            visu_acl = ro
            avm_data_type@fritzbox_7362 = software_version
        [[hardware_version_7362]]
            type = str
            visu_acl = ro
            avm_data_type@fritzbox_7362 = hardware_version
        [[myfritz]]
            type = bool
            avm_data_type@fritzbox_7362 = myfritz_status
        [[reboot]]
            type = bool
            visu_acl = rw
            enforce_updates = yes
    Es werden gar keine Items behandelt, sprich die Items werden nicht mit Daten "gefüllt".
    Hilft das?

    Einen Kommentar schreiben:


  • psilo
    antwortet
    Ich frage mich, was vor der Zeile steht:
    2017-01-29 10:34:34 ERROR plugins.avm_fritzbox_7362 Exception when parsing response: mismatched tag: line 1, column 156

    Sind das alle Meldungen? Geht garnichts oder nur die genannten Objekte? Welche Version? Die aktuelle Master?

    Einen Kommentar schreiben:


  • Sisamiwe
    antwortet
    Hallo,
    ja, SHNG wurde bereits mehrfach neu gestartet. Aber es geht trotzdem nicht.
    Wie kann ich der Fehlermeldung
    Code:
    plugins.avm_fritzbox_7362 Exception when parsing response: mismatched tag: line 1, column 156
    auf den Grund gehen?

    Einen Kommentar schreiben:


  • psilo
    antwortet
    Sisamiwe wie bei den anderen auch schon gefragt - Hast Du SHNG neu gestartet? Nach dem Firmware Update kann das nötig werden..

    Bei mir weiterhin alles fehlerfrei am Laufen, daher kann ich bei etwaigen Problemen ohne mehr Infos nicht unterstützen. Auch meine neue Funksteckdose hat sich ohne Schwierigkeiten eingefügt..

    PS: vielleicht sollten sich auch mal Menschen zu Worte melden, wo alles passt Die Angst hat bis zu Callidomus durchgeschlagen..

    Einen Kommentar schreiben:


  • Sisamiwe
    antwortet
    Hallo,
    auch ich habe nun schlagartig Probleme mit dem Plugin. Aus dem Log:
    Code:
    2017-01-29  10:34:34 ERROR    plugins.avm_fritzbox_7362 Exception when parsing response: mismatched tag: line 1, column 156
    2017-01-29  10:34:34 ERROR    plugins.avm_fritzbox_7362 Exception when parsing response: mismatched tag: line 1, column 156
    2017-01-29  10:34:34 ERROR    plugins.avm_fritzbox_7362 Exception when parsing response: mismatched tag: line 1, column 156
    2017-01-29  10:34:34 ERROR    plugins.avm_fritzbox_7362 Exception when parsing response: mismatched tag: line 1, column 156
    2017-01-29  10:34:34 ERROR    plugins.avm_fritzbox_7362 Attribute tam_name not available on the FritzDevice
    2017-01-29  10:34:34 ERROR    plugins.avm_fritzbox_7362 Attribute tam_new_message_number not available on the FritzDevice
    2017-01-29  10:34:34 ERROR    plugins.avm_fritzbox_7362 Attribute tam_total_message_number not available on the FritzDevice
    2017-01-29  10:34:34 ERROR    plugins.avm_fritzbox_7362 Attribute tam not available on the FritzDevice
    2017-01-29  10:34:35 ERROR    plugins.avm_fritzbox_7362 Attribute wan_upstream not available on the FritzDevice
    2017-01-29  10:34:35 ERROR    plugins.avm_fritzbox_7362 Attribute wan_downstream not available on the FritzDevice
    2017-01-29  10:34:35 ERROR    plugins.avm_fritzbox_7362 Attribute wan_total_packets_sent not available on the FritzDevice
    2017-01-29  10:34:35 ERROR    plugins.avm_fritzbox_7362 Attribute wan_total_packets_received not available on the FritzDevice
    2017-01-29  10:34:35 ERROR    plugins.avm_fritzbox_7362 Attribute wan_total_bytes_sent not available on the FritzDevice
    2017-01-29  10:34:35 ERROR    plugins.avm_fritzbox_7362 Attribute wan_total_bytes_received not available on the FritzDevice
    2017-01-29  10:34:35 ERROR    plugins.avm_fritzbox_7362 Attribute wan_link not available on the FritzDevice
    2017-01-29  10:34:35 ERROR    plugins.avm_fritzbox_7362 Attribute wlanconfig not available on the FritzDevice
    2017-01-29  10:34:35 ERROR    plugins.avm_fritzbox_7362 Attribute wlanconfig_ssid not available on the FritzDevice
    2017-01-29  10:34:35 ERROR    plugins.avm_fritzbox_7362 Attribute wlanconfig not available on the FritzDevice
    2017-01-29  10:34:35 ERROR    plugins.avm_fritzbox_7362 Attribute wlan_guest_time_remaining not available on the FritzDevice
    Das ging alles schonmal. Hat jemand eine Idee?

    Einen Kommentar schreiben:


  • psilo
    antwortet
    ok danke. wie gesagt, ich teste eigentl. fast mit dem ganzen itemset.. nur einige funktionen nutze ich nicht selber.

    teste später noch eine dect 210, kam gerade mit der post..

    Einen Kommentar schreiben:


  • McTao
    antwortet
    Zitat von psilo Beitrag anzeigen
    ich würde da auf den DIFF Befehl unter Linux verweisen.
    Allgemein wäre es gut, wenn ich noch vor unserem neuen Release etwas mehr Testfeedback zur 06.80 hier bekäme.
    Hi,

    habe heute nachmittag etwas Zeit, werde dann ein checkout (neues Verzeichnis) machen und dann die Dateien mal vergleichen (diff).

    Was auch unter der 6.80 geht ist die Anwesenheitserkennung der Handys im WLAN, die Ausgabe LastCaller, CalledNumber etc.

    Wenn mir sonst noch etwas auffällt, werde ich mich kurzfristig melden.

    Ansonsten ist es mal wieder Zeit DANKE zu sagen, für die tolle Arbeit und die guten Plugins. Ohne AVM und Autoblind wäre vieles viel komplizierter.

    Gruss Andreas

    Einen Kommentar schreiben:


  • psilo
    antwortet
    Das mit der Übersicht verstehe ich nicht ganz ich würde da auf den DIFF Befehl unter Linux verweisen. Ich denke aber mal die Antwort ist nein ;-)

    Allgemein wäre es gut, wenn ich noch vor unserem neuen Release etwas mehr Testfeedback zur 06.80 hier bekäme.

    Einen Kommentar schreiben:


  • McTao
    antwortet
    Zitat von psilo Beitrag anzeigen
    SmartHome hattest Du seit dem Update neu gestartet?
    Ja.
    Ich checke nachher noch mal alle Versionen. Evtl war etwas beim git Update nicht sauber. Ich commite meine Items gegen ein GIT auf der Synology und dann ist es etwas aufwändiger, wenn github (develop) und meins sehr weit auseinander gelaufen sind.
    Ich muss mir mal die Versionstände ansehen. Gibt es dazu eine Übersicht (so in Form des Backends, so dass man direkt Referenz und sein Backend vergleichen kann)?

    Gruss Andreas

    Einen Kommentar schreiben:


  • psilo
    antwortet
    McTao ich bin mit meiner 7490 auch auf 6.80. SmartHome hattest Du seit dem Update neu gestartet? bb.PNG

    Einen Kommentar schreiben:


  • McTao
    antwortet
    Zitat von psilo Beitrag anzeigen
    McTao bei mir geht sogar Dein Code ohne Probleme...
    wobe das set_call_origin so nichts bewirken dürfte..
    Die Abstürze gab es auch erst ab Fritz!OS 6.80. Vorher lief alles und wie ich jetzt weiss, bewirkt der Befehl nichts. In den Anfängen des Plugins, klingelte ohne aber kein Telefon. Ich hatte irgendwann den Anschluss an das neue verpasst, aber die Fritzbox aktualisiert. Wenn sollte man alles machen.
    Wenn ich den Befehl jetzt noch drin lasse, kommt es immer noch zum Reboot der Fritzbox!

    Danke,

    Gruß Andreas

    Einen Kommentar schreiben:


  • psilo
    antwortet
    McTao bei mir geht sogar Dein Code ohne Probleme...

    sh.fritzbox_7490.set_call_origin('**610')
    sh.fritzbox_7490.start_call('**9')
    time.sleep(3)
    sh.fritzbox_7490.cancel_call()

    wobe das set_call_origin so nichts bewirken dürfte..

    Einen Kommentar schreiben:


  • psilo
    antwortet
    Also bei mir geht ein sh.fritzbox_7490.start_call('<meine Telefonnummer>') einwandfrei. kein reboot, nichts.

    auch das hier einwandfrei:
    sh.fritzbox_7490.start_call('**9')
    time.sleep(3)
    sh.fritzbox_7490.cancel_call()

    das problem könnte daher das falsch verwendete set_call_origin sein

    Einen Kommentar schreiben:


  • psilo
    antwortet
    ich glaube er nimmt sonst den default, der unter der wählhilfe hinterlegt ist.. es gibt in der neusten version des plugins auch eine funktion die das aktuell selektierte gerät ausgibt:
    #get_call_origin
    #Gets the phone name, currently set as call_origin.

    vermutlich gibt es die probleme bei fehlerhafter benutzung der set_call_origin seit der neuen firmware.. das hatte ich bei den frühen versionen des plugins nicht ausgiebig genug erprobt und auf der (falschen) doku auf manchen webseiten vertraut
    Zuletzt geändert von psilo; 26.01.2017, 12:32.

    Einen Kommentar schreiben:

Lädt...
X