core: Switch for 5GHz network doesn't get added (same SSID)

The problem

The 5GHz wifi switch doesn’t get added, only the 2.4GHz does. Both the 2.4GHz and the 5GHz networks have the same SSID.

What is version of Home Assistant Core has the issue?

2021.8.0

What was the last working version of Home Assistant Core?

2021.7.4

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

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

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.switch
Source: helpers/entity_platform.py:566
Integration: Switch (documentation, issues)
First occurred: 16:48:53 (1 occurrences)
Last logged: 16:48:53

Platform fritz does not generate unique IDs. ID DC396F2E0176-wi_fi_kaer_morhen already exists - ignoring switch.fritz_box_6591_cable_kdg_wi_fi_kaer_morhen_24ghz

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 20 (7 by maintainers)

Most upvoted comments

I can confirm that it works now, thanks for the quick fix.

For me it was working on 2021.7.4, after seeing that it didn’t work I downgraded and it worked again. Now I’m back on 2021.8.0 and not working.

I do not think that your statement is correct. You use slugify and if I read documentation “bla bla.bla” will be transformed in “bla-bla-bla”. So it doesn’t only strip unsupported characters at the end, it also replaces unsupported characters in between. So “Foo” and slugify(“Foo+”) will match. But “Foo Foo” and slugify(“Foo Foo”) will no longer match because of this change. This is my assumption, but I am not a programmer, so please verify yourself (by adding some unit tests?).

Working on it now that I’m back from office.

Simone