ich schätze da ist was anderes faul
Ankündigung
Einklappen
Keine Ankündigung bisher.
AVM Plugin
Einklappen
X
-
Zitat von Hochpass Beitrag anzeigenMein 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
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
-
Zitat von psilo Beitrag anzeigenshng neu gestartet?
Vorsichtshalber den ganzen PIZapft ihr Narren der König hat Durst
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
-
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
Kommentar