Check for mains power in prepare viewmodule.