Connecting a Wiz light (WiFi) with Arduino

Hi everyone,
I am new here (also refreshing my programing skills) , working on my first ambitious Arduino project. For the next phase of my project I would like to connect my Arduino (Giga WiFi R1) to a Wiz lamp via WiFi in order to continuously adjust the setting (RGBw, brightness, State etc.) not following a fix schedule. WizPro has some code (JS and cURL) available here*, but I am lacking experience in migration to Arduino and I am also lost in choosing the relevant libraries etc.
Anyone here who can help?

https://docs.pro.wizconnected.com/?javascript#introduction-2

Thanks in advance!

I think you have to proceed with the WiFi.h and HTTPClient.h libraries.

Hi, thanks for your reply.

My Giga is connected to the internet, my sketch is using WiFi.h, WiFiUdp (for retrieving local time and date) and yes, I will also need http protocol, and most likely also json (not sure about this).

I would appreciate any advice (example) to connect to a WiFi-connected light. Ideally to Wiz, as they are already installed in my appartement. And I don't want (again) to re-invent the wheel - although this might help to build-up skills :wink:

I am also looking at controlling smart bulbs with Arduino, but I'm keen to do everything locally on the LAN, rather than using cloud services. The site you linked to (WiZ Pro API Reference) mentions an API endpoint of https://api.pro.wizconnected.com/api/graphql, so it looks like this particular method of connecting to Wiz bulbs requires engaging with a cloud service rather than just talking to the Wiz bulb locally over Wifi.

There is a Home Assistant integration for Wiz, which appears to communicate directly with the bulbs - it mentions an "Allow local communication" setting that needs to be enabled at any rate. So it looks like there's hope - more research required on this one!