i had the problem too with my ipad. I could solve it by using the homeydash dim variant with a motion sensor:
when nobody in the house: 0% dim idle mode: 25% dim on motion: 100% dim
the iPad will never be locked
it works very well