Autoswitch panels condition changed to osd_got_home

Code reformat