idleState, OffState and MaintenancemodeState fully revamped