Trying to understand LVGL HTTP Requests

Description

I have developed a UI using LVGL through Squareline Studio and have it running on an ESP32-S3 Display Development board. The UI runs fine on the device, looks great. My goal is to use buttons from within the UI to set entity states through home assistant via REST API and HTTP Requests.

What MCU/Processor/Board and compiler are you using?

ESP32-S3 using esp-idf or arduino

What LVGL version are you using?

8.3.6

What do you want to achieve?

I’m trying to learn how to use HTTP requests in order to get entity states and set entity states in home assistant, exactly as is show in this Youtube video Here, as seen around the 18:23s point.
I’m trying hard to understand what it will take to implement this solution to my project, but I’m unclear as to where to look for resources in learning.

What have you tried so far?

Still doing research at this point. The project example as seen in the video lacks any links to documentation on how to achieve what I want. To be clear, what I want is to be able to click a button in a lvgl UI and have it set an entity state in home assistant, and likewise to display that state: e.g.: Lightbulb icon, dull in off state, highlighted in on state, clicking the imagebutton sets entity state in home assistant. It isn’t home assistant per se that I need specific help with, but the event itself of sending http requests as an event of lvgl.

1 Like

Really, if someone could just point me in the right direction as far as documentation/resources for understanding calling functions, im sure I could figure out the rest.