Communication: query status / execute command - best way?

Dear all,
I would like to use my argon to pilot some relays and read information from sensors. Ideally I would like to see raw data on the cloud interface as well to intervene manually to turn on/off the relays.
In addition the plan is to have a separate “brain” implementing a scheduler to automatize the switching and take decision on sensors values or external sources. This last part would be done with any python system.

How would you suggest to proceed?
Is there some sort of HTTPS API I can query from python system to read values?
Is there already a communication protocol to query/execute commands only using the local network and connecting directly to the argon?

Any light scheduler, garden irrigation, or similar projects can be source of inspiration as well

KR, dk