Ankündigung

Einklappen
Keine Ankündigung bisher.

AVM Plugin

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

    ich schätze da ist was anderes faul

    Kommentar


      Zitat von Hochpass Beitrag anzeigen
      Mein ein paar hinzugefügt. Hmm....

      ERROR Main Calllist not available on the FritzDevice
      ERROR plugins.avm_fritzbox Attribute software_version not available on the FritzDevice
      ERROR plugins.avm_fritzbox Attribute uptime not available on the FritzDevice
      Ich hatte ähnliche Fehler, bei mir war es das Requests Package.

      Grüße
      David

      Kommentar


        Aaaaaaaaahh
        Ich bin blind davon ausgegangen, dass im image vom Onkelandy alles auf dem letzten Stand ist. Jetzt guck ich mal im backend da steht:
        requests 2.18.4 >=2.9.1;python_version>'3.2' | ==2.5.1;python_version=='3.2' (avm)
        Zapft ihr Narren der König hat Durst

        Kommentar


          So ich habe folgendes ausgeführt:
          sudo python3 -m pip install "requests[security]"

          im Backend wird noch die gleiche Version angezeigt wie im Post oben drüber.
          -> noch ein bock drin?
          Zapft ihr Narren der König hat Durst

          Kommentar


            shng neu gestartet?

            Kommentar


              Hallo,
              ist nicht 2.18.4 neuer als bzw. größer 2.9.1.
              Wenn die Pakete im Backend grün sind, sind sie aktuell. Sollte also alles passen.
              Michael

              Kommentar


                ausser er hat python 3.2... dann braucht er das alte paket

                Kommentar


                  Zitat von psilo Beitrag anzeigen
                  shng neu gestartet?
                  Ja.
                  Vorsichtshalber den ganzen PI
                  Zapft ihr Narren der König hat Durst

                  Kommentar


                    So:

                    [smarthome@SmartHomeNG ~]$ python --version
                    Python 2.7.13
                    [smarthome@SmartHomeNG ~]$ python3 --version
                    Python 3.5.5
                    Zapft ihr Narren der König hat Durst

                    Kommentar


                      Code:
                      ist nicht 2.18.4 neuer als bzw. größer 2.9.1.
                      Ja
                      Viele Grüße
                      Martin

                      There is no cloud. It's only someone else's computer.

                      Kommentar


                        Hochpass mit 3.5.5 sollte die neuste Requests funktionieren, macht sie mind. bei mir mit 3 wifi extendern und 1 fritzbox.

                        es hilft sicher, mal einen der curls (siehe README) in der shell aufzurufen und zu schauen, was als meldung zurückkommt

                        Testweise bspw.
                        Code:
                        curl --anyauth -u user:password "https://192.168.178.1:49443/igdupnp/control/WANIPConn1" -H "Content-Type: text/xml; charset="utf-8"" -H "SoapAction:urn:schemas-upnp-org:service:WANIPConnection:1#GetStatusInfo" -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:GetStatusInfo xmlns:u='urn:schemas-upnp-org:service:WANIPConnection:1' /></s:Body></s:Envelope>"-s -k
                        Zuletzt geändert von psilo; 17.10.2017, 04:31.

                        Kommentar


                          Ich glaub ich komm nicht mit. Aber hier der output

                          Code:
                           [smarthome@SmartHomeNG ~]$ curl --anyauth -u user:password "https://192.168.1.2:49443/igdupnp/control/WANIPConn1" -H "Content-Type: text/xml; charset="utf-8"" -H "SoapAction:urn:schemas-upnp-org:service:WANIPConnection:1#GetStatusInfo" -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:GetStatusInfo xmlns:u='urn:schemas-upnp-org:service:WANIPConnection:1' /></s:Body></s:Envelope>"-s -k
                          <?xml version="1.0" encoding="utf-8"?>
                          <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
                          <s:Body>
                          <u:GetStatusInfoResponse xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1">
                          <NewConnectionStatus>Connected</NewConnectionStatus>
                          <NewLastConnectionError>ERROR_NONE</NewLastConnectionError>
                          <NewUptime>4749408</NewUptime>
                          </u:GetStatusInfoResponse>
                          </s:Body>
                          Zapft ihr Narren der König hat Durst

                          Kommentar


                            Hochpass ok, daran liegt es also nicht. Ist das Plugin richtig eingerichtet? Authentifizierung usw passt? Sind die Items richtig auf das Plugin gemapped?

                            Kommentar


                              Hier meine Config

                              Code:
                              fb1:
                                  class_name: AVM
                                  class_path: plugins.avm
                              #    username: ...    # optional
                                  password: 'xxx'
                                  host: '192.168.1.2'
                                  port: 49443
                                  cycle: 300
                                  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_6360
                              HTML-Code:
                              %YAML 1.1
                              ---
                              avm:
                              
                                  firmware:
                                      type: str
                                      visu_acl: ro
                                      avm_data_type@fritzbox_6360: software_version
                              
                                  uptime:
                                      type: num
                                      visu_acl: ro
                                      avm_data_type@fritzbox_6360: uptime
                              
                                  myfritz:
                                      type: bool
                                      avm_data_type@fritzbox_6360: myfritz_status
                              
                                  incoming:
                              
                                      is_call_incoming:
                                          type: bool
                                          avm_data_type@fritzbox_6360: is_call_incoming
                              
                                      duration:
                                          type: num
                                          avm_data_type@fritzbox_6360: call_duration_incoming
                              
                                      last_caller:
                                          type: str
                                          avm_data_type@fritzbox_6360: last_caller_incoming
                              Zuletzt geändert von Hochpass; 17.10.2017, 20:02.
                              Zapft ihr Narren der König hat Durst

                              Kommentar


                                Deine Fritzbox hat ganz sicher keinen USER den Du benötigst? Bei mir nutze ich das ohne User nur mit den abgespeckten Wifi Repeatern...

                                Ansonsten bitte bspw. mal in der methode _update_fritz_device_info response.content rausloggen. Die Zeile wäre unten ergänzt:

                                Code:
                                        if "dev_info_" + action not in self._response_cache:
                                            try:
                                                response = self._session.post(url, data=soap_data, timeout=self._timeout, headers=headers,
                                                                              auth=HTTPDigestAuth(self._fritz_device.get_user(),
                                                                                                  self._fritz_device.get_password()),
                                                                              verify=self._verify)
                                                self.logger.debug(response.content)
                                            except Exception as e:
                                                self.logger.error("Exception when sending POST request: %s" % str(e))
                                                return
                                            self._response_cache["dev_info_" + action] = response.content
                                        else:
                                            self.logger.debug("Accessing DeviceInfo reponse cache for action %s!" % action)
                                Zuletzt geändert von psilo; 17.10.2017, 19:59.

                                Kommentar

                                Lädt...
                                X