A way to know if the screen is turn on

Please, could you tell me if there is a way to know in Scriptable if the screen of the phone is turn on ?
Thanks in advance for your help

Hello, I finaly found my answer, it consists to use Device.screenBrightness()