Kane610 / aiounifi

Asynchronous library to communicate with Unifi Controller
MIT License
60 stars 53 forks source link

Unknown rules in Home Assistant #720

Closed Cippo2019 closed 1 week ago

Cippo2019 commented 2 weeks ago

HI

I am trying to understand that part

image

thats rules are not into my switches and aslo they are not into my firewall rules I created that rule some days ago and after i deleted it

I see now that in HA and seems existing but i dont have reference into unifi GUI

should be not that one right ? //Switch Block network access for clients Allow control of network access to clients configured in the integration options by adding MAC addresses. Items in this list will have a Home Assistant switch created, using the UniFi Device name, allowing for blocking and unblocking. //

thanks in advance

Kane610 commented 2 weeks ago

Have you checked traffic rules?

Block traffic config is when you want to have control over network access for a specific device. The new ones are more general so does not fit with that same config option

Cippo2019 commented 2 weeks ago

yes I checked and on the UNIFI GUI they are not there. that's why I ask. it seems that the integration module sees them active, as in the screen, but on the GUI they are not there. I certainly created them, but then I deleted them.

Cippo2019 commented 2 weeks ago

it is ok my answer or it is not enough clear ?

let me know wbr

Kane610 commented 2 weeks ago

I didn't implement this part myself so dont know. if you could provide debug data maybe some conclusion could be made about why you still see them

Cippo2019 commented 2 weeks ago

last night I updated to version Unifi 8.4.59 and after reloading the integration the entities were grayed out, so as if they were no longer there. I think therefore an error of the unifi software layer and not of the integration.

Kane610 commented 1 week ago

It is probably that there are not a proper clean up implemented for these entities

Cippo2019 commented 1 week ago

Hi what do you mean? I didn't do anything. I found them within the integration. my unifi implementation is new. I just tried creating some ACLs then deleting them.

Inviato da Outlook per Androidhttps://aka.ms/AAb9ysg


From: Robert Svensson @.> Sent: Wednesday, September 4, 2024 9:44:17 PM To: Kane610/aiounifi @.> Cc: Cippo2019 @.>; Author @.> Subject: Re: [Kane610/aiounifi] No Really an Issue :-) (Issue #720)

It is probably that there are not a proper clean up implemented for these entities

— Reply to this email directly, view it on GitHubhttps://github.com/Kane610/aiounifi/issues/720#issuecomment-2329840699, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AL53NRITOGDKTRT4C6Z6RZDZU5PJDAVCNFSM6AAAAABNCO333SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRZHA2DANRZHE. You are receiving this because you authored the thread.Message ID: @.***>

Kane610 commented 1 week ago

From what I understand with what you have written "I certainly created them, but then I deleted them." if they where read by home assistant and created the entities and then you removed the rules, HA does not yet clean those up, so you would see them listed but not loaded

Cippo2019 commented 1 week ago

Yes you are right

I have deleted that because after some days even deleted they were still present in HA (but in gray).

;-)

Inviato da Outlook per Androidhttps://aka.ms/AAb9ysg


From: Robert Svensson @.> Sent: Wednesday, September 4, 2024 10:29:55 PM To: Kane610/aiounifi @.> Cc: Cippo2019 @.>; Author @.> Subject: Re: [Kane610/aiounifi] No Really an Issue :-) (Issue #720)

From what I understand with what you have written "I certainly created them, but then I deleted them." if they where read by home assistant and created the entities and then you removed the rules, HA does not yet clean those up, so you would see them listed but not loaded

— Reply to this email directly, view it on GitHubhttps://github.com/Kane610/aiounifi/issues/720#issuecomment-2329912931, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AL53NRNHR6YOM6CRDPDDCKLZU5UUHAVCNFSM6AAAAABNCO333SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRZHEYTEOJTGE. You are receiving this because you authored the thread.Message ID: @.***>

Kane610 commented 1 week ago

Then case is closed