Setup a black list on mikrotik using banned ips of Home Assistant

hi, good evening, its been a while since i ask something in the forum, i have a mikrotik that i just finished its configuration in the best way i can do it, i can access via internet my home assistant thanks to the ddns address that mikrotik give me and i have some firewall rules that create a black list and block the ip that try to access my router or connect to my vpns etc but i cant find a way to put in black list the banned ip from the home asssitant… so im looking for some help has any one try this before? its there any way to do it using the mikrotik integration ? maybe some one can share any automatization script that works with mikrotik or example please?