Isaksson / node-red-contrib-unifi

MIT License
52 stars 20 forks source link

gather blocking status of a device based on MAC address #93

Closed pluto202 closed 1 year ago

pluto202 commented 1 year ago

Maybe there is already a solution. I would like to gather the status of a device if it is blocked or not. I use the special command blockClient or unblockClient with the device MAC address and see then in the debug the status of the device. As it may happen that the devices is blocked via the UnifiGui, I do not get an update into may flow so I would like to regularly check the status or monitor a change of the blocked: true/false attribute of a device based on a MAC address.

Regards Andreas

Isaksson commented 1 year ago

Hello. If you use the command, AllBlockedUsers will you see the blocked devices there?

pluto202 commented 1 year ago

Hi, when I use AllBlockedUsers I get an array with all connected clients back and I can’t find the attribute “blocked” in one of them.

Regards Andreas

Von: Kristoffer Isaksson @.> Datum: Sonntag, 25. Dezember 2022 um 18:34 An: Isaksson/node-red-contrib-unifi @.> Cc: Andreas Schäfer @.>, Author @.> Betreff: Re: [Isaksson/node-red-contrib-unifi] gather blocking status of a device based on MAC address (Issue #93)

Hello. If you use the command, AllBlockedUsers will you see the blocked devices there?

— Reply to this email directly, view it on GitHubhttps://github.com/Isaksson/node-red-contrib-unifi/issues/93#issuecomment-1364714003, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQ4O4TT47FPV52ZZHYBVGBTWPCAR5ANCNFSM6AAAAAATETBMEM. You are receiving this because you authored the thread.Message ID: @.***>

Isaksson commented 1 year ago

A new version will go live on NPM that will fix your issue, then you will find the actual blocked clients with the command AllBlockedUsers

pluto202 commented 1 year ago

Thanks a lot

Von: Kristoffer Isaksson @.> Datum: Freitag, 30. Dezember 2022 um 22:26 An: Isaksson/node-red-contrib-unifi @.> Cc: Andreas Schäfer @.>, Author @.> Betreff: Re: [Isaksson/node-red-contrib-unifi] gather blocking status of a device based on MAC address (Issue #93)

A new version will go live on NPM that will fix your issue, then you will find the actual blocked clients with the command AllBlockedUsers

— Reply to this email directly, view it on GitHubhttps://github.com/Isaksson/node-red-contrib-unifi/issues/93#issuecomment-1368095255, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQ4O4TXI2MDWNZRKO3CFTKLWP5HRNANCNFSM6AAAAAATETBMEM. You are receiving this because you authored the thread.Message ID: @.***>

pluto202 commented 1 year ago

Works as expected. Thanks for fixing

Isaksson commented 1 year ago

Works as expected. Thanks for fixing

Thanks for verifying