I know this is an old topic, but it's exactly what i'm trying to do 9 years later. Can you be more specific about the commands you used in Tasker for the power triggers? I think Tasker has changed a lot over time, and I don't know exactly how to phrase the power on/off trigger. Any help would be appreciated