UniFi Network integration - official thread

Hey, folks.
Is it possible enable/disable network visibility with this integration? My internet setup is all UniFi (USG, switch, APs)
My projector is the only device I have that only able to connect to a visible wifi network. It’s on my IoT network. Don’t want to shaw my IoT network all the time, even though it’s restricted. I’d like to make my IoT network visible when projector is booting and then hide it when it’s off.
Thanks for advices…

According to a number of sources, hiding your wifi (not broadcasting your SSID) is not an effective security practice. It’s better to follow security best practices like:

1 Like

According to a number of sources, it’s bad practice to respond to a very specific technical question with “you should not do it at all”.
I also hide the IoT network and it’s not for security (although defending oneself from annoying kids who thinks they’re hackers it’s a bonus) but merely because I don’t like to see it in the list when I scan. Call it ocd, but it’s still legit.

Now, to get back to @alexbeatle 's question: I don’t see a way to achieve it via the integration. You can disable the network altogether but not change its parameters. There could be an API for that which you could research though.

1 Like

Thanks for sharing. I follow most of these.
Hiding network is mostly for preference.

Not going to say “you should not” but rest assured that any person who is tech savvy enough to hack into your wireless network is not going to care whether or not you SSID is being broadcast because there are tools out there, now, that will find them.

I have one network on WPA3 (need to for 6GHz radios), which has higher security. I just cannot see a majority of these IoT devices out in the wild ever being able to support WPA3, even if it is just 2.4GHz or 5GHz…most IoT devices do not come with anything except a 2.4GHz radio in them.

For anyone wanting a custom card for your wlan QR code Guest wifi card with QR code

Anyone here use the switch for wlan?
Curious to know if this is all wifi or can be done by ssid?
Also if it does work per ssid does it knock out all wifi or just that ssid?
Using another system now that does each ssid, but takes down all wifi for a few seconds and wondering if unifi did the same.

Thanks

I’ve noticed when I switch one of the ssid switches off it does knock out all the ssids briefly

1 Like

I’ve noticed the same thing.
The entity I use is only for one SSID, but it loooks like it’s resets the wifi radio so all go SSID’s go down for +/- 30 secons

I have described in bit more detail how I made this card, so that hopefully others can make this card as well. Not everyone is handy with this sort of thing.

Guest wifi card with QR code

87fec94f95070804088dd06378c1f4968bb40c82

Hey all!

Another month and another release so here comes the UniFi release notes for Home Assistant 2023.9.0.

Got some decent amount of new features with this release and some long awaited improvements. There is no longer any need to time switching PoE controls as the integration will queue them up and send new commands every 5 seconds. Added a restart device button, it is a soft restart so it will not break PoE if restarting a PoE switch. @Cisien came out from nowhere and developed some awaited extensions to PDU devices with both switching functionality for newer outlets as well as a lot of power sensor reporting. Also now its possible to control port forwarding.

Try these features out during the beta, feedback is appreciated.

Cheers!

/Robban


aiounifi library v53-v60 change log

For feature requests of the integration post an issue at aiounifi github

If you appreciate my work I’m on Github Sponsors.

5 Likes

I’m using the unifi integration to generate a QR code for the guest network. Trying to see if there is a way to “save” the qr image to a png (or other file) in www/local or something along those lines, or is it only generated run-time?

The end goal is to be able to generate the image out of HA (which works fine) but actually host it on a separate page on a LINX dashboard?

It’s generated at runtime so never written to file system. Not sure if there is any service you can use to copy it to file system.

so played around a bit with it and found a way to do this relatively easily, tested and looks good. The details to construct the link are actually in the entity state + attributes

this is the template i used to generate the link, where
image.guestnet_qr_code = qr entity from the unifi integration
entity_picture = link to the api with token embedded
state=timestamp that is used in the actual url

http://hassio.local:8123{{ state_attr('image.guestnet_qr_code', 'entity_picture') }}&state={{ states('image.guestnet_qr_code') }}

note - the token changes frequently, but using the template ensures im always pulling the current one being used by the integration

bit of a hack but it works :slight_smile:

New user here, thanks for the integration. I share the frustration with how 1 device can be utilized by multiple integrations.

I guess that this is a platform issue. In my case my Apple TVs show as using both Apple TV and Ubiquiti integrations. The major issue to me is that the icon HA has chosen is the Ubiquiti logo. There’s no way to prioritize which logo is chosen (that I can see). I don’t know if this is an issue that is being tracked at the platform level.

1 Like

There is work in progress which will improve this. The registry needs to know which is primary and which is secondary. The registry is not related to any platform so I don’t understand what you mean by that.

2 Likes

platform = Home Assistant. It’s a global Home Assistant issue. Not any particular integration issue.

2 Likes

Hey all!

Another month and another release so here comes the UniFi release notes for Home Assistant 2023.10.0.

I’ve continued to clean up the library with the current focus being splitting up websocket separating responsibilities between library and integration, this one definitely warrants some extra eyes on in beta.

Try these features out during the beta, feedback is appreciated.

Cheers!

/Robban


aiounifi library v62-v63 change log

For feature requests of the integration post an issue at aiounifi github

If you appreciate my work I’m on Github Sponsors.

5 Likes

Awesome work! I installed it and has been perfect since day 1!

I am wondering though… I know the PPSK (private PSK?) is in a pre release state as of today, that might change at any time, but…

I currently use the Unifi integration and place the QR code in a wall panel. I then use a script that changes the password of a certain SSID every 24 hours… Is there any way to achieve this with say, the third PPSK in the list of said SSID?

1 Like

I have no idea, do you have an example of the API output with the PPSK?

1 Like

I’m no programmer… :sweat_smile::sweat_smile::sweat_smile: