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
73.26k stars 30.6k forks source link

Missing Entitiys at FRITZ!Repeater 6000 #97196

Closed SeriousPat closed 11 months ago

SeriousPat commented 1 year ago

The problem

Hello, i use the Intergration with my fritzbox (everything is fine) and my fritzrepeater. On the fritz repeater there many entitys missing. actually i need the wlan on/off buttons für al the wlans.

image

image

What version of Home Assistant Core has the issue?

2023.7.3

What was the last working version of Home Assistant Core?

2023.7.3

What type of installation are you running?

Home Assistant OS

Integration causing the issue

AVM FRITZ!Box Tools

Link to integration documentation on our website

https://www.home-assistant.io/integrations/fritz

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 year ago

Hey there @mammuth, @aarondavidschneider, @chemelli74, @mib1185, 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!

Code owner commands Code owners of `fritz` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign fritz` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


fritz documentation fritz source (message by IssueLinks)

chemelli74 commented 1 year ago

Is your fritz infrastructure configured in mesh ?

Simone

SeriousPat commented 1 year ago

Yes, i had Mesh active. I delete the Mesh connection. Same problem.

image

SeriousPat commented 1 year ago

I deleted all my fritz devices in HA and added only the AP. Same Problem.

mib1185 commented 1 year ago

at the moment, we do not generate any switches for mesh slave devices (eq. repeaters). but when mesh is correct configured, than switchen wifi of on the mesh master (eq. FritzBox) will also turn off the wifi on the repeater (if applicable). so maybe your repeater is not correct configured as mesh slave device? to verify, please provide a screenshot of the mesh overview page from the Fritzbox.

Further please download and provide the diagnostics data for both devices (box and repeater)

Note: it is better to drag the log into the comment (which will add it as an attachment) and not copy paste as it is hard to read logs in GitHub.

SeriousPat commented 1 year ago

I know, to handle that with mesh. I had the Switch für the guest wlan, from the router before. with mesh to the repeater i used it to diable and enable. but i doesnt want to use the wlan from the router. i want use the wlan only from the repeater/accesspoint. so i delete the mesh and only added the repeater/accespoint to HA. same problem, only the same entitys.

i want enable/diable the guestwlan from the repeater/accespoint. i dont want to use wlan on my router is there a problem to get alle functionaly entitiys for the accesspoint?

or just imagine there is no router. i want set the wlans from the ap on and off. config_entry-fritz-c11884696147bb2ca2f577f0a537983b.json.txt

config_entry-fritz-d9c31771ca1567f32a27f0a9f019a765.json.txt

BerT666 commented 1 year ago

I have the same issue... In the Log I can find the following showing "again & again"...:

2023-07-31 07:26:18.043 INFO (SyncWorker_9) [fritzconnection] Unable to retrieve resource 'http://192.168.66.161:49000/igddesc.xml' from the device. 2023-07-31 07:26:23.702 ERROR (MainThread) [homeassistant.components.fritz.common] Unexpected error fetching fritz-192.168.66.161-coordinator data: 'X_AVM-DE_WANAccess' Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/fritz/common.py", line 307, in _async_update_data await self.async_scan_devices() File "/usr/src/homeassistant/homeassistant/components/fritz/common.py", line 479, in async_scan_devices wan_access="granted" in host["X_AVM-DE_WANAccess"],


KeyError: 'X_AVM-DE_WANAccess'
mib1185 commented 1 year ago

@BerT666 this is an different issue, please open a new report and already add debug logs To do so add the following to your configuration.yaml and restart HA:

logger:
  default: info
  logs:
    homeassistant.components.fritz: debug
    fritzconnection: debug

Further if possible please download and provide the diagnostics data for this integration.

Note: it is better to drag the log into the comment (which will add it as an attachment) and not copy paste as it is hard to read logs in GitHub.

mib1185 commented 1 year ago

@SeriousPat could you please provide the output of the following python script runs against the Fritz!Box and the FritzRepeater? replace <IP>, <USERNAME> and <PASSWORD> according to the device to run the script agains

from fritzconnection import FritzConnection
from fritzconnection.lib.fritzhosts import FritzHosts

fc = FritzConnection(address="<IP>", user="<USERNAME>", password="<PASSWORD>")
fh = FritzHosts(fc)

topology = fh.get_mesh_topology()

for node in topology.get("nodes", []):
    if node.get("device_manufacturer") == "AVM":
        print("=====================================================")
        for key in [
            "device_name",
            "device_model",
            "is_meshed",
            "mesh_role",
            "meshd_version",
            "device_firmware_version",
            "device_capabilities",
            "enabled_device_capabilities",
        ]:
            print(f"{key} : {node.get(key)}")

it will fetch the mesh topology and print out details about any found AVM devices in the network

example:

$ python test.py   
=====================================================
device_name : fritz.box
device_model : FRITZ!Box 7530 AX
is_meshed : True
mesh_role : master
meshd_version : 4.128
device_firmware_version : 256.07.56
device_capabilities : ['MAC_BRIDGE_COMPONENT', 'WLAN_ACCESS_POINT', 'ROUTER']
enabled_device_capabilities : ['MAC_BRIDGE_COMPONENT', 'WLAN_ACCESS_POINT', 'ROUTER']
SeriousPat commented 1 year ago

@mib1185

There is no Mesh setup image

Fritzbox: device_name : fritz.box device_model : FRITZ!Box 5530 Fiber is_meshed : True mesh_role : master meshd_version : 4.128 device_firmware_version : 257.07.56 device_capabilities : ['MAC_BRIDGE_COMPONENT', 'WLAN_ACCESS_POINT', 'ROUTER'] enabled_device_capabilities : ['MAC_BRIDGE_COMPONENT', 'WLAN_ACCESS_POINT', 'ROUTER']

device_name : WeitblickAP device_model : FRITZ!Repeater 6000 is_meshed : False mesh_role : unknown meshd_version : 4.128 device_firmware_version : 253.07.56 device_capabilities : ['MAC_BRIDGE_COMPONENT', 'WLAN_ACCESS_POINT'] enabled_device_capabilities : ['MAC_BRIDGE_COMPONENT', 'WLAN_ACCESS_POINT']

FritzRepeater6000: image

SeriousPat commented 1 year ago

@mib1185

I reconfigure Mesh: image

Fritzbox: device_name : fritz.box device_model : FRITZ!Box 5530 Fiber is_meshed : True mesh_role : master meshd_version : 4.128 device_firmware_version : 257.07.56 device_capabilities : ['MAC_BRIDGE_COMPONENT', 'WLAN_ACCESS_POINT', 'ROUTER'] enabled_device_capabilities : ['MAC_BRIDGE_COMPONENT', 'WLAN_ACCESS_POINT', 'ROUTER']

device_name : WeitblickAP device_model : FRITZ!Repeater 6000 is_meshed : True mesh_role : slave meshd_version : 4.128 device_firmware_version : 253.07.56 device_capabilities : ['MAC_BRIDGE_COMPONENT', 'WLAN_ACCESS_POINT'] enabled_device_capabilities : ['MAC_BRIDGE_COMPONENT', 'WLAN_ACCESS_POINT']

FritzRepeater6000: image

SeriousPat commented 1 year ago

@mib1185

I want to Explain my usecase again:

It doesn't matter if i have mesh enabled or disabled. I have disabled the wlan at the FritzBox. I have enabled the wlan at the FritzRepeater6000. I have disables "get settings from mesh master" at the FritzRepeater6000. I want to enable/disable the GuestWlan from the FritzRepeater6000 in HA.

I know fi i activate "gett settings from mesh master", that i can enable/disable the GuestWlan at the FritzBox in HA, that will enable/disable the GuestWlan from the FritzRepeater6000 over mesh.

But my FritzBox is in a network rack. I want use the wlan at the FritzRepeater6000 only.

Is ist possible to get the WLAN entitiys from the FritzRepeater6000 in HA?

image

mib1185 commented 1 year ago

@BerT666 your issue is related to #97637

mib1185 commented 1 year ago

@SeriousPat i've marked this as feature-request because this needs to be implemented as new feature. at the moment we only create some basic entities for Fritz!Repeaters. First, we need to implement a logic to reliably and stable detect a Fritz!Repeater as standalone (not meshed) Please contact me via discord mib1185, so we can work on it together.

issue-triage-workflows[bot] commented 1 year ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.