Unifi integration stopped tracking wifi clients

Hey, I used to track if any guest is at home looking for connected devices to my guests SSID with this sensor code I found somewhere and it worked great:
{{ states.device_tracker | selectattr('state', 'eq', 'home') | selectattr('attributes.essid', 'eq', "myssid") | list | count }}

But it stopped working like a month ago (always showing 0 clients), I wish I have noticed the exact moment to be traced to anything, but I coudn’t manage it that time. Do you know what could happened?