-
-
Notifications
You must be signed in to change notification settings - Fork 36.6k
Allow wifi switches for mesh repeaters in AVM Fritz!Box Tools #135456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow wifi switches for mesh repeaters in AVM Fritz!Box Tools #135456
Conversation
|
Hey there @AaronDavidSchneider, @chemelli74, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
Scenario "wifi only"
as expected ... disabling the wifi on the mesh-repeater breaks the mesh, those the repeater becomes unavailable. Further the user is not able to re-enable it via HA ... if then the "button lock" security feature is also activated on the fritzbox, the user can't easy re-enable the wifi on the mesh-repeater anymore. Scenario "mesh with lan-backend"
in this scenario, disabling the wifi on the mesh-repeater does not cause the the repeater to become unavailable, so the wifi can still be re-enabled via HA. Maybe this was also the reason in the past to consider to have no wifi switches for mesh-repeaters |
|
Even I've concerns about this, the docs get an explicit warning about WiFi switches in wifi-only mesh setups, further they are disabled by default, so I think we have done everything possible to avoid the user breaks its mesh. |
I think hat is such a scenario, we should not even offer the switch. Just specify in the docs why the entity is not created. |
|
I also tested this and it works as expected: the Wi-Fi entities are disabled by default for slaves in the Mesh and also for access points not part of the Mesh. Once enabled, everything works as expected. Mesh master switch will trickle down to the Mesh slaves but the slaves can also be turned on/off independently. Mesh master does not trickle down to non-meshed access points. Perfect 🥇 Note: my tests were done with a wired connection between master and slaves/repeaters. |
Not offering the switches is taking away functionality offered by AVM and some of us would very much like to use these these. If you are concerned about accidental enabling of the swicthes by someone who does not understand what they are doing, you could add a checkbox to the integration settings, disabled by default and wording like this: "[ ] Enable Wi-Fi on/off switches for slaves. NEVER ENABLE this if your fritzboxes are connected to each other via Wi-Fi. ONLY enable this if you absolutely need it AND ALL your fritzboxes are connected to each other via Ethernet WIRES. RISK of breaking your Mesh and requiring an Ethernet cable to reenable WiFi." Please do not take away advanced features because some really dumb user, some day, after having ignored the warnings and after having enabled disabled features might need to connect to his repeater fritzbox with admin password to reenable wifi. Note: the repeater will NOT be the fritzbox that controls his internet access. It's almost harmless if it happens... once in a blue moon. Meanwhile advanced users will enjoy the advanced features every day. |
|
Actually, when you think about it, there are even move conditions that have to be met before a user could ever run into an issue:
And once that happens, the solution is even simpler than I thought! No reset needed! The user who went through all the trouble above will simply need to:
I don't think it is the right way to punish advanced users (by removing advanced features) in the name of making sure that any dumb users who has is really looking for trouble by doing all the steps 1 to 5 and who has not read the doc would never ever need to do step 6... |
@chemelli74 Even I've some concerns left, I still think it is a reasonable use case to be able to disable the wifi on repeaters. To ensure that a user will not "shutdown its wifi-only mesh" with this, disabling these switches by default and adding a warning in the docs is the most we can do for now. Everything else (like a checkbox in the options or similar) would over-complicate things. Further tbh the scenario, that a user locks out from its wifi-only mesh is very unlikely, since it could only happen, when the user disables the physical switches on the Fritzbox, but this is done on purpose, so they most likely don't want to disable the wifi even not via HA. |
|
Maybe I found a way how to determine if the mesh uplink is LAN or WiFi based. I'll investigate further in this and adjust this PR as needed |
2fc8e45 to
e9b6dc4
Compare
|
Tests done - it works on my environment as expected now
Mesh with wifi backend
Mesh with lan backend
|
chemelli74
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM !
Proposed change
This will allow the use of wifi switches even on mesh repeaters. They are disabled by default, because they are an advanced use case.
Type of change
Additional information
Checklist
ruff format homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all.To help with the load of incoming pull requests: