HA wall panel with fully kiosk - automatic enabling/disabling

Hi everybody.

In my HA setup I already have one wall panel made with Android tablet hanging on the wall with Fully Kiosk configured and it’s working perfectly together.

What I would like to do is adding a second wall panel on the second floor of the house - again that would be an Android tablet hanging on the wall, but this time I would like to retain it’s portability. So usually it would be hanging on the wall, acting as wall panel for HA, but sometimes I would like to just disconnect it and take it with me on a trip or wherever.

The problem I’m having is configuring the device and fully kiosk to work in a way that:

  • when a device is being put on the wall - turn on fully kiosk and lock in the kiosk mode
  • when a device is taken off of the wall - disable kiosk mode, turn fully kiosk off and restore regular android launcher

I already have a binary sensor in HA that can determine if the device is hanged on the wall or not, but have no good idea where to go from there.
To be honest - I’m not even 100% sure what I want to achieve is possible, since going into kiosk mode in fully kiosk requires (if I understand it correctly) changing system launcher to fully kiosk - not sure if that can be done remotely, and later reverted also remotely.
Maybe someone did a similar setup and can share their solution?