Connecting xiaomi Mi LED Smart Bulb Essential to home assistant

i have never used home assistant before and recently got myself a server so i can run home assistant. i run truenas scale(22.12.3.3) on my server. the only smart device i currently own is an xiaomi Mi LED Smart Bulb Essential (white and color) and every guide i saw about how to connect my device to home assistant i dont know if it works on truenas scale and how i connect my device to home assistant