The easiest method to communicate with HA server

Hi! I am new to HA and I am really delighted but also a bit overwhelmed by its capabilities :wink:
I would like to communicate between HA server (on RPi) and local PC. Could you recommend me the easiest way to read and change values of variables on HA server using Python script running on PC connected to the same network?

What are you trying to achieve, exactly?

There is the HA Rest API (REST API | Home Assistant Developer Docs) but it’s typically not a starting point for someone new to HA…

Thank you a lot! This is exactly what I need. I should spend more time on research befere posting.

I am creating some desktop widgets that show data from sensors. I also want to change states/run scenes using keyboard shortcuts.