There’s a driver that allows to send GET/POST requests to the local network: [ST Edge] Web Requestor: a driver to issue local POST and GET HTTP requests
You could create some routines to send requests to a server in the arduino depending on the state of the lights.