Android, send home button click

Is there any command notification you can send to the app to make the phone go back to home screen?

I do not know of a way to do that directly from HA, but maybe Tasker can do it and then HA can integrate with that.

I was hoping I could skip Tasker.
But that could work, yes

you can try the following intent but I think the app may need to add support for categories which we currently do not support. If it doesnt work maybe try the launcher package name in the command.

https://developer.android.com/reference/android/content/Intent.html#ACTION_MAIN

reference:
https://stackoverflow.com/a/3725042/22819642

I tried a few different ways of using the intent but couldn’t get it to work.
But after a while I had to give up on the idea anyways because the last used app sensor updates too slow anyways.

My idea was to create a “school mode” for my son’s phone so that he can’t open games, calculator or camera. (In reality I would white list a few apps)
I had to switch over to Tasker since it updates fast enough to be useful.

Not as easy as it would be with HA controlling it but good enough.