home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.21k stars 30.23k forks source link

AVM FRITZ!Box Tools gives errors UPnPError 820 #55659

Closed michelebossa closed 3 years ago

michelebossa commented 3 years ago

The problem

All sensor related to status of router 4040 from FRITZ are unavailable and i have an error related to UPnPError code 820.

image

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform await asyncio.shield(task) File "/usr/src/homeassistant/homeassistant/components/fritz/sensor.py", line 270, in async_setup_entry dslinterface = await hass.async_add_executor_job( File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run result = self.fn(*self.args, **self.kwargs) File "/usr/local/lib/python3.9/site-packages/fritzconnection/core/fritzconnection.py", line 284, in call_action return self.soaper.execute(service, action_name, arguments) File "/usr/local/lib/python3.9/site-packages/fritzconnection/core/soaper.py", line 254, in execute return handle_response(response) File "/usr/local/lib/python3.9/site-packages/fritzconnection/core/soaper.py", line 238, in handle_response raise_fritzconnection_error(response) File "/usr/local/lib/python3.9/site-packages/fritzconnection/core/soaper.py", line 163, in raise_fritzconnection_error raise exception(message) fritzconnection.core.exceptions.FritzInternalError: UPnPError: errorCode: 820 errorDescription: Internal Error

What is version of Home Assistant Core has the issue?

core-2021.9.1

What was the last working version of Home Assistant Core?

core-2021.8.*

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

AVM FRITZ!Box Tools

Link to integration documentation on our website

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2021-09-03 12:43:35 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: notify, notify.telegram, webostv
2021-09-03 12:43:36 DEBUG (MainThread) [homeassistant.components.fritz] Setting up FRITZ!Box Tools component
2021-09-03 12:43:39 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 7fc900dd514ff4ebeeaa1237dfc47772a812b12b23013e9c98da2a247884068f from 185.68.195.75
2021-09-03 12:43:39 DEBUG (SyncWorker_6) [homeassistant.components.fritz.common] Checking devices for FRITZ!Box router 192.168.1.1
2021-09-03 12:43:40 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook 7fc900dd514ff4ebeeaa1237dfc47772a812b12b23013e9c98da2a247884068f from 185.68.195.75
2021-09-03 12:43:46 DEBUG (MainThread) [homeassistant.components.fritz.binary_sensor] Setting up FRITZ!Box binary sensors
2021-09-03 12:43:46 DEBUG (MainThread) [homeassistant.components.fritz.device_tracker] Starting FRITZ!Box device tracker
2021-09-03 12:43:46 DEBUG (MainThread) [homeassistant.components.fritz.switch] Setting up switches
2021-09-03 12:43:46 DEBUG (MainThread) [homeassistant.components.fritz.switch] Fritzbox services: {'any1': <fritzconnection.core.processor.Service object at 0xa5c47e20>, 'WANCommonIFC1': <fritzconnection.core.processor.Service object at 0xa5c595f8>, 'WANDSLLinkC1': <fritzconnection.core.processor.Service object at 0xa5c59508>, 'WANIPConn1': <fritzconnection.core.processor.Service object at 0xa5c595e0>, 'WANIPv6Firewall1': <fritzconnection.core.processor.Service object at 0xa5c59610>, 'DeviceInfo1': <fritzconnection.core.processor.Service object at 0xa5c597d8>, 'DeviceConfig1': <fritzconnection.core.processor.Service object at 0xa5c59748>, 'Layer3Forwarding1': <fritzconnection.core.processor.Service object at 0xa5c596e8>, 'LANConfigSecurity1': <fritzconnection.core.processor.Service object at 0xa5c59688>, 'ManagementServer1': <fritzconnection.core.processor.Service object at 0xa5c59550>, 'Time1': <fritzconnection.core.processor.Service object at 0xa5c596d0>, 'UserInterface1': <fritzconnection.core.processor.Service object at 0xa5c59640>, 'X_AVM-DE_Storage1': <fritzconnection.core.processor.Service object at 0xa5c59670>, 'X_AVM-DE_WebDAVClient1': <fritzconnection.core.processor.Service object at 0xa5c59730>, 'X_AVM-DE_UPnP1': <fritzconnection.core.processor.Service object at 0xa5c59778>, 'X_AVM-DE_Speedtest1': <fritzconnection.core.processor.Service object at 0xa5c66460>, 'X_AVM-DE_RemoteAccess1': <fritzconnection.core.processor.Service object at 0xa5c66448>, 'X_AVM-DE_MyFritz1': <fritzconnection.core.processor.Service object at 0xa5c66388>, 'X_VoIP1': <fritzconnection.core.processor.Service object at 0xa5c662b0>, 'X_AVM-DE_OnTel1': <fritzconnection.core.processor.Service object at 0xa5c66430>, 'X_AVM-DE_TAM1': <fritzconnection.core.processor.Service object at 0xa5c663e8>, 'X_AVM-DE_AppSetup1': <fritzconnection.core.processor.Service object at 0xa5c66310>, 'X_AVM-DE_Homeplug1': <fritzconnection.core.processor.Service object at 0xa5c661d8>, 'X_AVM-DE_Filelinks1': <fritzconnection.core.processor.Service object at 0xa5c66400>, 'X_AVM-DE_Auth1': <fritzconnection.core.processor.Service object at 0xa5c663d0>, 'X_AVM-DE_HostFilter1': <fritzconnection.core.processor.Service object at 0xa5c66418>, 'WLANConfiguration1': <fritzconnection.core.processor.Service object at 0xa5c664f0>, 'WLANConfiguration2': <fritzconnection.core.processor.Service object at 0xa5c66508>, 'WLANConfiguration3': <fritzconnection.core.processor.Service object at 0xa5c66520>, 'Hosts1': <fritzconnection.core.processor.Service object at 0xa5c66538>, 'LANEthernetInterfaceConfig1': <fritzconnection.core.processor.Service object at 0xa5c66550>, 'LANHostConfigManagement1': <fritzconnection.core.processor.Service object at 0xa5c66568>, 'WANCommonInterfaceConfig1': <fritzconnection.core.processor.Service object at 0xa5c665f8>, 'WANDSLInterfaceConfig1': <fritzconnection.core.processor.Service object at 0xa5c66610>, 'WANDSLLinkConfig1': <fritzconnection.core.processor.Service object at 0xa5c666d0>, 'WANEthernetLinkConfig1': <fritzconnection.core.processor.Service object at 0xa5c666e8>, 'WANPPPConnection1': <fritzconnection.core.processor.Service object at 0xa5c66700>, 'WANIPConnection1': <fritzconnection.core.processor.Service object at 0xa5c66718>}
2021-09-03 12:43:46 DEBUG (SyncWorker_0) [homeassistant.components.fritz.switch] Setting up CallDeflection switches
2021-09-03 12:43:46 DEBUG (SyncWorker_9) [homeassistant.components.fritz.binary_sensor] Updating FRITZ!Box binary sensors
2021-09-03 12:43:46 DEBUG (SyncWorker_0) [homeassistant.components.fritz.switch] Specific CallDeflection response: GetNumberOfDeflections={'NewNumberOfDeflections': 0}
2021-09-03 12:43:46 DEBUG (SyncWorker_0) [homeassistant.components.fritz.switch] The FRITZ!Box has no CallDeflection options
2021-09-03 12:43:46 DEBUG (SyncWorker_0) [homeassistant.components.fritz.switch] Setting up PortForward switches
2021-09-03 12:43:46 DEBUG (SyncWorker_0) [homeassistant.components.fritz.switch] Specific PortForward response: GetPortMappingNumberOfEntries=8
2021-09-03 12:43:46 DEBUG (SyncWorker_0) [homeassistant.components.fritz.switch] IP source for 192.168.1.1 is 192.168.1.102
2021-09-03 12:43:46 DEBUG (SyncWorker_0) [homeassistant.components.fritz.switch] Specific PortForward response: GetGenericPortMappingEntry={'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 80, 'NewProtocol': 'TCP', 'NewInternalPort': 22, 'NewInternalClient': '192.168.1.102', 'NewEnabled': False, 'NewPortMappingDescription': 'ssh', 'NewLeaseDuration': 0}
2021-09-03 12:43:46 DEBUG (SyncWorker_0) [homeassistant.components.fritz.switch] Specific PortForward response: GetGenericPortMappingEntry={'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 51413, 'NewProtocol': 'TCP', 'NewInternalPort': 51413, 'NewInternalClient': '192.168.1.102', 'NewEnabled': True, 'NewPortMappingDescription': 'TOR', 'NewLeaseDuration': 0}
2021-09-03 12:43:46 DEBUG (SyncWorker_0) [homeassistant.components.fritz.switch] Specific PortForward response: GetGenericPortMappingEntry={'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 8123, 'NewProtocol': 'TCP', 'NewInternalPort': 443, 'NewInternalClient': '192.168.1.102', 'NewEnabled': True, 'NewPortMappingDescription': 'HA HTTPS', 'NewLeaseDuration': 0}
2021-09-03 12:43:46 DEBUG (SyncWorker_0) [homeassistant.components.fritz.switch] Specific PortForward response: GetGenericPortMappingEntry={'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 8083, 'NewProtocol': 'TCP', 'NewInternalPort': 8083, 'NewInternalClient': '192.168.1.102', 'NewEnabled': False, 'NewPortMappingDescription': 'Calibre', 'NewLeaseDuration': 0}
2021-09-03 12:43:46 DEBUG (SyncWorker_0) [homeassistant.components.fritz.switch] Specific PortForward response: GetGenericPortMappingEntry={'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 32400, 'NewProtocol': 'TCP', 'NewInternalPort': 32400, 'NewInternalClient': '192.168.1.102', 'NewEnabled': True, 'NewPortMappingDescription': 'Plex', 'NewLeaseDuration': 0}
2021-09-03 12:43:46 DEBUG (SyncWorker_0) [homeassistant.components.fritz.switch] Specific PortForward response: GetGenericPortMappingEntry={'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 7277, 'NewProtocol': 'TCP', 'NewInternalPort': 7277, 'NewInternalClient': '192.168.1.102', 'NewEnabled': True, 'NewPortMappingDescription': 'Bitwarden', 'NewLeaseDuration': 0}
2021-09-03 12:43:46 DEBUG (SyncWorker_0) [homeassistant.components.fritz.switch] Specific PortForward response: GetGenericPortMappingEntry={'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 443, 'NewProtocol': 'TCP', 'NewInternalPort': 8124, 'NewInternalClient': '192.168.1.102', 'NewEnabled': True, 'NewPortMappingDescription': 'Server Myhome', 'NewLeaseDuration': 0}
2021-09-03 12:43:47 DEBUG (SyncWorker_0) [homeassistant.components.fritz.switch] Specific PortForward response: GetGenericPortMappingEntry={'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 6800, 'NewProtocol': 'TCP', 'NewInternalPort': 6800, 'NewInternalClient': '192.168.1.102', 'NewEnabled': True, 'NewPortMappingDescription': 'aria2c', 'NewLeaseDuration': 0}
2021-09-03 12:43:47 DEBUG (SyncWorker_0) [homeassistant.components.fritz.switch] Setting up WiFiNetwork switches
2021-09-03 12:43:47 DEBUG (SyncWorker_0) [homeassistant.components.fritz.switch] SSID from device: <BOSSA_GALLO>
2021-09-03 12:43:47 DEBUG (SyncWorker_0) [homeassistant.components.fritz.switch] SSID normalized: <BOSSA_GALLO>
2021-09-03 12:43:47 DEBUG (SyncWorker_0) [homeassistant.components.fritz.switch] SSID from device: <BOSSA_GALLO>
2021-09-03 12:43:47 DEBUG (SyncWorker_0) [homeassistant.components.fritz.switch] SSID duplicated, adding suffix
2021-09-03 12:43:47 DEBUG (SyncWorker_0) [homeassistant.components.fritz.switch] SSID normalized: <BOSSA_GALLO 5Ghz>
2021-09-03 12:43:47 DEBUG (SyncWorker_0) [homeassistant.components.fritz.switch] SSID from device: <BOSSA_GALLO_RPT>
2021-09-03 12:43:47 DEBUG (SyncWorker_0) [homeassistant.components.fritz.switch] SSID normalized: <BOSSA_GALLO_RPT>
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:43:56 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [2872888408] Received invalid command: mobile_app/push_notification_channel
2021-09-03 12:44:12 DEBUG (MainThread) [homeassistant.components.fritz.sensor] Setting up FRITZ!Box sensors
2021-09-03 12:44:13 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up fritz platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
await asyncio.shield(task)
File "/usr/src/homeassistant/homeassistant/components/fritz/sensor.py", line 270, in async_setup_entry
dslinterface = await hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/fritzconnection/core/fritzconnection.py", line 284, in call_action
return self.soaper.execute(service, action_name, arguments)
File "/usr/local/lib/python3.9/site-packages/fritzconnection/core/soaper.py", line 254, in execute
return handle_response(response)
File "/usr/local/lib/python3.9/site-packages/fritzconnection/core/soaper.py", line 238, in handle_response
raise_fritzconnection_error(response)
File "/usr/local/lib/python3.9/site-packages/fritzconnection/core/soaper.py", line 163, in raise_fritzconnection_error
raise exception(message)
fritzconnection.core.exceptions.FritzInternalError: UPnPError:
errorCode: 820
errorDescription: Internal Error
2021-09-03 12:44:13 WARNING (MainThread) [homeassistant.components.mqtt.light.schema_basic] The 'value_template' option is deprecated, please replace it with 'state_value_template'
2021-09-03 12:44:13 WARNING (MainThread) [homeassistant.components.mqtt.light.schema_basic] The 'value_template' option is deprecated, please replace it with 'state_value_template'
2021-09-03 12:44:13 WARNING (MainThread) [homeassistant.components.mqtt.light.schema_basic] The 'value_template' option is deprecated, please replace it with 'state_value_template'
2021-09-03 12:44:13 WARNING (MainThread) [homeassistant.components.mqtt.light.schema_basic] The 'value_template' option is deprecated, please replace it with 'state_value_template'
2021-09-03 12:44:14 WARNING (MainThread) [deebotozmo.vacuum_bot] Invalid Event cleanlogs: {}
2021-09-03 12:44:16 DEBUG (SyncWorker_16) [homeassistant.components.fritz.common] Checking devices for FRITZ!Box router 192.168.1.1
2021-09-03 12:44:16 DEBUG (SyncWorker_15) [homeassistant.components.fritz.binary_sensor] Updating FRITZ!Box binary sensors
2021-09-03 12:44:17 WARNING (MainThread) [homeassistant.components.esphome] Can't connect to ESPHome API for esp32_test (192.168.1.121): Error connecting to ('192.168.1.121', 6053): [Errno 113] Connect call failed ('192.168.1.121', 6053)
2021-09-03 12:44:17 WARNING (MainThread) [homeassistant.components.esphome] Can't connect to ESPHome API for sonoff4chpro (192.168.1.120): Error connecting to ('192.168.1.120', 6053): [Errno 113] Connect call failed ('192.168.1.120', 6053)
2021-09-03 12:44:17 WARNING (MainThread) [homeassistant.components.esphome] Can't connect to ESPHome API for irrigazione_prato (192.168.1.108): Error connecting to ('192.168.1.108', 6053): [Errno 113] Connect call failed ('192.168.1.108', 6053)
2021-09-03 12:44:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Port forward ssh' (PortForward) switch state
2021-09-03 12:44:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Port forward TOR' (PortForward) switch state
2021-09-03 12:44:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Port forward HA HTTPS' (PortForward) switch state
2021-09-03 12:44:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Port forward Calibre' (PortForward) switch state
2021-09-03 12:44:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Port forward Plex' (PortForward) switch state
2021-09-03 12:44:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Port forward Bitwarden' (PortForward) switch state
2021-09-03 12:44:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Port forward Server Myhome' (PortForward) switch state
2021-09-03 12:44:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Port forward aria2c' (PortForward) switch state
2021-09-03 12:44:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Wi-Fi BOSSA_GALLO' (WiFiNetwork) switch state
2021-09-03 12:44:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Wi-Fi BOSSA_GALLO 5Ghz' (WiFiNetwork) switch state
2021-09-03 12:44:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Wi-Fi BOSSA_GALLO_RPT' (WiFiNetwork) switch state
2021-09-03 12:44:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific PortForward response: {'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 8083, 'NewProtocol': 'TCP', 'NewInternalPort': 8083, 'NewInternalClient': '192.168.1.102', 'NewEnabled': False, 'NewPortMappingDescription': 'Calibre', 'NewLeaseDuration': 0}
2021-09-03 12:44:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific PortForward response: {'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 51413, 'NewProtocol': 'TCP', 'NewInternalPort': 51413, 'NewInternalClient': '192.168.1.102', 'NewEnabled': True, 'NewPortMappingDescription': 'TOR', 'NewLeaseDuration': 0}
2021-09-03 12:44:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific WiFiNetwork response: GetInfo={'NewEnable': True, 'NewStatus': 'Up', 'NewMaxBitRate': 'Auto', 'NewChannel': 11, 'NewSSID': 'BOSSA_GALLO', 'NewBeaconType': '11i', 'NewX_AVM-DE_PossibleBeaconTypes': 'None,11i,WPAand11i,11iandWPA3', 'NewMACAddressControlEnabled': False, 'NewStandard': 'n', 'NewBSSID': 'F0:B0:14:5A:1B:82', 'NewBasicEncryptionModes': 'None', 'NewBasicAuthenticationMode': 'None', 'NewMaxCharsSSID': 32, 'NewMinCharsSSID': 1, 'NewAllowedCharsSSID': '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz !"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~', 'NewMinCharsPSK': 64, 'NewMaxCharsPSK': 64, 'NewAllowedCharsPSK': '0123456789ABCDEFabcdef'}
2021-09-03 12:44:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific WiFiNetwork response: GetInfo={'NewEnable': True, 'NewStatus': 'Up', 'NewMaxBitRate': 'Auto', 'NewChannel': 52, 'NewSSID': 'BOSSA_GALLO', 'NewBeaconType': '11i', 'NewX_AVM-DE_PossibleBeaconTypes': 'None,11i,WPAand11i,11iandWPA3', 'NewMACAddressControlEnabled': False, 'NewStandard': 'ac', 'NewBSSID': 'F0:B0:14:5A:1B:83', 'NewBasicEncryptionModes': 'None', 'NewBasicAuthenticationMode': 'None', 'NewMaxCharsSSID': 32, 'NewMinCharsSSID': 1, 'NewAllowedCharsSSID': '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz !"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~', 'NewMinCharsPSK': 64, 'NewMaxCharsPSK': 64, 'NewAllowedCharsPSK': '0123456789ABCDEFabcdef'}
2021-09-03 12:44:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific PortForward response: {'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 6800, 'NewProtocol': 'TCP', 'NewInternalPort': 6800, 'NewInternalClient': '192.168.1.102', 'NewEnabled': True, 'NewPortMappingDescription': 'aria2c', 'NewLeaseDuration': 0}
2021-09-03 12:44:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific PortForward response: {'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 7277, 'NewProtocol': 'TCP', 'NewInternalPort': 7277, 'NewInternalClient': '192.168.1.102', 'NewEnabled': True, 'NewPortMappingDescription': 'Bitwarden', 'NewLeaseDuration': 0}
2021-09-03 12:44:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific WiFiNetwork response: GetInfo={'NewEnable': True, 'NewStatus': 'Up', 'NewMaxBitRate': 'Auto', 'NewChannel': 11, 'NewSSID': 'BOSSA_GALLO_RPT', 'NewBeaconType': '11i', 'NewX_AVM-DE_PossibleBeaconTypes': 'None,11i,11iandWPA3,OWETrans', 'NewMACAddressControlEnabled': False, 'NewStandard': 'n', 'NewBSSID': 'F2:B0:14:5A:1B:82', 'NewBasicEncryptionModes': 'None', 'NewBasicAuthenticationMode': 'None', 'NewMaxCharsSSID': 32, 'NewMinCharsSSID': 1, 'NewAllowedCharsSSID': '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz !"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~', 'NewMinCharsPSK': 64, 'NewMaxCharsPSK': 64, 'NewAllowedCharsPSK': '0123456789ABCDEFabcdef'}
2021-09-03 12:44:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific PortForward response: {'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 32400, 'NewProtocol': 'TCP', 'NewInternalPort': 32400, 'NewInternalClient': '192.168.1.102', 'NewEnabled': True, 'NewPortMappingDescription': 'Plex', 'NewLeaseDuration': 0}
2021-09-03 12:44:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific PortForward response: {'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 8123, 'NewProtocol': 'TCP', 'NewInternalPort': 443, 'NewInternalClient': '192.168.1.102', 'NewEnabled': True, 'NewPortMappingDescription': 'HA HTTPS', 'NewLeaseDuration': 0}
2021-09-03 12:44:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific PortForward response: {'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 443, 'NewProtocol': 'TCP', 'NewInternalPort': 8124, 'NewInternalClient': '192.168.1.102', 'NewEnabled': True, 'NewPortMappingDescription': 'Server Myhome', 'NewLeaseDuration': 0}
2021-09-03 12:44:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific PortForward response: {'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 80, 'NewProtocol': 'TCP', 'NewInternalPort': 22, 'NewInternalClient': '192.168.1.102', 'NewEnabled': False, 'NewPortMappingDescription': 'ssh', 'NewLeaseDuration': 0}
2021-09-03 12:44:23 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'mappingproxy object' has no attribute 'number' when rendering '{{ states.binary_sensor.allerta_storms_nearby.attributes.number }}'
2021-09-03 12:44:23 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'mappingproxy object' has no attribute 'number' when rendering '{{ states.binary_sensor.allerta_storms_nearby.attributes.number }}'
2021-09-03 12:44:23 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'mappingproxy object' has no attribute 'distance' when rendering '{{ states.binary_sensor.allerta_storms_nearby.attributes.distance }}'
2021-09-03 12:44:23 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'mappingproxy object' has no attribute 'distance' when rendering '{{ states.binary_sensor.allerta_storms_nearby.attributes.distance }}'
2021-09-03 12:44:23 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'mappingproxy object' has no attribute 'period' when rendering '{{ states.binary_sensor.allerta_storms_nearby.attributes.period }}'
2021-09-03 12:44:23 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'mappingproxy object' has no attribute 'period' when rendering '{{ states.binary_sensor.allerta_storms_nearby.attributes.period }}'
2021-09-03 12:44:23 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/template/template_entity.py", line 245, in _async_template_startup
result_info.async_refresh()
File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 873, in async_refresh
self._refresh(None)
File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 999, in _refresh
self.hass.async_run_hass_job(self._job, event, updates)
File "/usr/src/homeassistant/homeassistant/core.py", line 433, in async_run_hass_job
hassjob.target(*args)
File "/usr/src/homeassistant/homeassistant/components/template/template_entity.py", line 231, in _handle_results
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 464, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 578, in _async_write_ha_state
self.hass.states.async_set(
File "/usr/src/homeassistant/homeassistant/core.py", line 1219, in async_set
state = State(
File "/usr/src/homeassistant/homeassistant/core.py", line 907, in __init__
raise InvalidStateError(
homeassistant.exceptions.InvalidStateError: Invalid state encountered for entity ID: sensor.meteoalarm_description. State max length is 255 characters.
2021-09-03 12:44:23 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'mappingproxy object' has no attribute 'Consequences' when rendering '{{ states.binary_sensor.meteoalarm.attributes.Consequences }}'
2021-09-03 12:44:23 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'mappingproxy object' has no attribute 'Consequences' when rendering '{{ states.binary_sensor.meteoalarm.attributes.Consequences }}'
2021-09-03 12:44:23 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'mappingproxy object' has no attribute 'authorities' when rendering '{{ states.binary_sensor.meteoalarm.attributes.authorities }}'
2021-09-03 12:44:23 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'mappingproxy object' has no attribute 'authorities' when rendering '{{ states.binary_sensor.meteoalarm.attributes.authorities }}'
2021-09-03 12:44:23 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'mappingproxy object' has no attribute 'unit_of_measuremente' when rendering '{{ states.binary_sensor.meteoalarm.attributes.unit_of_measuremente }}'
2021-09-03 12:44:23 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'mappingproxy object' has no attribute 'unit_of_measuremente' when rendering '{{ states.binary_sensor.meteoalarm.attributes.unit_of_measuremente }}'
2021-09-03 12:44:23 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'mappingproxy object' has no attribute 'icon' when rendering '{{ states.binary_sensor.meteoalarm.attributes.icon }}'
2021-09-03 12:44:23 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'mappingproxy object' has no attribute 'icon' when rendering '{{ states.binary_sensor.meteoalarm.attributes.icon }}'
2021-09-03 12:44:23 WARNING (MainThread) [homeassistant.components.homeassistant.triggers.numeric_state] Error initializing 'SSL expiry notification' trigger: In 'numeric_state' condition: unknown entity sensor.cert_expiry_michelebossa_duckdns_org_8123
2021-09-03 12:44:27 ERROR (MainThread) [homeassistant.components.homekit.util] media_player.plex_plex_for_samsung_tv_ue40h6200 does not support any media_player features
2021-09-03 12:44:46 DEBUG (SyncWorker_8) [homeassistant.components.fritz.common] Checking devices for FRITZ!Box router 192.168.1.1
2021-09-03 12:44:46 DEBUG (SyncWorker_12) [homeassistant.components.fritz.binary_sensor] Updating FRITZ!Box binary sensors
2021-09-03 12:44:47 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Port forward ssh' (PortForward) switch state
2021-09-03 12:44:47 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Port forward TOR' (PortForward) switch state
2021-09-03 12:44:47 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Port forward HA HTTPS' (PortForward) switch state
2021-09-03 12:44:47 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Port forward Calibre' (PortForward) switch state
2021-09-03 12:44:47 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Port forward Plex' (PortForward) switch state
2021-09-03 12:44:47 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Port forward Bitwarden' (PortForward) switch state
2021-09-03 12:44:47 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Port forward Server Myhome' (PortForward) switch state
2021-09-03 12:44:47 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Port forward aria2c' (PortForward) switch state
2021-09-03 12:44:47 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Wi-Fi BOSSA_GALLO' (WiFiNetwork) switch state
2021-09-03 12:44:47 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Wi-Fi BOSSA_GALLO 5Ghz' (WiFiNetwork) switch state
2021-09-03 12:44:47 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Wi-Fi BOSSA_GALLO_RPT' (WiFiNetwork) switch state
2021-09-03 12:44:47 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific PortForward response: {'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 80, 'NewProtocol': 'TCP', 'NewInternalPort': 22, 'NewInternalClient': '192.168.1.102', 'NewEnabled': False, 'NewPortMappingDescription': 'ssh', 'NewLeaseDuration': 0}
2021-09-03 12:44:47 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific PortForward response: {'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 32400, 'NewProtocol': 'TCP', 'NewInternalPort': 32400, 'NewInternalClient': '192.168.1.102', 'NewEnabled': True, 'NewPortMappingDescription': 'Plex', 'NewLeaseDuration': 0}
2021-09-03 12:44:47 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific PortForward response: {'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 51413, 'NewProtocol': 'TCP', 'NewInternalPort': 51413, 'NewInternalClient': '192.168.1.102', 'NewEnabled': True, 'NewPortMappingDescription': 'TOR', 'NewLeaseDuration': 0}
2021-09-03 12:44:47 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific WiFiNetwork response: GetInfo={'NewEnable': True, 'NewStatus': 'Up', 'NewMaxBitRate': 'Auto', 'NewChannel': 11, 'NewSSID': 'BOSSA_GALLO', 'NewBeaconType': '11i', 'NewX_AVM-DE_PossibleBeaconTypes': 'None,11i,WPAand11i,11iandWPA3', 'NewMACAddressControlEnabled': False, 'NewStandard': 'n', 'NewBSSID': 'F0:B0:14:5A:1B:82', 'NewBasicEncryptionModes': 'None', 'NewBasicAuthenticationMode': 'None', 'NewMaxCharsSSID': 32, 'NewMinCharsSSID': 1, 'NewAllowedCharsSSID': '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz !"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~', 'NewMinCharsPSK': 64, 'NewMaxCharsPSK': 64, 'NewAllowedCharsPSK': '0123456789ABCDEFabcdef'}
2021-09-03 12:44:47 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific PortForward response: {'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 8123, 'NewProtocol': 'TCP', 'NewInternalPort': 443, 'NewInternalClient': '192.168.1.102', 'NewEnabled': True, 'NewPortMappingDescription': 'HA HTTPS', 'NewLeaseDuration': 0}
2021-09-03 12:44:47 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific PortForward response: {'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 7277, 'NewProtocol': 'TCP', 'NewInternalPort': 7277, 'NewInternalClient': '192.168.1.102', 'NewEnabled': True, 'NewPortMappingDescription': 'Bitwarden', 'NewLeaseDuration': 0}
2021-09-03 12:44:47 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific PortForward response: {'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 6800, 'NewProtocol': 'TCP', 'NewInternalPort': 6800, 'NewInternalClient': '192.168.1.102', 'NewEnabled': True, 'NewPortMappingDescription': 'aria2c', 'NewLeaseDuration': 0}
2021-09-03 12:44:47 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific PortForward response: {'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 8083, 'NewProtocol': 'TCP', 'NewInternalPort': 8083, 'NewInternalClient': '192.168.1.102', 'NewEnabled': False, 'NewPortMappingDescription': 'Calibre', 'NewLeaseDuration': 0}
2021-09-03 12:44:47 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific PortForward response: {'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 443, 'NewProtocol': 'TCP', 'NewInternalPort': 8124, 'NewInternalClient': '192.168.1.102', 'NewEnabled': True, 'NewPortMappingDescription': 'Server Myhome', 'NewLeaseDuration': 0}
2021-09-03 12:44:47 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific WiFiNetwork response: GetInfo={'NewEnable': True, 'NewStatus': 'Up', 'NewMaxBitRate': 'Auto', 'NewChannel': 52, 'NewSSID': 'BOSSA_GALLO', 'NewBeaconType': '11i', 'NewX_AVM-DE_PossibleBeaconTypes': 'None,11i,WPAand11i,11iandWPA3', 'NewMACAddressControlEnabled': False, 'NewStandard': 'ac', 'NewBSSID': 'F0:B0:14:5A:1B:83', 'NewBasicEncryptionModes': 'None', 'NewBasicAuthenticationMode': 'None', 'NewMaxCharsSSID': 32, 'NewMinCharsSSID': 1, 'NewAllowedCharsSSID': '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz !"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~', 'NewMinCharsPSK': 64, 'NewMaxCharsPSK': 64, 'NewAllowedCharsPSK': '0123456789ABCDEFabcdef'}
2021-09-03 12:44:47 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific WiFiNetwork response: GetInfo={'NewEnable': True, 'NewStatus': 'Up', 'NewMaxBitRate': 'Auto', 'NewChannel': 11, 'NewSSID': 'BOSSA_GALLO_RPT', 'NewBeaconType': '11i', 'NewX_AVM-DE_PossibleBeaconTypes': 'None,11i,11iandWPA3,OWETrans', 'NewMACAddressControlEnabled': False, 'NewStandard': 'n', 'NewBSSID': 'F2:B0:14:5A:1B:82', 'NewBasicEncryptionModes': 'None', 'NewBasicAuthenticationMode': 'None', 'NewMaxCharsSSID': 32, 'NewMinCharsSSID': 1, 'NewAllowedCharsSSID': '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz !"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~', 'NewMinCharsPSK': 64, 'NewMaxCharsPSK': 64, 'NewAllowedCharsPSK': '0123456789ABCDEFabcdef'}
2021-09-03 12:44:59 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'click' when rendering '{{ value_json.click }}'
2021-09-03 12:45:16 DEBUG (SyncWorker_20) [homeassistant.components.fritz.common] Checking devices for FRITZ!Box router 192.168.1.1
2021-09-03 12:45:16 DEBUG (SyncWorker_15) [homeassistant.components.fritz.binary_sensor] Updating FRITZ!Box binary sensors
2021-09-03 12:45:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Port forward ssh' (PortForward) switch state
2021-09-03 12:45:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Port forward TOR' (PortForward) switch state
2021-09-03 12:45:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Port forward HA HTTPS' (PortForward) switch state
2021-09-03 12:45:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Port forward Calibre' (PortForward) switch state
2021-09-03 12:45:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Port forward Plex' (PortForward) switch state
2021-09-03 12:45:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Port forward Bitwarden' (PortForward) switch state
2021-09-03 12:45:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Port forward Server Myhome' (PortForward) switch state
2021-09-03 12:45:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Port forward aria2c' (PortForward) switch state
2021-09-03 12:45:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Wi-Fi BOSSA_GALLO' (WiFiNetwork) switch state
2021-09-03 12:45:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Wi-Fi BOSSA_GALLO 5Ghz' (WiFiNetwork) switch state
2021-09-03 12:45:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Updating 'FRITZ!Box 4040 Wi-Fi BOSSA_GALLO_RPT' (WiFiNetwork) switch state
2021-09-03 12:45:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific PortForward response: {'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 80, 'NewProtocol': 'TCP', 'NewInternalPort': 22, 'NewInternalClient': '192.168.1.102', 'NewEnabled': False, 'NewPortMappingDescription': 'ssh', 'NewLeaseDuration': 0}
2021-09-03 12:45:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific PortForward response: {'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 7277, 'NewProtocol': 'TCP', 'NewInternalPort': 7277, 'NewInternalClient': '192.168.1.102', 'NewEnabled': True, 'NewPortMappingDescription': 'Bitwarden', 'NewLeaseDuration': 0}
2021-09-03 12:45:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific WiFiNetwork response: GetInfo={'NewEnable': True, 'NewStatus': 'Up', 'NewMaxBitRate': 'Auto', 'NewChannel': 11, 'NewSSID': 'BOSSA_GALLO', 'NewBeaconType': '11i', 'NewX_AVM-DE_PossibleBeaconTypes': 'None,11i,WPAand11i,11iandWPA3', 'NewMACAddressControlEnabled': False, 'NewStandard': 'n', 'NewBSSID': 'F0:B0:14:5A:1B:82', 'NewBasicEncryptionModes': 'None', 'NewBasicAuthenticationMode': 'None', 'NewMaxCharsSSID': 32, 'NewMinCharsSSID': 1, 'NewAllowedCharsSSID': '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz !"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~', 'NewMinCharsPSK': 64, 'NewMaxCharsPSK': 64, 'NewAllowedCharsPSK': '0123456789ABCDEFabcdef'}
2021-09-03 12:45:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific WiFiNetwork response: GetInfo={'NewEnable': True, 'NewStatus': 'Up', 'NewMaxBitRate': 'Auto', 'NewChannel': 52, 'NewSSID': 'BOSSA_GALLO', 'NewBeaconType': '11i', 'NewX_AVM-DE_PossibleBeaconTypes': 'None,11i,WPAand11i,11iandWPA3', 'NewMACAddressControlEnabled': False, 'NewStandard': 'ac', 'NewBSSID': 'F0:B0:14:5A:1B:83', 'NewBasicEncryptionModes': 'None', 'NewBasicAuthenticationMode': 'None', 'NewMaxCharsSSID': 32, 'NewMinCharsSSID': 1, 'NewAllowedCharsSSID': '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz !"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~', 'NewMinCharsPSK': 64, 'NewMaxCharsPSK': 64, 'NewAllowedCharsPSK': '0123456789ABCDEFabcdef'}
2021-09-03 12:45:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific PortForward response: {'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 443, 'NewProtocol': 'TCP', 'NewInternalPort': 8124, 'NewInternalClient': '192.168.1.102', 'NewEnabled': True, 'NewPortMappingDescription': 'Server Myhome', 'NewLeaseDuration': 0}
2021-09-03 12:45:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific PortForward response: {'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 51413, 'NewProtocol': 'TCP', 'NewInternalPort': 51413, 'NewInternalClient': '192.168.1.102', 'NewEnabled': True, 'NewPortMappingDescription': 'TOR', 'NewLeaseDuration': 0}
2021-09-03 12:45:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific PortForward response: {'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 6800, 'NewProtocol': 'TCP', 'NewInternalPort': 6800, 'NewInternalClient': '192.168.1.102', 'NewEnabled': True, 'NewPortMappingDescription': 'aria2c', 'NewLeaseDuration': 0}
2021-09-03 12:45:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific PortForward response: {'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 32400, 'NewProtocol': 'TCP', 'NewInternalPort': 32400, 'NewInternalClient': '192.168.1.102', 'NewEnabled': True, 'NewPortMappingDescription': 'Plex', 'NewLeaseDuration': 0}
2021-09-03 12:45:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific WiFiNetwork response: GetInfo={'NewEnable': True, 'NewStatus': 'Up', 'NewMaxBitRate': 'Auto', 'NewChannel': 11, 'NewSSID': 'BOSSA_GALLO_RPT', 'NewBeaconType': '11i', 'NewX_AVM-DE_PossibleBeaconTypes': 'None,11i,11iandWPA3,OWETrans', 'NewMACAddressControlEnabled': False, 'NewStandard': 'n', 'NewBSSID': 'F2:B0:14:5A:1B:82', 'NewBasicEncryptionModes': 'None', 'NewBasicAuthenticationMode': 'None', 'NewMaxCharsSSID': 32, 'NewMinCharsSSID': 1, 'NewAllowedCharsSSID': '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz !"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~', 'NewMinCharsPSK': 64, 'NewMaxCharsPSK': 64, 'NewAllowedCharsPSK': '0123456789ABCDEFabcdef'}
2021-09-03 12:45:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific PortForward response: {'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 8083, 'NewProtocol': 'TCP', 'NewInternalPort': 8083, 'NewInternalClient': '192.168.1.102', 'NewEnabled': False, 'NewPortMappingDescription': 'Calibre', 'NewLeaseDuration': 0}
2021-09-03 12:45:17 DEBUG (MainThread) [homeassistant.components.fritz.switch] Specific PortForward response: {'NewRemoteHost': '0.0.0.0', 'NewExternalPort': 8123, 'NewProtocol': 'TCP', 'NewInternalPort': 443, 'NewInternalClient': '192.168.1.102', 'NewEnabled': True, 'NewPortMappingDescription': 'HA HTTPS', 'NewLeaseDuration': 0}

Additional information

No response

chemelli74 commented 3 years ago

File "/usr/local/lib/python3.9/site-packages/fritzconnection/core/soaper.py", line 163, in raise_fritzconnection_error raise exception(message) fritzconnection.core.exceptions.FritzInternalError: UPnPError: errorCode: 820 errorDescription: Internal Error

Hi @michelebossa, as per the above error can you try to restart the router ?

Simone

probot-home-assistant[bot] commented 3 years ago

fritz documentation fritz source (message by IssueLinks)

probot-home-assistant[bot] commented 3 years ago

Hey there @mammuth, @aarondavidschneider, mind taking a look at this issue as it has been labeled with an integration (fritz) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)

michelebossa commented 3 years ago

i have just tried restart router + after restart HA nothing it is changed same error.

chemelli74 commented 3 years ago

i have just tried restart router + after restart HA nothing it is changed same error.

Them I'm sorry but I don't know where the Internal Error of the router is coming from.

Simone

chemelli74 commented 3 years ago

Do you know how to access the file system of your HA instance ? If so please contact me on Discord: chemelli74#2180

Simone

flabbamann commented 3 years ago

I could reproduce this with my 4040. But I'm unsure how to debug this...

flabbamann commented 3 years ago

The 4040 does not have a modem, it can only use an existing internet connection. I think calling the service WANDSLInterfaceConfig raises an Internal Error here https://github.com/home-assistant/core/blob/dev/homeassistant/components/fritz/sensor.py#L272

Adding FritzInternalError to the except block fixes this, but I'm unsure if this introduces other problems šŸ˜Ÿ.

Note that there are different setups possible with the 4040. I'm using the IP-Client-Client mode. I have a 7590 that does dsl, dhcp and mesh-master. The 4040 is connected via LAN and gets its address from the 7590. You could also connect it to your LAN via its WAN-Port and let it provide its own dhcp subnet to its clients. Or you could attach a modem to the WAN-Port. I have no idea how the different setups affect availability of WANDSLInterfaceConfig or the sensors provided by this integration. In my case all sensors but device uptime and connectivity are useless.

@michelebossa @TheZoker what are your setups?

I think we need to investigate further to come up with a proper solution. Or we quickfix FritzInternalError and open a second issue to dig deeper šŸ¤“. @chemelli74 what do you think?

michelebossa commented 3 years ago

@flabbamann i have an antenna with modem connected to WAN-Port. I have made some test with @chemelli74 and him is checking around FritzInternalError i have added the exception into code and it is fixed but i suppose there are some other check to add to avoid any extra problem.

chemelli74 commented 3 years ago

@flabbamann, please test this code: https://github.com/home-assistant/core/compare/dev...chemelli74:chemelli74-fritz-err820?expand=1

Simone

flabbamann commented 3 years ago

@chemelli74 I get another exception:

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/workspaces/core/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/workspaces/core/homeassistant/components/fritz/sensor.py", line 284, in async_setup_entry
    reply = parse_device_reply(err)
  File "/workspaces/core/homeassistant/components/fritz/common.py", line 49, in parse_device_reply
    for str_reply_tuple in reply.split("\n"):
AttributeError: 'FritzInternalError' object has no attribute 'split'

It's working if I cast reply to string, but I think you could skip on that parsing, as FritzInternalError will always have error code 820. https://github.com/kbr/fritzconnection/blob/master/fritzconnection/core/exceptions.py#L176

paulvt commented 3 years ago

I have the same issue with the 5490 router (the original one posted by @michelebossa).

erkr commented 3 years ago

Looking forward for the solution in the pull request. Same issue on my 5490.

michelebossa commented 3 years ago

Thanks all for the fix

erkr commented 3 years ago

Solved, Thx!!