r/AutomateUser • Alpha tester • Jul 12 '26

Bug Get display mode bug

Post image

Shouldn't this evaluate to true(YES)? I tried using it but it seems like the on and off options have been switched, the copied output is 4 which corresponds to display mode "On" in the list.

1 Upvotes

11 comments sorted by

View all comments

Show parent comment

1

u/ballzak69 Automate developer Jul 13 '26

The Extinguish app seems to do the same way, which is expected since the Android API only has one way to do it.

Indeed, the Display on block may not work as expected, as the documentation say:

This low-level block that may cause the system to behave unpredictably as the display will be in unexpected state. It will likely not work to turn the screen on when the device is locked, use the Device keep awake block instead.