Detect new wifi connection

I’d like to check if there’s been a new wifi connection after someone entered my door to enable guest mode. How do I check if there’s been a new wifi connection in HA? I also use Node-Red if that’s easier.

Is the router/accesspoint that the clients will connect to integrated into home assistant?

yes, via the AVM fritz box integration: https://www.home-assistant.io/integrations/fritz/

If you use AppDaemon, in @eifinger’s repo is an app that does exactly that also with a Fritzbox Router.

Oh that’s almost it! But I’d want to monitor any new connections (known and unknown) and not just of unknown devices.

I created a new person called “guests” and assigned all known devices of my guests to it.
Then you can base an automation on the presence of the person “guests”.

Apart from that, I have an automation based on the event device_tracker_new_device that alerts me, when a new unknown device connects to my network.

I can then choose to add it to the guests.
This is done with a fritzbox.

I know it‘s been a while but this seems to be exactly what I am looking for.

Could you share the code of the automation, that messages you and lets you choose to add new devices to the guest user. I am not sure on how to do this.