Closed DavidFW1960 closed 4 years ago
I did add a new Fritz repeater yesterday model 3000 as well and it's not asking me to add it. Not sure if it should?
Additionally, setting it up on another HA instance, it seems to be wanting climate entities and a switch? I'm wondering if this should have been even detected? This is a straight router and repeater. I also added another wifi repeater yesterday that is not being detected but the second instance detects all 3 (as well as the climate errors)?
Just removed the integration for the FB's and when I restart it detects all 3 - a 7590 (Mesh Master), 7490 (Repeater) and the new 3000 (repeater). The errors seem to all relate to the repeater 10.90.11.91
2020-04-24 13:16:52 ERROR (MainThread) [homeassistant.components.climate] Error while setting up fritzbox platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/usr/src/homeassistant/homeassistant/components/fritzbox/climate.py", line 56, in async_setup_entry
for device in await hass.async_add_executor_job(fritz.get_devices):
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 146, in get_devices
for element in self.get_device_elements():
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 130, in get_device_elements
plain = self._aha_request('getdevicelistinfos')
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 100, in _aha_request
plain = self._request(url, params)
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 50, in _request
rsp.raise_for_status()
File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 941, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://10.90.11.91/webservices/homeautoswitch.lua?switchcmd=getdevicelistinfos&sid=8ae47b5680b040f3
2020-04-24 13:16:52 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up fritzbox platform for binary_sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/usr/src/homeassistant/homeassistant/components/fritzbox/binary_sensor.py", line 16, in async_setup_entry
for device in await hass.async_add_executor_job(fritz.get_devices):
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 146, in get_devices
for element in self.get_device_elements():
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 130, in get_device_elements
plain = self._aha_request('getdevicelistinfos')
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 100, in _aha_request
plain = self._request(url, params)
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 50, in _request
rsp.raise_for_status()
File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 941, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://10.90.11.91/webservices/homeautoswitch.lua?switchcmd=getdevicelistinfos&sid=8ae47b5680b040f3
2020-04-24 13:16:52 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up fritzbox platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/usr/src/homeassistant/homeassistant/components/fritzbox/sensor.py", line 22, in async_setup_entry
for device in await hass.async_add_executor_job(fritz.get_devices):
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 146, in get_devices
for element in self.get_device_elements():
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 130, in get_device_elements
plain = self._aha_request('getdevicelistinfos')
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 100, in _aha_request
plain = self._request(url, params)
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 50, in _request
rsp.raise_for_status()
File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 941, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://10.90.11.91/webservices/homeautoswitch.lua?switchcmd=getdevicelistinfos&sid=8ae47b5680b040f3
2020-04-24 13:16:52 ERROR (MainThread) [homeassistant.components.switch] Error while setting up fritzbox platform for switch
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/usr/src/homeassistant/homeassistant/components/fritzbox/switch.py", line 32, in async_setup_entry
for device in await hass.async_add_executor_job(fritz.get_devices):
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 146, in get_devices
for element in self.get_device_elements():
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 130, in get_device_elements
plain = self._aha_request('getdevicelistinfos')
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 100, in _aha_request
plain = self._request(url, params)
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 50, in _request
rsp.raise_for_status()
File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 941, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://10.90.11.91/webservices/homeautoswitch.lua?switchcmd=getdevicelistinfos&sid=8ae47b5680b040f3
Ok, from the first look I would say this are two different errors but both caused by the repeater. I don't have one so I'am not able to test with it. I think they should not be detected because they do not have any "active" component like a switch, sensor or climate, right?
So we should maybe use a different SSDP string for discovery or filter the results later.
@TheZoker can you help?
@DavidFW1960 Could you set the log level for ssdp, fritzbox and pyfritzhome to debug and show all related lines?
logger:
default: info
logs:
homeassistant.components.ssdp: debug
homeassistant.components.fritzbox: debug
pyfritzhome: debug
I have a 6490 and a 7490 on the same network, both connected to HA and both are working fine without any issue. Also the DECT devices connected to the 6490 are registered correctly.
Since I don't have a repeater I can't reproduce this issue. Let's see if the PR fixes the issue
Hi,
just updated to beta again as there are some very interesting things included. I’m using a 7590 as master router and two more boxes as access points in mesh mode. I‘m also getting the initial error listed above for integrated main router. Climate (DECT) doesn't seem to work yet.
@escoand Would it still be helpful to have your requested log files or just waiting for your pull request?
The PR is just the first step. Would be nice if you, @Florian-Schmidt and @DavidFW1960, could try the fix.
I'm still thinking the repeater device are discovered but do not have the same interface. And this is causing all the problems. I'm hoping we can work around this by using a different SSDP type which excludes this devices. So yes, the logs are still useful.
Additionally, setting it up on another HA instance, it seems to be wanting climate entities and a switch? I'm wondering if this should have been even detected? This is a straight router and repeater. I also added another wifi repeater yesterday that is not being detected but the second instance detects all 3 (as well as the climate errors)?
The problem here is that the used FRITZ!Box interface shows all known "smart devices". And this is happening on every FRITZ!Box in the same mesh and I don't know how to distinguish where they are actually existing. So you could control all "smart devices" from every meshed box. But that's not the problem as they are only be added once, for the "first" of the box.
Here we go (fully log after restart):
2020-04-24 23:38:55 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for meross_cloud which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-04-24 23:38:55 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-04-24 23:38:55 INFO (MainThread) [homeassistant.setup] Setup of domain logger took 0.0 seconds.
2020-04-24 23:38:55 INFO (MainThread) [homeassistant.setup] Setting up http
2020-04-24 23:38:55 INFO (MainThread) [homeassistant.setup] Setup of domain http took 0.0 seconds.
2020-04-24 23:38:55 INFO (MainThread) [homeassistant.setup] Setting up system_log
2020-04-24 23:38:55 INFO (MainThread) [homeassistant.setup] Setup of domain system_log took 0.0 seconds.
2020-04-24 23:38:56 INFO (MainThread) [homeassistant.setup] Setting up recorder
2020-04-24 23:38:56 INFO (MainThread) [homeassistant.setup] Setting up webhook
2020-04-24 23:38:56 INFO (MainThread) [homeassistant.setup] Setup of domain webhook took 0.0 seconds.
2020-04-24 23:38:56 INFO (MainThread) [homeassistant.setup] Setting up alexa
2020-04-24 23:38:56 INFO (MainThread) [homeassistant.setup] Setup of domain alexa took 0.0 seconds.
2020-04-24 23:38:56 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 0.5 seconds.
2020-04-24 23:38:56 INFO (SyncWorker_2) [homeassistant.loader] Loaded google_assistant from homeassistant.components.google_assistant
2020-04-24 23:38:56 INFO (SyncWorker_17) [homeassistant.loader] Loaded media_player from homeassistant.components.media_player
2020-04-24 23:38:59 INFO (MainThread) [homeassistant.setup] Setting up cloud
2020-04-24 23:38:59 INFO (MainThread) [homeassistant.setup] Setup of domain cloud took 0.1 seconds.
2020-04-24 23:38:59 INFO (MainThread) [homeassistant.setup] Setting up lovelace
2020-04-24 23:38:59 INFO (MainThread) [homeassistant.setup] Setting up input_boolean
2020-04-24 23:38:59 INFO (SyncWorker_13) [homeassistant.loader] Loaded template from homeassistant.components.template
2020-04-24 23:38:59 INFO (MainThread) [homeassistant.setup] Setting up speedtestdotnet
2020-04-24 23:38:59 INFO (MainThread) [homeassistant.setup] Setup of domain speedtestdotnet took 0.0 seconds.
2020-04-24 23:38:59 INFO (MainThread) [homeassistant.setup] Setting up input_select
2020-04-24 23:38:59 INFO (MainThread) [homeassistant.setup] Setting up python_script
2020-04-24 23:38:59 INFO (MainThread) [homeassistant.setup] Setting up group
2020-04-24 23:38:59 INFO (MainThread) [homeassistant.setup] Setup of domain group took 0.0 seconds.
2020-04-24 23:38:59 INFO (MainThread) [homeassistant.setup] Setting up input_number
2020-04-24 23:38:59 INFO (SyncWorker_11) [homeassistant.loader] Loaded workday from homeassistant.components.workday
2020-04-24 23:38:59 INFO (MainThread) [homeassistant.setup] Setting up sun
2020-04-24 23:38:59 INFO (MainThread) [homeassistant.setup] Setup of domain sun took 0.0 seconds.
2020-04-24 23:38:59 INFO (MainThread) [homeassistant.setup] Setting up script
2020-04-24 23:38:59 INFO (MainThread) [homeassistant.setup] Setting up coronavirus
2020-04-24 23:38:59 INFO (MainThread) [homeassistant.setup] Setting up tuya
2020-04-24 23:38:59 INFO (MainThread) [homeassistant.setup] Setting up met
2020-04-24 23:38:59 INFO (MainThread) [homeassistant.setup] Setup of domain met took 0.0 seconds.
2020-04-24 23:38:59 INFO (MainThread) [homeassistant.setup] Setting up scene
2020-04-24 23:38:59 INFO (MainThread) [homeassistant.setup] Setting up ssdp
2020-04-24 23:38:59 INFO (MainThread) [homeassistant.setup] Setup of domain ssdp took 0.0 seconds.
2020-04-24 23:38:59 INFO (MainThread) [homeassistant.setup] Setting up zone
2020-04-24 23:38:59 INFO (MainThread) [homeassistant.setup] Setting up updater
2020-04-24 23:38:59 INFO (MainThread) [homeassistant.setup] Setting up input_text
2020-04-24 23:38:59 INFO (MainThread) [homeassistant.setup] Setting up input_datetime
2020-04-24 23:38:59 INFO (MainThread) [homeassistant.components.scene] Setting up scene.homeassistant
2020-04-24 23:38:59 INFO (MainThread) [homeassistant.components.scene] Setting up scene.homeassistant
2020-04-24 23:38:59 INFO (MainThread) [homeassistant.components.scene] Setting up scene.homeassistant
2020-04-24 23:38:59 DEBUG (MainThread) [homeassistant.components.ssdp] Scanning
2020-04-24 23:39:00 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for abfall_myk which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setting up sensor
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setting up binary_sensor
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setting up person
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.template
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.abfall_myk
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.template
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setting up upnp
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setting up fritzbox
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setup of domain fritzbox took 0.0 seconds.
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.workday
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setup of domain script took 0.7 seconds.
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setting up deconz
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setup of domain deconz took 0.0 seconds.
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setting up websocket_api
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setup of domain websocket_api took 0.0 seconds.
2020-04-24 23:39:00 INFO (SyncWorker_14) [homeassistant.loader] Loaded light from homeassistant.components.light
2020-04-24 23:39:00 INFO (SyncWorker_0) [homeassistant.loader] Loaded switch from homeassistant.components.switch
2020-04-24 23:39:00 INFO (SyncWorker_6) [homeassistant.loader] Loaded cover from homeassistant.components.cover
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setting up config
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setting up samsungtv
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setup of domain samsungtv took 0.0 seconds.
2020-04-24 23:39:00 INFO (SyncWorker_5) [homeassistant.loader] Loaded weather from homeassistant.components.weather
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setting up history
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setup of domain history took 0.0 seconds.
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setting up device_automation
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setup of domain device_automation took 0.0 seconds.
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setting up system_health
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setup of domain system_health took 0.0 seconds.
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setting up api
2020-04-24 23:39:00 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry FRITZ!Box 7590 (UI) for fritzbox
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 216, in async_setup
hass, self
File "/usr/src/homeassistant/homeassistant/components/fritzbox/__init__.py", line 75, in async_setup_entry
host=entry.data[CONF_HOST],
KeyError: 'host'
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setup of domain input_boolean took 1.2 seconds.
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setup of domain input_select took 1.2 seconds.
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setup of domain input_number took 1.0 seconds.
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setup of domain lovelace took 1.2 seconds.
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setup of domain input_text took 0.8 seconds.
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setup of domain input_datetime took 0.8 seconds.
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setup of domain upnp took 0.5 seconds.
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setup of domain python_script took 1.1 seconds.
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setting up auth
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setup of domain auth took 0.0 seconds.
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setting up weather
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setup of domain weather took 0.0 seconds.
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setup of domain api took 0.1 seconds.
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setting up ipp
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setup of domain ipp took 0.0 seconds.
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setup of domain config took 0.3 seconds.
2020-04-24 23:39:00 INFO (MainThread) [custom_components.meross_cloud.version] MerossCloudVersion: 0.3.4.4
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setting up meross_cloud
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setup of domain meross_cloud took 0.0 seconds.
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setting up search
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.setup] Setup of domain search took 0.0 seconds.
2020-04-24 23:39:00 INFO (MainThread) [homeassistant.components.weather] Setting up weather.met
2020-04-24 23:39:00 INFO (MainThread) [custom_components.meross_cloud] No token was found. Falling back to stored email/password to get a new one.
2020-04-24 23:39:01 WARNING (MainThread) [homeassistant.util.async_] Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for meross_cloud doing I/O at custom_components/meross_cloud/__init__.py, line 75: logout_on_stop=False)
2020-04-24 23:39:01 INFO (MainThread) [custom_components.meross_cloud] Starting meross manager
2020-04-24 23:39:01 INFO (MainThread) [meross.connection] Initializing the MQTT connection...
2020-04-24 23:39:01 INFO (MainThread) [meross.connection] Client connected to MQTT broker and subscribed to relevant topics.
2020-04-24 23:39:01 INFO (MainThread) [custom_components.meross_cloud] Starting meross cloud connection watchdog
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.setup] Setting up automation
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.setup] Setting up light
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.setup] Setting up switch
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.setup] Setup of domain switch took 0.0 seconds.
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.setup] Setting up cover
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.setup] Setup of domain cover took 0.0 seconds.
2020-04-24 23:39:01 INFO (SyncWorker_15) [homeassistant.loader] Loaded climate from homeassistant.components.climate
2020-04-24 23:39:01 INFO (SyncWorker_19) [homeassistant.loader] Loaded fan from homeassistant.components.fan
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.setup] Setting up zeroconf
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.setup] Setup of domain binary_sensor took 1.6 seconds.
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.components.scene] Setting up scene.homeassistant
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.setup] Setup of domain zone took 1.9 seconds.
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.setup] Setup of domain light took 0.1 seconds.
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.components.switch] Setting up switch.meross_cloud
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.components.cover] Setting up cover.meross_cloud
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.setup] Setting up climate
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.setup] Setup of domain climate took 0.0 seconds.
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.setup] Setting up fan
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.setup] Setup of domain fan took 0.0 seconds.
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.setup] Setup of domain sensor took 1.8 seconds.
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.setup] Setup of domain tuya took 2.0 seconds.
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.components.light] Setting up light.meross_cloud
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.components.climate] Setting up climate.meross_cloud
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.components.fan] Setting up fan.meross_cloud
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.meross_cloud
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.setup] Setup of domain scene took 2.0 seconds.
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.components.cover] Setting up cover.tuya
2020-04-24 23:39:01 INFO (SyncWorker_7) [homeassistant.loader] Loaded fritz from homeassistant.components.fritz
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.setup] Setup of domain zeroconf took 0.2 seconds.
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.deconz
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.components.climate] Setting up climate.deconz
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.components.cover] Setting up cover.deconz
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.components.light] Setting up light.deconz
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.components.scene] Setting up scene.deconz
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.deconz
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.components.switch] Setting up switch.deconz
2020-04-24 23:39:01 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.speedtestdotnet
2020-04-24 23:39:02 INFO (MainThread) [homeassistant.setup] Setting up device_tracker
2020-04-24 23:39:02 INFO (MainThread) [homeassistant.setup] Setup of domain coronavirus took 2.4 seconds.
2020-04-24 23:39:02 INFO (MainThread) [homeassistant.setup] Setup of domain automation took 0.6 seconds.
2020-04-24 23:39:02 INFO (MainThread) [homeassistant.components.sensor] Not adding entity Daylight because it's disabled
2020-04-24 23:39:02 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.coronavirus
2020-04-24 23:39:02 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.coronavirus
2020-04-24 23:39:02 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.coronavirus
2020-04-24 23:39:02 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.coronavirus
2020-04-24 23:39:02 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.coronavirus
2020-04-24 23:39:02 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.coronavirus
2020-04-24 23:39:02 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.coronavirus
2020-04-24 23:39:02 INFO (MainThread) [homeassistant.components.device_tracker] Setting up device_tracker.legacy
2020-04-24 23:39:02 INFO (MainThread) [homeassistant.setup] Setup of domain person took 2.7 seconds.
2020-04-24 23:39:02 INFO (MainThread) [homeassistant.components.updater] Submitted analytics to Home Assistant servers. Information submitted includes {}
2020-04-24 23:39:02 INFO (MainThread) [homeassistant.setup] Setup of domain updater took 3.0 seconds.
2020-04-24 23:39:03 DEBUG (MainThread) [homeassistant.components.ssdp] Discovered fritzbox at http://192.168.178.1:49000/fboxdesc.xml
2020-04-24 23:39:03 DEBUG (MainThread) [homeassistant.components.ssdp] Discovered upnp at http://192.168.178.1:49000/igd2desc.xml
2020-04-24 23:39:03 DEBUG (MainThread) [homeassistant.components.ssdp] Discovered upnp at http://192.168.178.1:49000/igddesc.xml
2020-04-24 23:39:03 DEBUG (MainThread) [homeassistant.components.ssdp] Discovered fritzbox at http://192.168.178.2:49000/fboxdesc.xml
2020-04-24 23:39:03 DEBUG (MainThread) [homeassistant.components.ssdp] Discovered upnp at http://192.168.178.2:49000/igd2desc.xml
2020-04-24 23:39:03 DEBUG (MainThread) [homeassistant.components.ssdp] Discovered upnp at http://192.168.178.2:49000/igddesc.xml
2020-04-24 23:39:03 DEBUG (MainThread) [homeassistant.components.ssdp] Discovered hue at http://192.168.178.40:80/description.xml
2020-04-24 23:39:03 DEBUG (MainThread) [homeassistant.components.ssdp] Discovered deconz at http://192.168.178.40:80/description.xml
2020-04-24 23:39:03 DEBUG (MainThread) [homeassistant.components.ssdp] Discovered hue at http://192.168.178.40:80/description.xml
2020-04-24 23:39:03 DEBUG (MainThread) [homeassistant.components.ssdp] Discovered deconz at http://192.168.178.40:80/description.xml
2020-04-24 23:39:03 DEBUG (MainThread) [homeassistant.components.ssdp] Discovered hue at http://192.168.178.40:80/description.xml
2020-04-24 23:39:03 DEBUG (MainThread) [homeassistant.components.ssdp] Discovered deconz at http://192.168.178.40:80/description.xml
2020-04-24 23:39:03 DEBUG (MainThread) [homeassistant.components.ssdp] Discovered fritzbox at http://192.168.178.4:49000/fboxdesc.xml
2020-04-24 23:39:03 DEBUG (MainThread) [homeassistant.components.ssdp] Discovered upnp at http://192.168.178.4:49000/igd2desc.xml
2020-04-24 23:39:03 DEBUG (MainThread) [homeassistant.components.ssdp] Discovered upnp at http://192.168.178.4:49000/igddesc.xml
2020-04-24 23:39:03 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.updater
2020-04-24 23:39:03 INFO (MainThread) [homeassistant.setup] Setting up onboarding
2020-04-24 23:39:03 INFO (SyncWorker_17) [homeassistant.loader] Loaded hue from homeassistant.components.hue
2020-04-24 23:39:03 INFO (MainThread) [homeassistant.setup] Setting up mobile_app
2020-04-24 23:39:03 INFO (SyncWorker_1) [homeassistant.components.fritz.device_tracker] Successfully connected to FRITZ!Box 7590 (UI)
2020-04-24 23:39:03 INFO (MainThread) [homeassistant.setup] Setup of domain onboarding took 0.1 seconds.
2020-04-24 23:39:03 INFO (MainThread) [homeassistant.setup] Setting up frontend
2020-04-24 23:39:03 INFO (MainThread) [homeassistant.setup] Setup of domain frontend took 0.0 seconds.
2020-04-24 23:39:03 INFO (MainThread) [homeassistant.setup] Setup of domain mobile_app took 0.1 seconds.
2020-04-24 23:39:03 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 124, in async_init
flow, flow.init_step, data, init_done
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 196, in _async_handle_step
result: Dict = await getattr(flow, method)(user_input)
File "/usr/src/homeassistant/homeassistant/components/fritzbox/config_flow.py", line 120, in async_step_ssdp
if entry.data[CONF_HOST] == host:
KeyError: 'host'
2020-04-24 23:39:03 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 124, in async_init
flow, flow.init_step, data, init_done
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 196, in _async_handle_step
result: Dict = await getattr(flow, method)(user_input)
File "/usr/src/homeassistant/homeassistant/components/fritzbox/config_flow.py", line 120, in async_step_ssdp
if entry.data[CONF_HOST] == host:
KeyError: 'host'
2020-04-24 23:39:03 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 124, in async_init
flow, flow.init_step, data, init_done
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 196, in _async_handle_step
result: Dict = await getattr(flow, method)(user_input)
File "/usr/src/homeassistant/homeassistant/components/fritzbox/config_flow.py", line 120, in async_step_ssdp
if entry.data[CONF_HOST] == host:
KeyError: 'host'
I'm going to enable logging as requested and will reboot shortly. How can I test the fix?
Logs:
2020-04-25 11:00:15 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry FRITZ!Box 7590 for fritzbox
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 216, in async_setup
hass, self
File "/usr/src/homeassistant/homeassistant/components/fritzbox/__init__.py", line 75, in async_setup_entry
host=entry.data[CONF_HOST],
KeyError: 'host'
2020-04-25 11:00:16 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry FRITZ!Repeater 3000 for fritzbox
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 216, in async_setup
hass, self
File "/usr/src/homeassistant/homeassistant/components/fritzbox/__init__.py", line 75, in async_setup_entry
host=entry.data[CONF_HOST],
KeyError: 'host'
2020-04-25 11:00:17 DEBUG (SyncWorker_6) [pyfritzhome.fritzhome] <xml.dom.minidom.Document object at 0x7fe57b3cf050>
2020-04-25 11:00:18 INFO (MainThread) [homeassistant.setup] Setting up onboarding
2020-04-25 11:00:18 INFO (SyncWorker_6) [homeassistant.loader] Loaded fritzbox_netmonitor from homeassistant.components.fritzbox_netmonitor
2020-04-25 11:00:18 INFO (MainThread) [homeassistant.setup] Setting up mobile_app
2020-04-25 11:00:18 INFO (MainThread) [homeassistant.helpers.storage] Migrating onboarding storage from 1 to 3
2020-04-25 11:00:18 DEBUG (MainThread) [homeassistant.components.ssdp] Discovered roku at http://10.90.11.14:8060/
2020-04-25 11:00:18 DEBUG (MainThread) [homeassistant.components.ssdp] Discovered wemo at http://10.90.11.16:49153/setup.xml
2020-04-25 11:00:18 DEBUG (MainThread) [homeassistant.components.ssdp] Discovered fritzbox at http://10.90.11.1:49000/fboxdesc.xml
2020-04-25 11:00:18 DEBUG (MainThread) [homeassistant.components.ssdp] Discovered upnp at http://10.90.11.1:49000/igd2desc.xml
2020-04-25 11:00:18 DEBUG (MainThread) [homeassistant.components.ssdp] Discovered upnp at http://10.90.11.1:49000/igddesc.xml
2020-04-25 11:00:18 DEBUG (MainThread) [homeassistant.components.ssdp] Discovered synology_dsm at http://10.90.11.40:5000/ssdp/desc-DSM-eth0.xml
2020-04-25 11:00:18 DEBUG (MainThread) [homeassistant.components.ssdp] Discovered fritzbox at http://10.90.11.90:49000/fboxdesc.xml
2020-04-25 11:00:18 DEBUG (MainThread) [homeassistant.components.ssdp] Discovered fritzbox at http://10.90.11.91:49000/fboxdesc.xml
2020-04-25 11:00:18 INFO (MainThread) [homeassistant.setup] Setup of domain onboarding took 0.3 seconds.
2020-04-25 11:00:18 DEBUG (SyncWorker_0) [pyfritzhome.fritzhome] <xml.dom.minidom.Document object at 0x7fe57b3d5130>
2020-04-25 11:00:18 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 124, in async_init
flow, flow.init_step, data, init_done
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 196, in _async_handle_step
result: Dict = await getattr(flow, method)(user_input)
File "/usr/src/homeassistant/homeassistant/components/fritzbox/config_flow.py", line 120, in async_step_ssdp
if entry.data[CONF_HOST] == host:
KeyError: 'host'
2020-04-25 11:00:18 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 124, in async_init
flow, flow.init_step, data, init_done
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 196, in _async_handle_step
result: Dict = await getattr(flow, method)(user_input)
File "/usr/src/homeassistant/homeassistant/components/fritzbox/config_flow.py", line 120, in async_step_ssdp
if entry.data[CONF_HOST] == host:
KeyError: 'host'
2020-04-25 11:00:18 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 124, in async_init
flow, flow.init_step, data, init_done
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 196, in _async_handle_step
result: Dict = await getattr(flow, method)(user_input)
File "/usr/src/homeassistant/homeassistant/components/fritzbox/config_flow.py", line 120, in async_step_ssdp
if entry.data[CONF_HOST] == host:
KeyError: 'host'
2020-04-25 11:00:18 INFO (MainThread) [homeassistant.components.updater] Submitted analytics to Home Assistant servers. Information submitted includes {'version': '0.109.0b2', 'dev': False, 'hassio': False, 'virtualenv': False, 'python_version': '3.7.7', 'docker': True, 'arch': 'x86_64', 'timezone': 'Australia/Sydney', 'os_name': 'Linux', 'os_version': '3.11.5', 'components': ['configurator', 'ssdp', 'homeassistant', 'cert_expiry', 'discovery', 'gdacs', 'wwlln', 'group', 'logger', 'persistent_notification', 'recorder', 'cloud', 'http', 'alexa', 'speedtestdotnet', 'shell_command', 'met', 'sun', 'webhook', 'gpodder', 'system_log'], 'distribution': 'alpine', 'huuid': 'd63d364f43774a478ac3cdcf08b2661f'}
2020-04-25 11:00:18 INFO (MainThread) [homeassistant.setup] Setting up default_config
2020-04-25 11:00:18 INFO (SyncWorker_6) [homeassistant.loader] Loaded version from homeassistant.components.version
2020-04-25 11:00:18 INFO (MainThread) [homeassistant.setup] Setting up stream
2020-04-25 11:00:18 INFO (MainThread) [homeassistant.setup] Setup of domain stream took 0.0 seconds.
2020-04-25 11:00:18 INFO (MainThread) [homeassistant.setup] Setup of domain default_config took 0.2 seconds.
2020-04-25 11:00:19 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.fritzbox_netmonitor
2020-04-25 11:00:20 INFO (SyncWorker_2) [homeassistant.components.fritz.device_tracker] Successfully connected to FRITZ!Box 7590
2020-04-25 11:00:28 INFO (MainThread) [homeassistant.components.switch] Setting up switch.fritzbox
2020-04-25 11:00:29 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform fritzbox_netmonitor is taking over 10 seconds.
2020-04-25 11:00:30 INFO (SyncWorker_0) [homeassistant.components.fritzbox_netmonitor.sensor] Successfully connected to FRITZ!Box
2020-04-25 11:00:35 DEBUG (SyncWorker_3) [pyfritzhome.fritzhome] <xml.dom.minidom.Document object at 0x7fe573841f30>
2020-04-25 11:01:36 INFO (MainThread) [homeassistant.components.discovery] Found new service: dlna_dmr {'host': '10.90.11.12', 'port': 1887, 'ssdp_description': 'http://10.90.11.12:1887/', 'name': 'osmc', 'model_name': 'Kodi', 'model_number': '18.6', 'serial': None, 'manufacturer': 'XBMC Foundation', 'udn': 'uuid:bb762f71-7a40-eb83-4b32-1b31b86cdb79', 'upnp_device_type': 'urn:schemas-upnp-org:device:MediaRenderer:1'}
2020-04-25 11:01:36 INFO (MainThread) [homeassistant.components.discovery] Found new service: dlna_dmr {'host': '10.90.11.13', 'port': 10184, 'ssdp_description': 'http://10.90.11.13:10184/', 'name': 'WDTVLive', 'model_name': 'WD TV Live', 'model_number': 'WDBGXT0000NBK', 'serial': 'WNC421722325', 'manufacturer': 'Western Digital Corporation', 'udn': 'uuid:ca6f71ec-0090-a9c3-1d6d-3d68517d0807', 'upnp_device_type': 'urn:schemas-upnp-org:device:MediaRenderer:1'}
2020-04-25 11:01:36 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: fritzbox {'host': '10.90.11.1', 'port': 49000, 'ssdp_description': 'http://10.90.11.1:49000/fboxdesc.xml', 'name': 'FRITZ!Box 7590', 'model_name': 'FRITZ!Box 7590', 'model_number': 'avme', 'serial': None, 'manufacturer': 'AVM Berlin', 'udn': 'uuid:123402409-bccb-40e7-8e6c-E0286D762BAB', 'upnp_device_type': 'urn:schemas-upnp-org:device:fritzbox:1'}
2020-04-25 11:01:36 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: fritzbox {'host': '10.90.11.90', 'port': 49000, 'ssdp_description': 'http://10.90.11.90:49000/fboxdesc.xml', 'name': '7490FritzRepeater', 'model_name': 'FRITZ!Box 7490', 'model_number': 'avme', 'serial': None, 'manufacturer': 'AVM Berlin', 'udn': 'uuid:123402409-bccb-40e7-8e6c-0896D773C800', 'upnp_device_type': 'urn:schemas-upnp-org:device:fritzbox:1'}
2020-04-25 11:01:36 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: fritzbox {'host': '10.90.11.91', 'port': 49000, 'ssdp_description': 'http://10.90.11.91:49000/fboxdesc.xml', 'name': 'FRITZ!Repeater 3000', 'model_name': 'FRITZ!Repeater 3000', 'model_number': 'avme', 'serial': None, 'manufacturer': 'AVM Berlin', 'udn': 'uuid:123402409-bccb-40e7-8e6c-DC396F0BFE1B', 'upnp_device_type': 'urn:schemas-upnp-org:device:fritzbox:1'}
2020-04-25 11:01:36 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: dlna_dms {'host': '10.90.11.12', 'port': 1389, 'ssdp_description': 'http://10.90.11.12:1389/DeviceDescription.xml', 'name': 'osmc', 'model_name': 'Kodi', 'model_number': '18.6', 'serial': None, 'manufacturer': 'XBMC Foundation', 'udn': 'uuid:ca4daa08-1396-a181-6c3c-c959335ead86', 'upnp_device_type': 'urn:schemas-upnp-org:device:MediaServer:1'}
2020-04-25 11:01:36 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: dlna_dms {'host': '10.90.11.1', 'port': 49000, 'ssdp_description': 'http://10.90.11.1:49000/MediaServerDevDesc.xml', 'name': 'AVM FRITZ!Mediaserver', 'model_name': 'FRITZ!Box 7590', 'model_number': 'avme', 'serial': None, 'manufacturer': 'AVM Berlin', 'udn': 'uuid:fa095ecc-e13e-40e7-8e6c-e0286d762bab', 'upnp_device_type': 'urn:schemas-upnp-org:device:MediaServer:1'}
2020-04-25 11:01:36 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: dlna_dms {'host': '10.90.11.20', 'port': 8200, 'ssdp_description': 'http://10.90.11.20:8200/rootDesc.xml', 'name': 'Stora:UPNP-AV', 'model_name': 'Windows Media Connect compatible (ReadyDLNA)', 'model_number': '1', 'serial': '12345678', 'manufacturer': 'NETGEAR', 'udn': 'uuid:4d696e69-444c-164e-9d41-0026f21d2e10', 'upnp_device_type': 'urn:schemas-upnp-org:device:MediaServer:1'}
2020-04-25 11:01:36 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: dlna_dms {'host': '10.90.11.40', 'port': 50001, 'ssdp_description': 'http://10.90.11.40:50001/desc/device.xml', 'name': 'Redding', 'model_name': 'DS413', 'model_number': None, 'serial': 'D4KRN01862', 'manufacturer': 'Synology Inc', 'udn': 'uuid:0011321f-6830-0011-3068-30681f321100', 'upnp_device_type': 'urn:schemas-upnp-org:device:MediaServer:1'}
2020-04-25 11:01:36 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: dlna_dms {'host': '10.90.11.43', 'port': 49152, 'ssdp_description': 'http://10.90.11.43:49152/MediaServer.xml', 'name': 'STB 10.90.11.43', 'model_name': 'Fetch DLNA1.5 DMS', 'model_number': '1', 'serial': '001', 'manufacturer': 'Fetch Technologies Co., Ltd', 'udn': 'uuid:898f9738-d930-4db4-a3cf-0c565c6da4e8', 'upnp_device_type': 'urn:schemas-upnp-org:device:MediaServer:1'}
2020-04-25 11:01:36 INFO (MainThread) [homeassistant.components.discovery] Unknown service discovered: dlna_dms {'host': '10.90.11.90', 'port': 49000, 'ssdp_description': 'http://10.90.11.90:49000/MediaServerDevDesc.xml', 'name': '7490FritzRepeater Media server', 'model_name': 'FRITZ!Box 7490', 'model_number': 'avme', 'serial': None, 'manufacturer': 'AVM Berlin', 'udn': 'uuid:fa095ecc-e13e-40e7-8e6c-0896d773c800', 'upnp_device_type': 'urn:schemas-upnp-org:device:MediaServer:1'}
2020-04-25 11:01:37 DEBUG (MainThread) [homeassistant.components.ssdp] Scanning
2020-04-25 11:02:38 DEBUG (MainThread) [homeassistant.components.ssdp] Scanning
@DavidFW1960 Thanks, there are 3 interesting lines
{'host': '10.90.11.1', 'port': 49000, 'ssdp_description': 'http://10.90.11.1:49000/fboxdesc.xml', 'name': 'FRITZ!Box 7590', 'model_name': 'FRITZ!Box 7590', 'model_number': 'avme', 'serial': None, 'manufacturer': 'AVM Berlin', 'udn': 'uuid:123402409-bccb-40e7-8e6c-E0286D762BAB', 'upnp_device_type': 'urn:schemas-upnp-org:device:fritzbox:1'}
{'host': '10.90.11.90', 'port': 49000, 'ssdp_description': 'http://10.90.11.90:49000/fboxdesc.xml', 'name': '7490FritzRepeater', 'model_name': 'FRITZ!Box 7490', 'model_number': 'avme', 'serial': None, 'manufacturer': 'AVM Berlin', 'udn': 'uuid:123402409-bccb-40e7-8e6c-0896D773C800', 'upnp_device_type': 'urn:schemas-upnp-org:device:fritzbox:1'}
{'host': '10.90.11.91', 'port': 49000, 'ssdp_description': 'http://10.90.11.91:49000/fboxdesc.xml', 'name': 'FRITZ!Repeater 3000', 'model_name': 'FRITZ!Repeater 3000', 'model_number': 'avme', 'serial': None, 'manufacturer': 'AVM Berlin', 'udn': 'uuid:123402409-bccb-40e7-8e6c-DC396F0BFE1B', 'upnp_device_type': 'urn:schemas-upnp-org:device:fritzbox:1'}
As you can see they have the same upnp_device_type
but the last one isn't able to handle our calls. We could maybe filter by model_name
. But I've to investigate this further.
Could you please try this command for all the 3 boxes?
pip3 install pyfritzhome
fritzhome -f 10.90.11.1 -u admin -p PASSWORD list
fritzhome -f 10.90.11.90 -u admin -p PASSWORD list
fritzhome -f 10.90.11.91 -u admin -p PASSWORD list
Are we talking about the same issue or are this two different issues?
In my case the connection to master box obviously works and gets the climate components successfully. Anyway there error message
KeyError: 'host'
@DavidFW1960 Thanks, there are 3 interesting lines
{'host': '10.90.11.1', 'port': 49000, 'ssdp_description': 'http://10.90.11.1:49000/fboxdesc.xml', 'name': 'FRITZ!Box 7590', 'model_name': 'FRITZ!Box 7590', 'model_number': 'avme', 'serial': None, 'manufacturer': 'AVM Berlin', 'udn': 'uuid:123402409-bccb-40e7-8e6c-E0286D762BAB', 'upnp_device_type': 'urn:schemas-upnp-org:device:fritzbox:1'} {'host': '10.90.11.90', 'port': 49000, 'ssdp_description': 'http://10.90.11.90:49000/fboxdesc.xml', 'name': '7490FritzRepeater', 'model_name': 'FRITZ!Box 7490', 'model_number': 'avme', 'serial': None, 'manufacturer': 'AVM Berlin', 'udn': 'uuid:123402409-bccb-40e7-8e6c-0896D773C800', 'upnp_device_type': 'urn:schemas-upnp-org:device:fritzbox:1'} {'host': '10.90.11.91', 'port': 49000, 'ssdp_description': 'http://10.90.11.91:49000/fboxdesc.xml', 'name': 'FRITZ!Repeater 3000', 'model_name': 'FRITZ!Repeater 3000', 'model_number': 'avme', 'serial': None, 'manufacturer': 'AVM Berlin', 'udn': 'uuid:123402409-bccb-40e7-8e6c-DC396F0BFE1B', 'upnp_device_type': 'urn:schemas-upnp-org:device:fritzbox:1'}
As you can see they have the same
upnp_device_type
but the last one isn't able to handle our calls. We could maybe filter bymodel_name
. But I've to investigate this further.Could you please try this command for all the 3 boxes?
pip3 install pyfritzhome fritzhome -f 10.90.11.1 -u admin -p PASSWORD list fritzhome -f 10.90.11.90 -u admin -p PASSWORD list fritzhome -f 10.90.11.91 -u admin -p PASSWORD list
I'm using hass.io (HA Supervised) so you want this in the container? .1 is the mesh master 7590; .90 is the 7490 Mesh Repeater and .91 is the 3000 repeater.
Same, here, it sees a repeater 1750 as a router (with support for climate, switch sensor) which it hasn't I'm on 0.109.0b2
I'm using hass.io (HA Supervised) so you want this in the container? .1 is the mesh master 7590; .90 is the 7490 Mesh Repeater and .91 is the 3000 repeater.
@DavidFW1960 That doesn't matter. I need to know how pyfritzhome behaves when connecting to the FRITZ!Repeater.
Do explain it again: I've a FRITZ!Box 749 and a FRITZ!Powerline 546E meshed. Both have a web interface and can control the relay within the latter. So pyfritzhome
shows the relay on both FRITZ devices. I expect the FRITZ!Repeater devices don't have a web interface and therefore are unable to control the relay, so we have to filter them out. Right?
First I thought we could discover the web interfaces by a different ssdp type, which doesn't seem to work. My second idea was to filter by the model name, which is also unreliable. So my current idea is to connect to all and look what's happening.
We need to do so in an early stage without user interaction. We just wanna know if the webinterface is available.
Huh, you know its a repeater because it was discovered as one, and yes they have a web interface.
you know its a repeater because it was discovered as one
Not sure what you mean by this. It's discovered as FRITZ! device. I can't see any type. Something seems to be different with this. Not sure what, that's why I need the output of the fritzhome
call.
Do you need a "real" Fritz repeater output or an Fritzbox box used as repeater would be enough?
I‘m still not sure if my error message has got the same background as you are talking from repeaters.
I have a 7490 as mesh master, a wired 3490 as repeater and two 310 wireless repeaters. I have theese errors if i configure all of them: https://paste.ubuntu.com/p/7wxXzfR86T/ And none of them has devices or entities.
By the way, I don't even want to configure the fritzbox integration, but since it does not have a unique id, I can't ignore it. And if it's not configured I receive a notification of discovered device on every restart.
Do you need a "real" Fritz repeater output or an Fritzbox box used as repeater would be enough?
Please provide from all discovered devices, that are the ones we need to handle.
I‘m still not sure if my error message has got the same background as you are talking from repeaters.
Me too, but I can not verify if nobody provides the requested information.
Meanwhile I configured all boxes with same user and password for DECT smart home access.
My network situation:
Running your pyfritz/homefritz command:
Just let me know if I can provide any further logfiles or tests.
@Florian-Schmidt Thanks for the description. Your error KeyError: host
will be fixed with the referenced PR.
@DavidFW1960 Could you please provide the same information for all of your FRITZ! devices? I still think we have a problem with the FRITZ!Repeater device.
weird...
david@debian-pm:~/.local/bin$ fritzhome -f 10.90.11.1 -u admin -p MY-PASSWORD-HERE list
-bash: fritzhome: command not found
david@debian-pm:~/.local/bin$ python3 fritzhome -f 10.90.11.1 -u admin -p MY-PASSWORD-HERE list
david@debian-pm:~/.local/bin$ ls
docker-stats fritzhome
david@debian-pm:~/.local/bin$ which python3
/usr/bin/python3
david@debian-pm:~/.local/bin$
Also detects the 3 of them everytime I start HA now and gives errors still as well. 0.109.0b3
2020-04-26 12:08:36 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry FRITZ!Repeater 3000 for fritzbox
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 216, in async_setup
hass, self
File "/usr/src/homeassistant/homeassistant/components/fritzbox/__init__.py", line 75, in async_setup_entry
host=entry.data[CONF_HOST],
KeyError: 'host'
2020-04-26 12:08:36 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry 7490FritzRepeater for fritzbox
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 216, in async_setup
hass, self
File "/usr/src/homeassistant/homeassistant/components/fritzbox/__init__.py", line 75, in async_setup_entry
host=entry.data[CONF_HOST],
KeyError: 'host'
2020-04-26 12:08:36 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry FRITZ!Box 7590 for fritzbox
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 216, in async_setup
hass, self
File "/usr/src/homeassistant/homeassistant/components/fritzbox/__init__.py", line 75, in async_setup_entry
host=entry.data[CONF_HOST],
KeyError: 'host'
I don't have any climate devices or switches etc... there is a router and 2 mesh repeaters
You can see the 3 configured and 3 more discovered on restart. Also re-enabled logging and it shows the same as the above.
2020-04-26 12:52:36 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry FRITZ!Repeater 3000 for fritzbox
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 216, in async_setup
hass, self
File "/usr/src/homeassistant/homeassistant/components/fritzbox/__init__.py", line 75, in async_setup_entry
host=entry.data[CONF_HOST],
KeyError: 'host'
2020-04-26 12:52:36 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry 7490FritzRepeater for fritzbox
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 216, in async_setup
hass, self
File "/usr/src/homeassistant/homeassistant/components/fritzbox/__init__.py", line 75, in async_setup_entry
host=entry.data[CONF_HOST],
KeyError: 'host'
2020-04-26 12:52:36 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry FRITZ!Box 7590 for fritzbox
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 216, in async_setup
hass, self
File "/usr/src/homeassistant/homeassistant/components/fritzbox/__init__.py", line 75, in async_setup_entry
host=entry.data[CONF_HOST],
KeyError: 'host'
@DavidFW1960 Plesse re-test with beta 3. This KeyError should be fixed.
And please remove all the entries before.
Ahhh, I found the reason. It's happening when an already configured device gets discovered via SSDP. Then all stored config data will be overridden, this is not as intended. Will fix this.
Yeah that was with b3 as I stated..
@DavidFW1960 Now the initial error should be fixed, hopefully.
I'll let you know when b4 hits.. Thanks @escoand
@DavidFW1960 But you have to re-add all the boxes.
Are you saying deleting and reading in b3 should work? If you are it doesn't and the above logs were after loading b3, deleting the integration and restarting again...
I thought, in b4 it's fixed now, hopefully.
Ah.. ok well I don't see b4 yet so I'll load that in the morning and hopefully all is well..
I have only 1 Fritxbox 7590 and I'm experiencing same issue on 0.109.b3:
2020-04-27 09:26:40 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry FRITZ!Box 7590 for fritzbox
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 216, in async_setup
hass, self
File "/usr/src/homeassistant/homeassistant/components/fritzbox/__init__.py", line 75, in async_setup_entry
host=entry.data[CONF_HOST],
KeyError: 'host'
Will test b4 as soon as possible.
Simone
Still same issue with b4:
2020-04-27 17:55:00 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry FRITZ!Box 7590 for fritzbox
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 216, in async_setup
hass, self
File "/usr/src/homeassistant/homeassistant/components/fritzbox/__init__.py", line 75, in async_setup_entry
host=entry.data[CONF_HOST],
KeyError: 'host'
Simone
@chemelli74 please remove and re-add the device.
@chemelli74 please remove and re-add the device.
Done, now different error logged:
2020-04-27 23:05:57 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 124, in async_init
flow, flow.init_step, data, init_done
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 196, in _async_handle_step
result: Dict = await getattr(flow, method)(user_input)
File "/usr/src/homeassistant/homeassistant/components/fritzbox/config_flow.py", line 122, in async_step_ssdp
self._name = user_input[ATTR_UPNP_FRIENDLY_NAME]
KeyError: 'friendlyName'
Simone
Yes I am getting errors still as well.
2020-04-28 08:21:22 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up fritzbox platform for binary_sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/usr/src/homeassistant/homeassistant/components/fritzbox/binary_sensor.py", line 16, in async_setup_entry
for device in await hass.async_add_executor_job(fritz.get_devices):
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 146, in get_devices
for element in self.get_device_elements():
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 130, in get_device_elements
plain = self._aha_request('getdevicelistinfos')
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 100, in _aha_request
plain = self._request(url, params)
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 50, in _request
rsp.raise_for_status()
File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 941, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://10.90.11.91/webservices/homeautoswitch.lua?switchcmd=getdevicelistinfos&sid=ccc649fdbd409ef6
2020-04-28 08:21:22 ERROR (MainThread) [homeassistant.components.climate] Error while setting up fritzbox platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/usr/src/homeassistant/homeassistant/components/fritzbox/climate.py", line 56, in async_setup_entry
for device in await hass.async_add_executor_job(fritz.get_devices):
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 146, in get_devices
for element in self.get_device_elements():
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 130, in get_device_elements
plain = self._aha_request('getdevicelistinfos')
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 100, in _aha_request
plain = self._request(url, params)
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 50, in _request
rsp.raise_for_status()
File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 941, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://10.90.11.91/webservices/homeautoswitch.lua?switchcmd=getdevicelistinfos&sid=ccc649fdbd409ef6
2020-04-28 08:21:39 ERROR (MainThread) [homeassistant.components.switch] Error while setting up fritzbox platform for switch
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/usr/src/homeassistant/homeassistant/components/fritzbox/switch.py", line 32, in async_setup_entry
for device in await hass.async_add_executor_job(fritz.get_devices):
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 146, in get_devices
for element in self.get_device_elements():
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 130, in get_device_elements
plain = self._aha_request('getdevicelistinfos')
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 100, in _aha_request
plain = self._request(url, params)
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 50, in _request
rsp.raise_for_status()
File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 941, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://10.90.11.91/webservices/homeautoswitch.lua?switchcmd=getdevicelistinfos&sid=ccc649fdbd409ef6
2020-04-28 08:22:23 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up fritzbox platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/usr/src/homeassistant/homeassistant/components/fritzbox/sensor.py", line 22, in async_setup_entry
for device in await hass.async_add_executor_job(fritz.get_devices):
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 146, in get_devices
for element in self.get_device_elements():
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 130, in get_device_elements
plain = self._aha_request('getdevicelistinfos')
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 100, in _aha_request
plain = self._request(url, params)
File "/usr/local/lib/python3.7/site-packages/pyfritzhome/fritzhome.py", line 50, in _request
rsp.raise_for_status()
File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 941, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://10.90.11.91/webservices/homeautoswitch.lua?switchcmd=getdevicelistinfos&sid=ccc649fdbd409ef6
Should add I also deleted all devices, restarted, readded, restarted.
@DavidFW1960 And I still need the output of this commands: https://github.com/home-assistant/core/issues/34619#issuecomment-619326692
> david@debian-pm:~/.local/bin$ fritzhome -f 10.90.11.1 -u admin -p MY-PASSWORD-HERE list
> -bash: fritzhome: command not found
> david@debian-pm:~/.local/bin$ python3 fritzhome -f 10.90.11.1 -u admin -p MY-PASSWORD-HERE list
> david@debian-pm:~/.local/bin$ ls
> docker-stats fritzhome
> david@debian-pm:~/.local/bin$ which python3
> /usr/bin/python3
> david@debian-pm:~/.local/bin$
As posted above I get no output @escoand
@DavidFW1960 Have you installed the python module before? pip3 install pyfritzhome
@DavidFW1960 And please use fritzhome -v -f ...
@chemelli74 Are you able to test this small fix? https://github.com/home-assistant/core/pull/34802
@DavidFW1960 Have you installed the python module before?
pip3 install pyfritzhome
Yes I followed all your directions. I had to install pip3 first then I installed pyfritzhome
pip3 install pyfritzhome
fritzhome -f 10.90.11.1 -u admin -p PASSWORD list
fritzhome -f 10.90.11.90 -u admin -p PASSWORD list
fritzhome -f 10.90.11.91 -u admin -p PASSWORD list
Let me try again adding the -v nope
david@debian-pm:~$ ls /home/david/.local/bin
docker-stats fritzhome
david@debian-pm:~$ cd /home/david/.local/bin
david@debian-pm:~/.local/bin$ fritzhome -v -f 10.90.11.1 -u admin -p MY-PASSWORD
-bash: fritzhome: command not found
david@debian-pm:~/.local/bin$
@DavidFW1960 something seems to be strange on your system. I still think the root cause is your FRITZ!Repeater device which isn't able to handle the fritzhome request. Could you verify this by only configuring the other 2 devices?
Meanwhile I opened an issue upstream: https://github.com/hthiery/python-fritzhome/issues/23
The problem
I am getting an error in the log for the Fritz Integration in b1
Environment
Problem-relevant
configuration.yaml
Traceback/Error logs
Additional information
No devices