Creating a Windows form in visual basic to excute basic functions in Home Assistant

I’ve been doing research on weather on not I can create a little program in visual studio to turn on or off lights, fans, brightness etc. I haven’t found anything about it and was wondering if this is even possible, just calling upon functions through intranet. pretty much I’m doing school so any help would be appreciated. and I’ve already got the home assistant end setup, just need to try and turn on and off lights through a program on my computer.

Have you seen this?

Thanks for the reply Tom, I’m more wondering if there is some form of addon or way to call functions from a program I can make.

You can use the Home Assistant API:

I’m guessing no one has used the APIin this way?

Many people have. That HASS.Agent project uses it.

Another option you have is to send mqtt messages from your program that are intercepted by Home Assistant automations with mqtt triggers.