1

%LIGHT returns %LIGHT (the string)

Hello !

I wanted to create a task on an HP Touchpad running Android 4.4.4 (CM by jcsullins) to deactivate the daydream screensaver if the light is very low. The setting can be modified with secure settings plugin, that's great but I've got some issue trying to get the light sensor current value. When I try to display %LIGHT (in a flash for instance), it just displays %LIGHT. I tried several other variables, the flash shows their value properly. Is there something special to do to access %LIGHT ? I tried Automate just to check : It seems that the value is read properly with it. DO you have a workaround to suggest (using a plugin for instance) ?

Thanks !

1 reply

Hi there. Does it work if you create a profile based on the current Light value with the Light Level state condition?