Thank you for the quick answer.
I use Python and php in conjunction with a
mysql database for my controlling.
My guess was that there is an small API for deCONZ that can write the status change to a mysql database.
I don’t want to install a whole system just to use this function.
I don’t understand the motivation here, do you want to use deconz mysql with your php page instead of hosting your own mysql instance? Is it only to showcase the state of the window sensor because you don’t need a database to report the sensor state.